MCP & integrations/GitHub/MCP
fastapi_mcp
by tadata-org·Last observed 2026-10-27
★ 12K stars⑂ 969 forks
FastAPI-MCP is a FastAPI extension that exposes an MCP server for an existing FastAPI app. It mounts the server on the same app by default, preserves endpoint documentation, uses FastAPI dependencies for endpoint authentication and authorization, and communicates through the ASGI interface.
Useful for
- Add an MCP endpoint to an existing FastAPI service while retaining its dependency-based access controls.
Key features
- Mounts an auto-generated MCP server directly on a FastAPI app.
- Uses FastAPI Depends() for endpoint authentication and authorization.
- Supports mounting in the same app or deploying separately, using ASGI transport.
Requirements & limitations
- Requires Python 3.10 or newer; installation is documented with uv or pip.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.