统一声明:
1.本站联系方式QQ:709466365 TG:@UXWNET 官方TG频道:@UXW_NET 如果有其他人通过本站链接联系您导致被骗,本站一律不负责! 2.需要付费搭建请联系站长QQ:709466365 TG:@UXWNET 3.免实名域名注册购买- 游侠云域名 4.免实名国外服务器购买- 游侠云服务技术
在AI Agent和MCP(Model Context Protocol)生态快速发展的今天,越来越多优秀的MCP工具涌现出来。今天为大家推荐一个值得关注的项目——fastapi_mcp。
项目简介:Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
技术信息:主要语言:Python | GitHub Stars:11,860 | 标签:ai, authentication, authorization, claude, cursor
📖 项目详情
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
该项目主要使用Python开发。
相关领域:人工智能, authentication, authorization, claude, cursor
以下是项目原始介绍(英文):
Built by Tadata
FastAPI-MCP
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!





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.
Installation
We recommend using uv, a fast Python package installer:
uv add fastapi-mcp
Alternatively, you can install with pip:
pip install fastapi-mcp
Basic Usage
The simplest way to use FastAPI-MCP is to add an MCP server directly to your FastAPI application:
from fastapi import FastAPI
from fastapi_mcp import FastApiMCP
app = FastAPI()
mcp = FastApiMCP(app)
# Mount the MCP server directly to your FastAPI app
mcp.mount()
That’s it! Your auto-generated MCP server is now available at https://app.base.url/mcp.
Documentation, Examples and Advanced Usage
FastAPI-MCP provides [comprehensive doc
…(更多内容请访问项目主页)
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
8. 精力有限,不少源码未能详细测试(解密),不能分辨部分源码是病毒还是误报,所以没有进行任何修改,大家使用前请进行甄别!
站长QQ:709466365 站长邮箱:709466365@qq.com



