Skill Detail

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.

Integrations & ConnectorsMCP
Integrations & Connectors MCP Security Reviewed
โญ 11.8k GitHub stars
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Python 3.10+, FastAPI application, fastapi-mcp package, MCP-capable client
Install & setup
Install with uv add fastapi-mcp or pip install fastapi-mcp, create FastApiMCP(app), then call mcp.mount() or follow the separate deployment documentation.
Author
Tadata
Publisher
Organization
Last updated
May 1, 2026
Quick brief

Use this skill when an agent/operator needs to make an existing FastAPI service available as MCP tools without hand-writing wrappers for every endpoint. The workflow is: install FastAPI-MCP, attach it to the FastAPI app, preserve request/response schemas and existing FastAPI auth dependencies, mount or separately deploy the MCP server, then connect an MCP client to the generated tool surface.

How it works

What this skill actually does

Invoke it instead of using the API normally when an agent needs schema-aware, authenticated tool access to internal FastAPI endpoints through MCP, especially for repeated operational or integration workflows.

Scope boundary: this is not a generic FastAPI or OpenAPI converter entry. Keep it to exposing existing FastAPI routes as MCP tools, preserving auth/schema semantics, and validating the resulting MCP endpoint for agent use.