FastAPI-MCP
the six Ws · specification
Python backend developers who already have a FastAPI service and want to expose it to AI agents.
A library that automatically exposes existing FastAPI endpoints as Model Context Protocol tools, preserving authentication and request schemas.
Installed into a Python FastAPI application and mounted alongside the existing REST API.
Use when an existing FastAPI service needs to become agent-callable without hand writing a separate MCP server.
It avoids duplicating endpoint logic by generating MCP tool definitions directly from FastAPI route metadata.
Built on FastAPI and the official Model Context Protocol Python SDK.
Open source, MIT licensed, maintained by Tadata; no credentials beyond the wrapped API's own auth.
alternatives