{"id":26558085,"url":"https://github.com/tadata-org/fastapi_mcp","last_synced_at":"2025-05-14T17:09:14.609Z","repository":{"id":281501323,"uuid":"944976593","full_name":"tadata-org/fastapi_mcp","owner":"tadata-org","description":"Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!","archived":false,"fork":false,"pushed_at":"2025-04-28T16:01:55.000Z","size":388,"stargazers_count":4093,"open_issues_count":41,"forks_count":331,"subscribers_count":33,"default_branch":"main","last_synced_at":"2025-04-29T10:12:27.563Z","etag":null,"topics":["ai","authentication","authorization","claude","cursor","fastapi","llm","mcp","mcp-server","mcp-servers","modelcontextprotocol","openapi","windsurf"],"latest_commit_sha":null,"homepage":"https://fastapi-mcp.tadata.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tadata-org.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-08T11:15:43.000Z","updated_at":"2025-04-29T09:45:03.000Z","dependencies_parsed_at":"2025-04-12T15:50:03.741Z","dependency_job_id":null,"html_url":"https://github.com/tadata-org/fastapi_mcp","commit_stats":null,"previous_names":["tadata-org/fastapi_mcp"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadata-org%2Ffastapi_mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadata-org%2Ffastapi_mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadata-org%2Ffastapi_mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tadata-org%2Ffastapi_mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tadata-org","download_url":"https://codeload.github.com/tadata-org/fastapi_mcp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190396,"owners_count":22029632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","authentication","authorization","claude","cursor","fastapi","llm","mcp","mcp-server","mcp-servers","modelcontextprotocol","openapi","windsurf"],"created_at":"2025-03-22T12:22:11.207Z","updated_at":"2025-05-14T17:09:14.601Z","avatar_url":"https://github.com/tadata-org.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/tadata-org/fastapi_mcp\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/7e44e98b-a0ba-4aff-a68a-4ffee3a6189c\" alt=\"fastapi-to-mcp\" height=100/\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eFastAPI-MCP\u003c/h1\u003e\n\u003cp align=\"center\"\u003eExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!\u003c/p\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![PyPI version](https://img.shields.io/pypi/v/fastapi-mcp?color=%2334D058\u0026label=pypi%20package)](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\u0026logoColor=white)](#)\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[![Coverage](https://codecov.io/gh/tadata-org/fastapi_mcp/branch/main/graph/badge.svg)](https://codecov.io/gh/tadata-org/fastapi_mcp)\n\n\u003c/div\u003e\n\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/tadata-org/fastapi_mcp\"\u003e\u003cimg src=\"https://github.com/user-attachments/assets/b205adc6-28c0-4e3c-a68b-9c1a80eb7d0c\" alt=\"fastapi-mcp-usage\" height=\"400\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n\n## Features\n\n- **Authentication** built in, using your existing FastAPI dependencies!\n\n- **FastAPI-native:** Not just another OpenAPI -\u003e MCP converter\n\n- **Zero/Minimal 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## Installation\n\nWe recommend using [uv](https://docs.astral.sh/uv/), 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://app.base.url/mcp`.\n\n## Documentation, Examples and Advanced Usage\n\nFastAPI-MCP provides [comprehensive documentation](https://fastapi-mcp.tadata.com/). 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://fastapi-mcp.tadata.com/advanced/deploy#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## 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://join.slack.com/t/themcparty/shared_invite/zt-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) 2024 Tadata Inc.\n","funding_links":[],"categories":["Developer Tools","Build Tools \u0026 Frameworks","Development Tools Mcp Servers","Python","Framework","📚 Projects (1974 total)","Frameworks for Servers","模型上下文协议 MCP","🤖 AI/ML","HarmonyOS","SDKs","Table of Contents","A01_文本生成_文本对话","Repos","APIs and HTTP Requests","Docker MCP Toolkit","MCP Frameworks and libraries","MCP Ecosystem","🔎 Select Context","Dev Tools (26)"],"sub_categories":["API Tools","MCP Servers","Windows Manager","Python","Developer Tools","大语言对话模型及数据","Security \u0026 Authentication","Core \u0026 Frameworks","MCP Frameworks"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftadata-org%2Ffastapi_mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftadata-org%2Ffastapi_mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftadata-org%2Ffastapi_mcp/lists"}