#31 · Primary category: AI Gateway & API Infrastructure

fastapi_mcp

ai authentication authorization claude cursor fastapi llm mcp mcp-server mcp-servers modelcontextprotocol openapi windsurf

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