FastMCP MCP
A FastAPI-native Model Context Protocol framework that allows developers to expose FastAPI endpoints as MCP tools. It features automatic route reflection, ASGI scope bridging for authentication, dynamic progressive tool discovery, and resilient error recovery, enabling agents to interact with existing FastAPI applications via standard I/O pipes.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Expose FastAPI endpoints as MCP tools using automatic route reflection
- Define custom AI tools with native dependency injection
- Connect desktop AI clients like Claude Desktop and Cursor over standard I/O pipes
- Implement dynamic progressive tool discovery to protect agent context windows
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
mcp-fastapi 0.1.0
{
"version": "0.1.0",
"transport": "stdio",
"identifier": "mcp-fastapi",
"registryType": "pypi",
"environmentVariables": [
{
"name": "FASTMCP_LOG_LEVEL",
"format": "string",
"description": "Log verbosity level (DEBUG, INFO, WARNING, ERROR)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"fastmcp-mcp": {
"command": "uvx",
"args": [
"mcp-fastapi==0.1.0"
],
"env": {
"FASTMCP_LOG_LEVEL": "<YOUR_FASTMCP_LOG_LEVEL>"
}
}
}
}Cline
{
"mcpServers": {
"fastmcp-mcp": {
"command": "uvx",
"args": [
"mcp-fastapi==0.1.0"
],
"env": {
"FASTMCP_LOG_LEVEL": "<YOUR_FASTMCP_LOG_LEVEL>"
}
}
}
}VS Code
{
"servers": {
"fastmcp-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-fastapi==0.1.0"
],
"env": {
"FASTMCP_LOG_LEVEL": "<YOUR_FASTMCP_LOG_LEVEL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"fastmcp-mcp": {
"command": "uvx",
"args": [
"mcp-fastapi==0.1.0"
],
"env": {
"FASTMCP_LOG_LEVEL": "<YOUR_FASTMCP_LOG_LEVEL>"
}
}
}
}Let your agent find its tools
Find servers like FastMCP MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.