fastapi_mcp
Active·★ 11.9k·MIT·Updated 2025-11-24
★ Most Popular★ Trending★ Essential
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
FastAPI-MCP allows you to expose your existing FastAPI endpoints as Model Context Protocol (MCP) tools. It offers native integration with FastAPI, including built-in authentication using existing dependencies, and preserves schemas and documentation.
#FastAPI#MCP#Python#API Tools#Authentication#Coding
01
Features
01Authentication built in, using your existing FastAPI dependencies!
02FastAPI-native: Not just another OpenAPI -> MCP converter
03Zero/Minimal configuration required
04Preserving schemas of your request models and response models
05Flexible deployment - Mount your MCP server to the same app, or deploy separately
02
Compatibility
FastAPI
Native
Verified via docs
Model Context Protocol
MCP Tool Provider
Verified via docs
Python
Python 3.10+
Verified via docs
03
Quick start
1
$ uv add fastapi-mcp
04
Use cases
↳Integrating FastAPI services as tools for large language models (LLMs) that support MCP.
↳Enabling LLMs to interact with and utilize existing business logic and data exposed via FastAPI.
↳Quickly exposing authenticated FastAPI APIs as discoverable and usable tools within an MCP ecosystem.
05
Alternatives
awesome-n8n-templates★ 22.6k
Supercharge your workflow automation with this curated collection of n8n templates! Instantly connect your favorite apps-like Gmail, Telegram, Google Drive, Slack, and more-with ready-to-use, AI-powered automations. Save time, boost productivity, and unlock the true potential of n8n in just a few clicks.
FastMCP★ 25.4k
The fast, Pythonic way to build MCP servers and clients. Designed by the Pydantic team for type safety and speed.
Context7★ 56.4k
MCP Server that provides up-to-date code documentation for LLMs and AI code editors.
GitHub MCP Server★ 30.3k
GitHub's official MCP Server. Allows AI agents to interact directly with your GitHub repositories (read files, search code, issues).
n8n★ 190.2k
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Microsoft AutoGen★ 58.5k
A framework that enables the development of LLM applications using multiple agents that can converse with each other to solve tasks.
Related searches
Comments
Log in to leave a comment
No comments yet. Be the first!