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.
npx skills add agentskillexchange/skills --skill expose-fastapi-routes-as-mcp-tools-with-fastapi-mcp
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.
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.