🖥️FastAPI-MCP
tadata-org/fastapi_mcp · homepage ↗
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
⭐ Very popular: 12k stars, gaining about 9 a week
View on GitHub ↗repo profile
momentum
durability
since we covered it
why it's a big deal
- Turns existing FastAPI endpoints into MCP tools that AI agents can call, so teams expose an API to agents without writing a separate MCP server.
- Reuses FastAPI's Depends() dependency injection for auth, so existing endpoint security carries over to the MCP interface.
- Preserves request and response schemas plus Swagger/OpenAPI documentation, so tool definitions stay in sync with the API they wrap.
under the hood
- Written in Python, requires 3.10 or newer, MIT licensed, at version 0.4.0 with about 12k stars.
- Mounts an MCP server at /mcp with two lines, FastApiMCP(app) then mcp.mount(), either on the same app or as a separate server.
- Communicates with the FastAPI app over the ASGI interface directly rather than making HTTP calls, and models tools from FastAPI internals instead of generic OpenAPI conversion.
Radar summary, generated from the project's public sources
star history
- PR#15 9k 2025-08-20
- now 12k + 3k since first covered
curve is sampled from GitHub's star history, plus our own daily readings since we covered it; the dashed stretch is before we first covered it, the solid line since. figures at coverage are the numbers we printed then (approx.), current count is live.
understory
Better known than its recent output, coasting a little on attention.
- output, commits & releases
- clout, star velocity
output = commits & releases; clout = star velocity, both 0 to 100 monthly indices; the gap where output runs above clout is the understory. The understory →
covered in
-
MCP-Enable Your FastAPI
similar projects
compare these →- 🗜️ headroom
5.5× the stars
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
66k ACTIVE - 🛠️ Klavis AI
leaner, 6k stars
Klavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
6k ACTIVE - ☤ hermes-agent
19× the stars
The agent that grows with you
231k ACTIVE
comments
Sign in with GitHub to add your blip on FastAPI-MCP.