FastAPI
Exposes FastAPI endpoints as Model Context Protocol (MCP) tools with zero configuration.
关于
FastAPI-MCP is a zero-configuration tool designed to automatically expose FastAPI endpoints as Model Context Protocol (MCP) tools. By directly integrating with your FastAPI application, it simplifies the process of making your API endpoints accessible and usable within MCP environments. It automatically discovers and converts FastAPI endpoints into MCP tools, preserving request/response model schemas and endpoint documentation, and offers flexible deployment options.
主要功能
- Maintains documentation of endpoints, mirroring Swagger.
- Directly integrates an MCP server into your FastAPI app.
- 1 GitHub stars
- Preserves schemas of request and response models.
- Requires zero configuration for automatic endpoint discovery and conversion.
- Supports flexible deployment options, either mounted to the same app or deployed separately.
使用案例
- Connecting FastAPI applications to MCP clients like Cursor or Claude Desktop.
- Exposing API functionalities as tools within a Model Context Protocol ecosystem.
- Simplifying the integration of FastAPI-based services into AI-powered workflows.