fastapi_mcp
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
About fastapi_mcp
The simplest way to use FastAPI-MCP is to add an MCP server directly to your FastAPI application:
FastAPI-MCP provides comprehensive documentation. Additionaly, check out the examples directory for code samples demonstrating these features in action.
FastAPI-MCP is designed as a native extension of FastAPI, not just a converter that generates MCP tools from your API. This approach offers several key advantages:
fastapi_mcp is an open-source project written primarily in Python, with 12k stars on GitHub. It was last updated in November 2025.
uv add fastapi-mcpfastapi_mcp vs. the alternatives
All mcp servers →| Agent | Stars | Pricing | ||
|---|---|---|---|---|
| fastapi_mcp | 12k | Python | MIT | Open source |
| context7 | 58k | TypeScript | MIT | Open source |
| chrome-devtools-mcp | 45k | TypeScript | Apache-2.0 | Open source |
| github-mcp-server | 31k | Go | MIT | Open source |
| serena | 26k | Python | MIT | Open source |
| fastmcp | 26k | Python | Apache-2.0 | Open source |
