{"schemaVersion":1,"id":"fastapi-mcp","name":"FastAPI MCP","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/fastapi-mcp/","officialUrl":"https://github.com/tadata-org/fastapi_mcp","isCatalog":false,"description":"A library for exposing FastAPI endpoints as MCP tools: it connects an existing backend to an AI client while preserving authentication integration.","tasks":["Expose FastAPI endpoints as MCP tools","Connect the MCP interface and test a call with the backend's active authentication rules"],"categoryIds":["backend"],"subcategoryIds":["backend.api"],"tags":["FastAPI MCP","MCP","Development"],"aliases":["tadata-org/fastapi_mcp","fastapi-mcp","fastapi-mcp-tool"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Expose FastAPI endpoints as MCP tools","chooseWhen":["Expose FastAPI endpoints as MCP tools","Connect the MCP interface and test a call with the backend's active authentication rules"],"considerInstead":[],"requirements":["Python 3.10+, with 3.12 recommended; an existing FastAPI app and configured access dependencies are required."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: MIT for the code; dependencies have separate licenses."],"faq":[{"question":"What can you use for free in FastAPI MCP?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with FastAPI MCP?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for FastAPI MCP?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with FastAPI MCP?","answer":"Choose endpoints suitable for AI agent calls and check their schemas. Connect the MCP interface and test a call with the backend's active authentication rules. Add error handling and an integration check of the result."},{"question":"Why does FastAPI MCP use ASGI instead of HTTP calls to its own API?","answer":"The library accesses FastAPI through ASGI and preserves request/response schemas and endpoint descriptions. MCP can be mounted in an existing app or deployed separately. Authentication/authorization uses familiar FastAPI Depends(), so application dependencies determine access rather than automatically opening it to every MCP client."}],"related":[],"sources":["https://github.com/tadata-org/fastapi_mcp","https://raw.githubusercontent.com/tadata-org/fastapi_mcp/HEAD/README.md","https://raw.githubusercontent.com/tadata-org/fastapi_mcp/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Expose FastAPI endpoints as MCP tools.","inputs":["A data contract or HTTP workflow.","A project with a supported runtime."],"steps":["Choose endpoints suitable for AI agent calls and check their schemas.","Connect the MCP interface and test a call with the backend's active authentication rules.","Add error handling and an integration check of the result."],"checks":["Invalid and missing data are handled predictably.","Types and the actual response agree; errors are not hidden."]},"sources":["https://github.com/tadata-org/fastapi_mcp","https://raw.githubusercontent.com/tadata-org/fastapi_mcp/HEAD/README.md","https://raw.githubusercontent.com/tadata-org/fastapi_mcp/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Backend MCP integration","kind":"mcp","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/tadata-org/fastapi_mcp","label":"Official source"},{"url":"https://raw.githubusercontent.com/tadata-org/fastapi_mcp/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/tadata-org/fastapi_mcp/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}