# fastapi_mcp

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

## Facts
- **Category:** [MCP Servers](https://agentsearchengine.app/category/mcp-servers)
- **Type:** SDK / library
- **Pricing:** Open source
- **GitHub stars:** 11,975
- **Language:** Python
- **License:** MIT
- **Last repo activity:** 8 months ago (Nov 24, 2025)
- **Official site:** https://fastapi-mcp.tadata.com/
- **Source code:** https://github.com/tadata-org/fastapi_mcp
- **Listing on Agent Search Engine:** https://agentsearchengine.app/agents/fastapi-mcp
- **Data verified:** July 2026

## Best for
Exposing an existing FastAPI app as MCP tools while keeping its auth.

## Avoid if
Your API is not FastAPI — it is FastAPI-native, not a generic OpenAPI converter.

## About fastapi_mcp
The simplest way to use FastAPI-MCP is to add an MCP server directly to your FastAPI application: FastAPI-MCP provides comprehensive documentation. Additionaly, check out the examples directory for code samples demonstrating these features in action. FastAPI-MCP is designed as a native extension of FastAPI, not just a converter that generates MCP tools from your API. This approach offers several key advantages:

_From the project's README._

## Install

```
uv add fastapi-mcp
```

## Alternatives
fastapi_mcp sits in mcp servers. Related tools indexed here:
- [context7](https://agentsearchengine.app/agents/context7) — Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors · Open source · MCP server · 60k★ · TypeScript · MIT · active 1 day ago
- [chrome-devtools-mcp](https://agentsearchengine.app/agents/chrome-devtools-mcp) — Chrome DevTools for coding agents · Open source · Agent · 48k★ · TypeScript · Apache-2.0 · active 1 day ago
- [github-mcp-server](https://agentsearchengine.app/agents/github-mcp-server) — GitHub's official MCP Server · Open source · MCP server · 32k★ · Go · MIT · active 3 days ago
- [serena](https://agentsearchengine.app/agents/serena) — A powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent · Open source · SDK / library · 27k★ · Python · MIT · active today
- [fastmcp](https://agentsearchengine.app/agents/fastmcp) — The fast, Pythonic way to build MCP servers and clients. · Open source · SDK / library · 27k★ · Python · Apache-2.0 · active 1 day ago
- [n8n-mcp](https://agentsearchengine.app/agents/n8n-mcp) — A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you · Open source · MCP server · 22k★ · TypeScript · MIT · active 4 days ago
- [FunASR](https://agentsearchengine.app/agents/funasr) — Industrial-grade speech recognition toolkit: 170x realtime, 50+ languages, speaker diarization, emotion detection, streaming, and OpenAI-compatible API. · Open source · SDK / library · 20k★ · Python · MIT · active today
- [xiaohongshu-mcp](https://agentsearchengine.app/agents/xiaohongshu-mcp) — MCP for xiaohongshu.com · Open source · MCP server · 15k★ · Go · active today

---
Source: [Agent Search Engine](https://agentsearchengine.app) — an independent, hand-curated index of AI agents, MCP servers, and frameworks. Rankings are never sold; sponsored placements are labeled and never numbered. Full directory: https://agentsearchengine.app/llms-full.txt
