Automatic MCP server generator for FastAPI applications - converts FastAPI endpoints to MCP tools for LLM integration
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"fastapi-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
<p align="center"><a href="https://github.com/tadata-org/fastapi_mcp"><img src="https://github.com/user-attachments/assets/609d5b8b-37a1-42c4-87e2-f045b60026b1" alt="fastapi-to-mcp" height="100"/></a></p> <h1 align="center">HK-FastAPI-MCP</h1> <p align="center">一个零配置工具,用于自动将 FastAPI 端点公开为模型上下文协议(MCP)工具。基于FASTAPI-MCP项目改造</p> <div align="center"> [](https://pypi.org/project/fastapi-mcp/) [](https://pypi.org/project/fastapi-mcp/) [](#)  [](https://github.com/tadata-org/fastapi_mcp/actions/workflows/ci.yml) [](https://codecov.io/gh/tadata-org/fastapi_mcp) </div> <p align="center"><a href="https://github.com/tadata-org/fastapi_mcp"><img src="https://github.com/user-attachments/assets/1cba1bf2-2fa4-46c7-93ac-1e9bb1a95257" alt="fastapi-mcp-usage" height="400"/></a></p> > 注意:最新版本请参阅 [README.md](README.md). ## 特点 - **直接集成** - 直接将 MCP 服务器挂载到您的 FastAPI 应用 - **零配置** - 只需指向您的 FastAPI 应用即可工作 - **自动发现** - 所有 FastAPI 端点并转换为 MCP 工具 - **保留模式** - 保留您的请求模型和响应模型的模式 - **保留文档** - 保留所有端点的文档,就像在 Swagger 中一样 - **灵活部署** - 将 MCP 服务器挂载到同一应用,或单独部署 - **ASGI 传输** - 默认使用 FastAPI 的 ASGI 接口直接通信,提高效率 ## 安装 我们推荐使用 [uv](https://docs.astral.sh/uv/),一个快速的 Python 包安装器: ```bash uv add hk-fastapi-mcp ``` 或者,您可以使用 pip 安装: ```bash pip install hk-fastapi-mcp ``` ## 基本用法 使用 FastAPI-MCP 的最简单方法是直接将 MCP 服务器添加到您的 FastAPI 应用中: ```python from fastapi import FastAPI from fastapi_mcp import FastApiMCP app = FastAPI() mcp = FastApiMCP(app) # 直接将 MCP 服务器挂载到您的 FastAPI 应用 mcp.mount() ``` 就是这样!您的自动生成的 MCP 服务器现在可以在 `https://app.base.url/mcp` 访问。 ## 工具命名 FastAPI-MCP 使用 FastAPI 路由中的`o…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.