fastapi_mcp
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Exposing an existing FastAPI app as MCP tools while keeping its auth.
Your API is not FastAPI — it is FastAPI-native, not a generic OpenAPI converter.
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 listed in this index written primarily in Python, with 12k stars on GitHub. Its latest recorded repository push was in November 2025; that is not an ASE editorial review date.
uv add fastapi-mcp