# Expose FastAPI routes as MCP tools with FastAPI-MCP

> Mount FastAPI-MCP on an existing FastAPI app so agents can call authenticated route-backed MCP tools with preserved schemas.

- Skill: `agentskillexchange/expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp

---


# Expose FastAPI routes as MCP tools with FastAPI-MCP

Mount FastAPI-MCP on an existing FastAPI app so agents can call authenticated route-backed MCP tools with preserved schemas.

## Prerequisites

Python 3.10+, FastAPI application, fastapi-mcp package, MCP-capable client

## Installation

Install with uv, as recommended upstream:

- uv add fastapi-mcp

Alternatively, install with pip:

- pip install fastapi-mcp

After mounting FastAPI-MCP in your app, the generated MCP server is available at your app base URL plus /mcp.

- Source: https://github.com/tadata-org/fastapi_mcp
- Extracted from upstream docs: https://raw.githubusercontent.com/tadata-org/fastapi_mcp/HEAD/README.md

## Documentation

- https://fastapi-mcp.tadata.com/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp/)

