fastapi_mcp
Convert FastAPI endpoints into MCP tools with authentication support.
- Type
- MCP
- Transport
- http
- Open source
- Yes
- GitHub Stars
- ★ 11.9k
- Source
- mcp-github
- Repository
- github.com/tadata-org/fastapi_mcp
Overview
FastAPI-MCP is a library that exposes FastAPI endpoints as MCP tools. It includes built-in authentication and can directly use existing FastAPI dependencies. The tool requires almost no configuration—just point it to your FastAPI application, and it works. It preserves the request and response model schemas as well as Swagger documentation, and supports flexible deployment. Ideal for developers who need to quickly convert existing FastAPI services into MCP tools.
Capabilities
- ▪Built-in authentication
- ▪Zero/minimal configuration
- ▪Preserve request and response model schemas
- ▪Preserve Swagger documentation
- ▪Flexible deployment options
Use cases
Setup
pip install fastapi-mcp or uv add fastapi-mcp
This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.
FAQ
How do I install FastAPI-MCP?
You can install it via pip: pip install fastapi-mcp, or using uv: uv add fastapi-mcp.
Does it support documentation from existing FastAPI projects?
Yes, FastAPI-MCP preserves all endpoint Swagger documentation.
Related skills
mantis
Provides security review capabilities for AI coding agents, automatically discovering, reproducing, and fixing vulnerabilities.
sast-skills
Transform your AI coding assistant into a SAST scanner to automatically detect vulnerabilities in code.
Lightswind-UI-Library
AI-native CLI-first React component library with MCP Server support.
scientific-agent-skills
Transform any AI agent into a scientific assistant with 147 ready-to-use research skills.
susi_alexa_skill
A skill that enables question-and-answer interactions between Alexa and Susi AI.
claude-context
Provides code search capabilities for Claude Code, turning the entire codebase into context.