// devtools · tadata-org/fastapi_mcp

fastapi_mcp

fastapi_mcp — проект с открытым исходным кодом из категории «Инструменты разработчика» от tadata-org (tadata-org/fastapi_mcp на GitHub). У него 12 019 звёзд на GitHub и 971 форк, он распространяется по лицензии MIT и последний раз обновлялся на GitHub 24 ноября 2025.

Expose your FastAPI endpoints as Model Context Protocol tools - with authentication - in a few lines of code.

★ 12,0 тыс. звёзд⑂ 971 форкMITобновлено нояб. 2025
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
tadata-org/fastapi_mcp
Звёзды GitHub
12 019
Форки
971
Лицензия
MIT
Последнее обновление на GitHub
24 ноября 2025
Тип страницы
Полное руководство по установке
Официальный сайт
Official site
// как это работает

Как это работает

  1. Check the fit

    You need an existing (or new) FastAPI app whose endpoints you want AI agents to call as tools.

  2. Install the library

    Add fastapi-mcp to your project with uv or pip.

  3. Mount the MCP server

    Create FastApiMCP(app) in your code and call mcp.mount() - your endpoints become MCP tools with schemas and docs preserved.

  4. Connect a client and test

    Point your MCP client at your app's /mcp endpoint, authenticate as your API requires, and call a tool from your agent.

// возможности

Почему его любят

Authentication built in

Secure MCP tools using your existing FastAPI dependencies (Depends) for authentication and authorization - no parallel auth system.

FastAPI-native, not a converter

Built as a native extension of FastAPI rather than an OpenAPI translation layer, preserving native dependency behavior.

Schemas and docs preserved

Request and response models keep their schemas, and endpoint documentation carries over just as it appears in Swagger.

Zero/minimal configuration

Point it at your FastAPI app and it works - the basic integration is three lines of code.

Flexible deployment

Mount the MCP server into the same FastAPI app or deploy it separately, as your architecture requires.

Efficient ASGI transport

The MCP server communicates with your app through its ASGI interface directly, eliminating internal HTTP calls.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Clone FastAPI-MCP for the examples and source; most users install the package instead.

    git clone https://github.com/tadata-org/fastapi_mcp.git
    cd fastapi_mcp
  2. Install the package

    Add fastapi-mcp to your FastAPI project (uv recommended by the README, pip works too).

    pip install fastapi-mcp
  3. Mount it on your app

    Add the MCP server to your FastAPI application; it becomes available at your app's /mcp path.

    from fastapi_mcp import FastApiMCP
    mcp = FastApiMCP(app)
    mcp.mount()  # see README for the full example
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains FastAPI-MCP?

It is developed by tadata-org (Tadata Inc.) and community contributors; Tadata also offers a hosted solution.

Is it free to use?

Yes. It is MIT-licensed (Copyright Tadata Inc.).

Does it need a paid API key?

No. It is a library that runs inside your own FastAPI deployment; the AI clients that call it use their own model access.

How does it compare with generating an MCP server from an OpenAPI spec?

Generic converters translate the spec; FastAPI-MCP works natively with your running app, reusing its dependencies for auth and its ASGI interface for transport, so behavior matches your API exactly.

How do I get started?

Run pip install fastapi-mcp, add FastApiMCP(app) and mcp.mount() to your app, and connect an MCP client to /mcp.

// продолжить изучение

Похожие инструменты

Инструменты разработчика

csharp-sdk

The official C# SDK for the Model Context Protocol — build MCP servers and clients in .NET

★ 4,6 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

java-sdk

The official Java SDK for building Model Context Protocol servers and clients.

★ 3,7 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

rust-sdk

rmcp: the official Rust SDK for the Model Context Protocol — tokio-based servers and clients

★ 4,0 тыс. звёздNOASSERTION
Смотреть руководство →
Инструменты разработчика

claude-context

Code-search MCP for Claude Code: make your entire codebase the context for any coding agent.

★ 12,6 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

CodeGraphContext

An MCP server plus a CLI tool that indexes local code into a graph database to provide context to AI assistants.

★ 4,2 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

GrapeRoot

MCP graph engine that compounds context across AI coding assistants.

★ 1,0 тыс. звёздApache-2.0
Смотреть руководство →
// альтернативы

Альтернативы: Инструменты разработчика

Другие проекты из категории «Инструменты разработчика» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если fastapi_mcp вам не подходит.

// ещё в категории devtools

Больше проектов: Инструменты разработчика

Соседние проекты из категории «Инструменты разработчика» в каталоге, ближайшие по числу звёзд к fastapi_mcp — продолжайте изучать полку по обе стороны от него.

Получить fastapi_mcp

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.