BigHugger
GH Repository · tadata-org

fastapi_mcp

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

stars
12,006
30-day movement
+41/day
Related entries
60
Connections
1
python/uvPythonaipythonllmclaudecursorfastapimcpwindsurfmcp-servermodelcontextprotocolauthenticationmcp-serversopenapiauthorization

fastapi_mcp is a Python library that exposes your existing FastAPI endpoints as Model Context Protocol (MCP) tools. It supports authentication and authorization, letting MCP clients call your API's operations as tools.

It turns an API you already built with FastAPI into an MCP-accessible toolset without writing a separate server.

Use it to

  • Expose FastAPI endpoints to MCP clients like Claude, Cursor, or Windsurf
  • Add authentication and authorization to tool access
  • Reuse OpenAPI-defined operations as LLM-callable tools
  • Build AI agents backed by your existing web APIs

For FastAPI developers adding MCP tool access for LLM agents

Role
mcp-server
Language
Python
Licence
MIT
Forks
966
Open issues
95
Last push
2025-11-24
Latest release
v0.1.8 · 2025-04-09
topicsfastapimcpmcp-serverllmauthenticationopenapi