Skip to content
Back to skills

Expose Fastapi Routes As Mcp Tools With Fastapi Mcp

ASecurity

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

  • 36 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 8, 2026
ai-agentspythongobashfastapigitapisecuritydocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Expose Fastapi Routes As Mcp Tools With Fastapi Mcp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Expose Fastapi Routes As Mcp Tools With Fastapi Mcp
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-expose-fastapi-routes-as-mcp-tools-with-fastapi-mc/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-expose-fastapi-routes-as-mcp-tools-with-fastapi-mc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Expose FastAPI routes as MCP tools with FastAPI-MCP"
slug: "expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp"
description: "Mount FastAPI-MCP on an existing FastAPI app so agents can call authenticated route-backed MCP tools with preserved schemas."
github_stars: 11836
verification: "security_reviewed"
source: "https://github.com/tadata-org/fastapi_mcp"
author: "Tadata"
publisher_type: "organization"
category: "Integrations & Connectors"
framework: "MCP"
tool_ecosystem:
  github_repo: "tadata-org/fastapi_mcp"
  github_stars: 11836
---

# 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

Use the upstream install or setup path that matches your environment:
- uv add fastapi-mcp
- Alternatively, you can install with pip:
- pip install fastapi-mcp

Requirements and caveats from upstream:
- [![Python Versions](https://img.shields.io/pypi/pyversions/fastapi-mcp.svg)](https://pypi.org/project/fastapi-mcp/)
- We recommend using [uv](https://docs.astral.sh/uv/), a fast Python package installer:
- python

Basic usage or getting-started notes:
- <p align="center"><a href="https://github.com/tadata-org/fastapi_mcp"><img src="https://github.com/user-attachments/assets/b205adc6-28c0-4e3c-a68b-9c1a80eb7d0c" alt="fastapi-mcp-usage" height="400"/></a></p>
- bash
- ## Basic Usage

- 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/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.