integrate-fastapi-fastmcp
CommunityIntegrate FastAPI and FastMCP effortlessly.
Authorgaelic-ghost
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Projects that need to combine a FastAPI REST surface with a FastMCP server often lack clear guidance on how to mount, generate, or co‑host these interfaces while keeping a single uv‑managed Python environment.
Core Features & Use Cases
- Pattern A – Mount existing MCP into FastAPI: Shows how to import a curated FastMCP instance and mount it as a sub‑app, preserving lifespans and middleware.
- Pattern B – Generate FastMCP from FastAPI: Provides a quick bootstrap using
FastMCP.from_fastapiand advises on reviewing generated tools and endpoints. - Pattern C – Serve both API and MCP from one process: Demonstrates combining routes and lifespans for a unified deployment.
- Pattern D – Promote generated MCP to a curated service: Guides the transition from auto‑generated code to a production‑ready FastMCP application.
- UV workflow guidance: Details dependency management with
uv add, running tests, and handling workspace‑aware commands. - Validation checklist: Ensures configuration coherence, lifespan correctness, and proper testing of both HTTP and MCP sides.
Quick Start
Use the integrate-fastapi-fastmcp skill to determine the best integration pattern and generate the necessary FastMCP mounting code for my uv project.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: integrate-fastapi-fastmcp Download link: https://github.com/gaelic-ghost/socket/archive/main.zip#integrate-fastapi-fastmcp Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.