{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_n8ghz9yuzah9","handle":"fastapi-mcp","url":"https://wellknown.network/agents/fastapi-mcp","links":{"self":"https://wellknown.network/agents/fastapi-mcp/record.json","html":"https://wellknown.network/agents/fastapi-mcp","markdown":"https://wellknown.network/agents/fastapi-mcp/record.md","api":"https://wellknown.network/api/v1/agents/fastapi-mcp","status":"https://wellknown.network/api/v1/agents/fastapi-mcp/status","claim":"https://wellknown.network/agents/fastapi-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/fastapi-mcp/claim.json","badge":"https://wellknown.network/agents/fastapi-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json"},"ard":{"identifier":"urn:air::server:fastapi-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"hk-fastapi-mcp","summary":"Automatic MCP server generator for FastAPI applications - converts FastAPI endpoints to MCP tools for LLM integration","description":"<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>\n<h1 align=\"center\">HK-FastAPI-MCP</h1>\n<p align=\"center\">一个零配置工具，用于自动将 FastAPI 端点公开为模型上下文协议（MCP）工具。基于FASTAPI-MCP项目改造</p>\n<div align=\"center\">\n\n[![PyPI version](https://badge.fury.io/py/fastapi-mcp.svg)](https://pypi.org/project/fastapi-mcp/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/fastapi-mcp.svg)](https://pypi.org/project/fastapi-mcp/)\n[![FastAPI](https://img.shields.io/badge/FastAPI-009485.svg?logo=fastapi&logoColor=white)](#)\n![](https://badge.mcpx.dev?type=dev 'MCP Dev')\n[![CI](https://github.com/tadata-org/fastapi_mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/tadata-org/fastapi_mcp/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/tadata-org/fastapi_mcp/branch/main/graph/badge.svg)](https://codecov.io/gh/tadata-org/fastapi_mcp)\n\n</div>\n\n<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>\n> 注意：最新版本请参阅 [README.md](README.md).\n\n## 特点\n\n- **直接集成** - 直接将 MCP 服务器挂载到您的 FastAPI 应用\n- **零配置** - 只需指向您的 FastAPI 应用即可工作\n- **自动发现** - 所有 FastAPI 端点并转换为 MCP 工具\n- **保留模式** - 保留您的请求模型和响应模型的模式\n- **保留文档** - 保留所有端点的文档，就像在 Swagger 中一样\n- **灵活部署** - 将 MCP 服务器挂载到同一应用，或单独部署\n- **ASGI 传输** - 默认使用 FastAPI 的 ASGI 接口直接通信，提高效率\n\n## 安装\n\n我们推荐使用 [uv](https://docs.astral.sh/uv/)，一个快速的 Python 包安装器：\n\n```bash\nuv add hk-fastapi-mcp\n```\n\n或者，您可以使用 pip 安装：\n\n```bash\npip install hk-fastapi-mcp\n```\n\n## 基本用法\n\n使用 FastAPI-MCP 的最简单方法是直接将 MCP 服务器添加到您的 FastAPI 应用中：\n\n```python\nfrom fastapi import FastAPI\nfrom fastapi_mcp import FastApiMCP\n\napp = FastAPI()\n\nmcp = FastApiMCP(app)\n\n# 直接将 MCP 服务器挂载到您的 FastAPI 应用\nmcp.mount()\n```\n\n就是这样！您的自动生成的 MCP 服务器现在可以在 `https://app.base.url/mcp` 访问。\n\n## 工具命名\n\nFastAPI-MCP 使用 FastAPI 路由中的`o…","publisher":null,"homepage":"https://github.com/tadata-org/fastapi_mcp#readme","repository":"https://github.com/tadata-org/fastapi_mcp/issues","version":"0.3.4","license":"MIT License\n        \n        Copyright (c) 2024 Tadata Inc.\n   …","protocols":["mcp"],"tags":["ai","api","claude","conversion","fastapi","llm","mcp","modelcontextprotocol","openapi","tools"],"pricing":null,"endpoints":[{"url":"pypi:fastapi-mcp","type":"package_pypi","auth":null,"probeable":false},{"url":"pypi:hk-fastapi-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","license":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"documents.conversion","name":"Document Conversion","confidence":1,"provenance":"declared"},{"slug":"data.apis","name":"API Access","confidence":1,"provenance":"declared"}],"categories":["data","documents"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"hk-fastapi-mcp","registry":"pypi","observedAt":"2026-09-09T17:22:47.692Z","publishedAt":"2025-05-20T07:11:45.038819Z","latestVersion":"0.3.4"}},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"hk-fastapi-mcp","url":"https://pypi.org/project/hk-fastapi-mcp/","firstSeenAt":"2026-09-09T17:21:08.217Z","fetchedAt":"2026-09-09T17:21:08.217Z","normalizedAt":"2026-09-09T17:21:08.217Z"},{"source":"pypi","key":"fastapi-mcp","url":"https://pypi.org/project/fastapi-mcp/","firstSeenAt":"2026-09-09T15:22:25.345Z","fetchedAt":"2026-09-09T15:22:25.345Z","normalizedAt":"2026-09-09T15:22:25.345Z"}]},"firstSeenAt":"2026-09-09T15:22:25.345Z","updatedAt":"2026-09-09T17:22:47.692Z"}