git404hub

what is fastapi_mcp fr?

tadata-org/fastapi_mcp — explained in plain English

Analysis updated 2026-06-24

11,862PythonAudience · developerComplexity · 3/5LicenseSetup · easy

tl;dr

A Python library that automatically exposes all your existing FastAPI endpoints as MCP tools so AI assistants like Claude or Cursor can discover and call your API during a conversation, with no rebuilding required.

vibe map

mindmap
  root((fastapi_mcp))
    What it does
      FastAPI to MCP tools
      Auto endpoint discovery
      Auth reuse
    Tech stack
      Python
      FastAPI
      MCP protocol
    Use cases
      Claude tool integration
      Cursor AI integration
      Reuse existing API
    Deployment
      Mounted on app
      Separate process
    Audience
      Python developers
      AI tool builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Expose an existing FastAPI backend to Claude or Cursor as callable tools without rewriting any endpoint logic

VIBE 2

Reuse your existing FastAPI authentication dependencies for the AI tool interface without creating a separate auth layer

VIBE 3

Mount the MCP server directly onto your FastAPI app so it runs as part of your existing service with no extra infrastructure

VIBE 4

Run the MCP server as a separate process if your infrastructure requires it to be isolated from the main app

what's the stack?

PythonFastAPIMCP

how it stacks up fr

tadata-org/fastapi_mcpsimonw/llmalexjc/neural-enhance
Stars11,86211,85611,870
LanguagePythonPythonPython
Setup difficultyeasyeasyhard
Complexity3/52/53/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 30min

Requires Python 3.10 or later, Python 3.12 is recommended.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

in plain english

FastAPI-MCP is a Python library that takes an existing FastAPI web application and automatically exposes all of its API endpoints as tools that AI assistants can call. FastAPI is a popular Python framework for building web APIs. MCP, the Model Context Protocol, is a standard that lets AI tools like Claude or Cursor discover and invoke external capabilities during a conversation. The idea is that if you already have a working FastAPI backend, you should not need to rebuild anything to make it usable by an AI assistant. You add this library, call two functions, and your entire API becomes available to AI tools at a new URL. The library reads your existing FastAPI route definitions, including their documentation and data schemas, and uses that information to describe each endpoint to the AI in the format MCP requires. The README highlights that this is built as a native FastAPI extension rather than a generic converter. That distinction matters for authentication: instead of creating a separate authentication layer for the MCP interface, you can reuse the same FastAPI dependency functions you already wrote for your regular API. The library also communicates with your FastAPI app directly through its internal interface rather than making HTTP calls to it, which the README notes is more efficient. Deployment is flexible. You can mount the MCP server onto the same application so it runs as part of your existing service, or you can run it as a separate process if your infrastructure requires that. Installation is through pip or the uv package manager. Python 3.10 or later is required, with 3.12 recommended. The project is open-source under the MIT license and is maintained by Tadata, which also offers a managed hosted version of the same functionality for teams that prefer not to self-host.

prompts (copy fr)

prompt 1
Add FastAPI-MCP to my FastAPI app and expose all my endpoints as tools that Claude can call during a conversation
prompt 2
How do I reuse my existing FastAPI OAuth2 dependency for authentication in the FastAPI-MCP interface?
prompt 3
Set up FastAPI-MCP as a standalone process separate from my FastAPI app and connect it to Cursor
prompt 4
Show me the two functions I need to call to turn a FastAPI app into an MCP server with FastAPI-MCP
prompt 5
How do I add FastAPI-MCP to a FastAPI app that already has JWT authentication without breaking existing routes?

Frequently asked questions

what is fastapi_mcp fr?

A Python library that automatically exposes all your existing FastAPI endpoints as MCP tools so AI assistants like Claude or Cursor can discover and call your API during a conversation, with no rebuilding required.

What language is fastapi_mcp written in?

Mainly Python. The stack also includes Python, FastAPI, MCP.

What license does fastapi_mcp use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is fastapi_mcp to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is fastapi_mcp for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.