Skip to content
Agent Search Engine.

Record · fastapi-mcpSDK / libraryOpen sourceLow activityVerified Jul 3, 2026

fastapi_mcp

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

Best for

Exposing an existing FastAPI app as MCP tools while keeping its auth.

Avoid if

Your API is not FastAPI — it is FastAPI-native, not a generic OpenAPI converter.

About fastapi_mcp

The simplest way to use FastAPI-MCP is to add an MCP server directly to your FastAPI application:

FastAPI-MCP provides comprehensive documentation. Additionaly, check out the examples directory for code samples demonstrating these features in action.

FastAPI-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:

From the project's README

fastapi_mcp is an open-source project written primarily in Python, with 12k stars on GitHub. It was last updated in November 2025.

Install

uv add fastapi-mcp
For agent buildersMake your product part of the discovery.Explore advertising

fastapi_mcp vs. the alternatives

All 163 alternatives →
RecordStarsPricing
fastapi_mcpSDK / librarythis listing12kOpen source
MCP Reference ServersMCP server91kOpen source
context7MCP server62kOpen source
chrome-devtools-mcpMCP server53kOpen source
Playwright MCPMCP server38kOpen source
github-mcp-serverMCP server33kOpen source

See all 163 fastapi_mcp alternatives, compared →