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
COPY SKILL INSTRUCTIONS (OPTIONAL)
npx skills add agentskillexchange/skills --skill expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp Copy
Uses the third-party skills CLI, not an ASE-owned installer. Check your agent’s compatibility. This copies instructions; complete the upstream tool setup below separately.
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.