fastapi_mcp

MCP.Pizza Chef: tadata-org

If someone on your team built a web service with FastAPI, this add-on makes its features available to an assistant that speaks MCP, without rebuilding anything. The existing sign-in rules stay in force, and the descriptions already written for each feature carry over, so the assistant knows what each one does. You can run it inside the same app or as a separate service. It needs Python 3.10 or newer, and a hosted version is offered separately.

Coding

Use This MCP server To

Let my assistant use the service I already built Keep my existing login rules while adding assistant access Try this out without rewriting my project Run the assistant connection as a separate service Give a teammate's assistant safe access to our tools

README

fastapi-to-mcp

FastAPI-MCP

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

PyPI version Python Versions FastAPI CI Coverage

fastapi-mcp-usage

Features

  • Authentication built in, using your existing FastAPI dependencies!

  • FastAPI-native: Not just another OpenAPI -> MCP converter

  • Zero/Minimal configuration required - just point it at your FastAPI app and it works

  • Preserving schemas of your request models and response models

  • Preserve documentation of all your endpoints, just as it is in Swagger

  • Flexible deployment - Mount your MCP server to the same app, or deploy separately

  • ASGI transport - Uses FastAPI's ASGI interface directly for efficient communication

Hosted Solution

If you prefer a managed hosted solution check out tadata.com.

fastapi_mcp FAQ

Do I need to be a programmer?
Yes — this is for people who already run a Python web service built with FastAPI.
Can I use this to let an assistant look up my company's own records?
Yes, if that lookup already exists in your FastAPI service. It becomes available to the assistant as it is.
Do I have to rewrite my project?
No — you add a few lines and mount it, and everything already written stays exactly as it is.
Is the connection protected?
Yes — it reuses the sign-in checks your FastAPI project already relies on.
What do I need installed?
Python 3.10 or newer, ideally 3.12, plus the uv installer or pip.
Is there a version I do not have to host myself?
Yes — the makers offer a managed hosted option at tadata.com.