#31 · Primary category: AI Gateway & API Infrastructure
fastapi_mcp
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Project last updated:11/24/25
GitHub Stars
12.0K
Forks
964
Contributors
18
License
MIT
Why we included this project
If your team already runs a FastAPI backend and wants an LLM agent to act on its real endpoints, this library is the shortest path there. It wraps an existing app and publishes its routes as Model Context Protocol tools, keeping request and response schemas and the endpoint documentation intact, and it carries your existing FastAPI authentication dependencies through to the MCP layer. That last bit is what makes it practical when you are wiring Claude, Cursor, or another MCP client to internal services without standing up a separate, less secure bridge. It communicates over ASGI and can be mounted on the same app or deployed apart, so it works for quick internal prototypes as well as production services that need authorized access to business APIs.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
OmniRoute
Open-source AI gateway: one endpoint, 290+ providers (90+ free), 500+ models, auto-fallback, token compression, MCP/A2A, works with Claude Code, Codex, Cursor, Cline, Copilot.
CLIProxyAPI
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 3.1 Pro, GPT 5.6 Series, Grok 4.5, Claude model through API
kong
🦍 The API and AI Gateway
novu
The open-source communication infrastructure for agents and products
GPT_API_free
Free API for large models, supports GPT, DeepSeek, etc., 10k free points daily, paid plans at 10-20% of official price.