fastapi_mcp

Level AMCP ecosystemNot an MCP ServerSource

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

Overview

FastAPI-MCP exposes your existing FastAPI endpoints as MCP tools with minimal configuration and no rewrite of your code. It reuses FastAPI's Depends() dependencies for authentication and authorization, and preserves request/response model schemas plus existing Swagger documentation. Communication runs directly over FastAPI's ASGI interface, and the MCP server can be mounted on the same app or deployed separately.

⭐ 12kDevelopment ToolsPythonRepo ↗Updated 2025-11-24

Installation

View source repo →

Related servers