[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71937":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":40,"readmeContent":41,"aiSummary":42,"trendingCount":16,"starSnapshotCount":16,"syncStatus":43,"lastSyncTime":44,"discoverSource":45},71937,"fastapi_mcp","tadata-org\u002Ffastapi_mcp","tadata-org","Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!","https:\u002F\u002Ffastapi-mcp.tadata.com\u002F",null,"Python",11909,950,95,90,0,13,24,55,39,43.93,"MIT License",false,"main",true,[27,28,29,30,31,32,33,34,35,36,37,38,39],"ai","authentication","authorization","claude","cursor","fastapi","llm","mcp","mcp-server","mcp-servers","modelcontextprotocol","openapi","windsurf","2026-06-12 02:02:56","\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ftadata-org\u002Ffastapi_mcp\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F7e44e98b-a0ba-4aff-a68a-4ffee3a6189c\" alt=\"fastapi-to-mcp\" height=100\u002F>\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cdiv align=\"center\">\n  \u003Cspan style=\"font-size: 0.85em; font-weight: normal;\">Built by \u003Ca href=\"https:\u002F\u002Ftadata.com\">Tadata\u003C\u002Fa>\u003C\u002Fspan>\n\u003C\u002Fdiv>\n\n\u003Ch1 align=\"center\">\n  FastAPI-MCP\n\u003C\u002Fh1>\n\n\u003Cdiv align=\"center\">\n\u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F14064\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F14064\" alt=\"tadata-org%2Ffastapi_mcp | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!\u003C\u002Fp>\n\u003Cdiv align=\"center\">\n\n[![PyPI version](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Ffastapi-mcp?color=%2334D058&label=pypi%20package)](https:\u002F\u002Fpypi.org\u002Fproject\u002Ffastapi-mcp\u002F)\n[![Python Versions](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fpyversions\u002Ffastapi-mcp.svg)](https:\u002F\u002Fpypi.org\u002Fproject\u002Ffastapi-mcp\u002F)\n[![FastAPI](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FFastAPI-009485.svg?logo=fastapi&logoColor=white)](#)\n[![CI](https:\u002F\u002Fgithub.com\u002Ftadata-org\u002Ffastapi_mcp\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Ftadata-org\u002Ffastapi_mcp\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Coverage](https:\u002F\u002Fcodecov.io\u002Fgh\u002Ftadata-org\u002Ffastapi_mcp\u002Fbranch\u002Fmain\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Ftadata-org\u002Ffastapi_mcp)\n\n\u003C\u002Fdiv>\n\n\n\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Ftadata-org\u002Ffastapi_mcp\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fb205adc6-28c0-4e3c-a68b-9c1a80eb7d0c\" alt=\"fastapi-mcp-usage\" height=\"400\"\u002F>\u003C\u002Fa>\u003C\u002Fp>\n\n\n## Features\n\n- **Authentication** built in, using your existing FastAPI dependencies!\n\n- **FastAPI-native:** Not just another OpenAPI -> MCP converter\n\n- **Zero\u002FMinimal configuration** required - just point it at your FastAPI app and it works\n\n- **Preserving schemas** of your request models and response models\n\n- **Preserve documentation** of all your endpoints, just as it is in Swagger\n\n- **Flexible deployment** - Mount your MCP server to the same app, or deploy separately\n\n- **ASGI transport** - Uses FastAPI's ASGI interface directly for efficient communication\n\n\n## Hosted Solution\n\nIf you prefer a managed hosted solution check out [tadata.com](https:\u002F\u002Ftadata.com).\n\n## Installation\n\nWe recommend using [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F), a fast Python package installer:\n\n```bash\nuv add fastapi-mcp\n```\n\nAlternatively, you can install with pip:\n\n```bash\npip install fastapi-mcp\n```\n\n## Basic Usage\n\nThe simplest way to use FastAPI-MCP is to add an MCP server directly to your FastAPI application:\n\n```python\nfrom fastapi import FastAPI\nfrom fastapi_mcp import FastApiMCP\n\napp = FastAPI()\n\nmcp = FastApiMCP(app)\n\n# Mount the MCP server directly to your FastAPI app\nmcp.mount()\n```\n\nThat's it! Your auto-generated MCP server is now available at `https:\u002F\u002Fapp.base.url\u002Fmcp`.\n\n## Documentation, Examples and Advanced Usage\n\nFastAPI-MCP provides [comprehensive documentation](https:\u002F\u002Ffastapi-mcp.tadata.com\u002F). Additionaly, check out the [examples directory](examples) for code samples demonstrating these features in action.\n\n## FastAPI-first Approach\n\nFastAPI-MCP is designed as a native extension of FastAPI, not just a converter that generates MCP tools from your API. This approach offers several key advantages:\n\n- **Native dependencies**: Secure your MCP endpoints using familiar FastAPI `Depends()` for authentication and authorization\n\n- **ASGI transport**: Communicates directly with your FastAPI app using its ASGI interface, eliminating the need for HTTP calls from the MCP to your API\n\n- **Unified infrastructure**: Your FastAPI app doesn't need to run separately from the MCP server (though [separate deployment](https:\u002F\u002Ffastapi-mcp.tadata.com\u002Fadvanced\u002Fdeploy#deploying-separately-from-original-fastapi-app) is also supported)\n\nThis design philosophy ensures minimum friction when adding MCP capabilities to your existing FastAPI services.\n\n\n## Development and Contributing\n\nThank you for considering contributing to FastAPI-MCP! We encourage the community to post Issues and create Pull Requests.\n\nBefore you get started, please see our [Contribution Guide](CONTRIBUTING.md).\n\n## Community\n\nJoin [MCParty Slack community](https:\u002F\u002Fjoin.slack.com\u002Ft\u002Fthemcparty\u002Fshared_invite\u002Fzt-30yxr1zdi-2FG~XjBA0xIgYSYuKe7~Xg) to connect with other MCP enthusiasts, ask questions, and share your experiences with FastAPI-MCP.\n\n## Requirements\n\n- Python 3.10+ (Recommended 3.12)\n- uv\n\n## License\n\nMIT License. Copyright (c) 2025 Tadata Inc.\n","FastAPI-MCP 项目旨在将 FastAPI 接口作为 Model Context Protocol (MCP) 工具暴露出来，并支持认证功能。其核心功能包括内置的认证机制、零配置或最小配置需求、保持请求和响应模型的结构以及文档的一致性，同时利用 FastAPI 的 ASGI 接口实现高效通信。该项目特别适用于需要在已有 FastAPI 应用基础上快速集成 MCP 协议的场景，无论是直接挂载到现有应用还是独立部署都能轻松实现。此外，通过保留原有的 API 文档，开发者可以无缝过渡到 MCP 标准，而无需重新编写大量代码。",2,"2026-06-11 03:39:34","high_star"]