Generate MCP servers from FastAPI apps
New in version: 2.0.0
FlashMCP can automatically convert FastAPI applications into MCP servers.
FastAPI Route Type | FastAPI Example | MCP Component | Notes |
---|---|---|---|
GET without path params | @app.get("/stats") | Resource | Simple resources for fetching data |
GET with path params | @app.get("/users/{id}") | Resource Template | Path parameters become template parameters |
POST, PUT, DELETE, etc. | @app.post("/users") | Tool | Operations that modify data |