fastapi_mcp  by tadata-org

MCP server for FastAPI apps

created 4 months ago
6,757 stars

Top 7.7% on sourcepulse

GitHubView on GitHub
Project Summary

This library exposes FastAPI endpoints as Model Context Protocol (MCP) tools, enabling seamless integration with systems that consume MCP. It targets developers building microservices with FastAPI who need to expose their functionality via the MCP standard, offering built-in authentication and minimal configuration.

How It Works

FastAPI-MCP leverages FastAPI's native ASGI interface to directly access and expose endpoints as MCP tools. It preserves the original request/response schemas and endpoint documentation from FastAPI. Authentication is handled via FastAPI's Depends() mechanism, allowing reuse of existing authentication logic. This direct ASGI transport avoids inter-process communication overhead.

Quick Start & Requirements

Highlighted Details

  • Built-in authentication using FastAPI dependencies.
  • Zero/minimal configuration required.
  • Preserves OpenAPI schemas and documentation.
  • Supports mounting MCP server to the same FastAPI app or separate deployment.

Maintenance & Community

Licensing & Compatibility

  • MIT License.
  • Compatible with commercial and closed-source applications.

Limitations & Caveats

The project is actively maintained, with no explicit limitations or caveats mentioned in the README.

Health Check
Last commit

5 days ago

Responsiveness

1 day

Pull Requests (30d)
8
Issues (30d)
17
Star History
2,568 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Travis Fischer Travis Fischer(Founder of Agentic), and
1 more.

fastmcp by punkpeye

3.7%
2k
TypeScript framework for building MCP servers handling client sessions
created 7 months ago
updated 2 days ago
Starred by Didier Lopes Didier Lopes(Founder of OpenBB), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

fastmcp by jlowin

2.1%
15k
Pythonic SDK for building Model Context Protocol (MCP) servers/clients
created 8 months ago
updated 1 day ago
Feedback? Help us improve.