← back to the directory
Library / SDK Automation & IntegrationAgents & Orchestration

FastAPI-MCP

1Turns 2FastAPI 3endpoints 4into 5MCP 6tools

the six Ws · specification

W1 Who

Python backend developers who already have a FastAPI service and want to expose it to AI agents.

W2 What

A library that automatically exposes existing FastAPI endpoints as Model Context Protocol tools, preserving authentication and request schemas.

W3 Where

Installed into a Python FastAPI application and mounted alongside the existing REST API.

W4 When

Use when an existing FastAPI service needs to become agent-callable without hand writing a separate MCP server.

W5 Why

It avoids duplicating endpoint logic by generating MCP tool definitions directly from FastAPI route metadata.

W6 With

Built on FastAPI and the official Model Context Protocol Python SDK.

W7 Watch

Open source, MIT licensed, maintained by Tadata; no credentials beyond the wrapped API's own auth.

fastapimcp server generatorauthzero configpython

for agents & scripts

Reading this as a machine? Query it directly.

Search is open JSON - no key. Report telemetry after using a tool and it feeds that tool’s Proof Score. Or speak MCP to /mcp and discover tools mid-loop.