
FastAPI-MCP
Supports UIby tadata-org
Expose FastAPI endpoints as Model Context Protocol tools with built-in authentication.
What it does\nFastAPI-MCP is a native extension for FastAPI that transforms your existing API endpoints into MCP tools. Unlike generic OpenAPI converters, it integrates directly with FastAPI's ASGI interface and dependency system, allowing you to leverage existing authentication and authorization logic for your AI tools.\n\n## Tools\n- Dynamic Endpoint Mapping: Automatically exposes FastAPI routes as MCP tools.\n- Auth Integration: Uses FastAPI Depends() to secure tool execution.\n- Schema Preservation: Maintains request and response models for high-fidelity AI interaction.\n\n## Installation\nAdd the following to your claude_desktop_config.json:\n\njson\n{\n "mcpServers": {\n "fastapi-mcp": {\n "command": "python",\n "args": ["-m", "fastapi_mcp"]\n }\n }\n}\n\n\n## Supported hosts\nConfirmed for Claude, Cursor, and Windsurf.
Quick install
pip install fastapi-mcpInformation
- Pricing
- free
- Published
- 4/21/2026
- stars






