FastAPI OpenAPI
Enables FastAPI applications to expose their endpoints as an AI-friendly, introspectable server using the Model Context Protocol.
This FastAPI library transforms your API documentation into an AI-friendly, introspectable server compatible with the Model Context Protocol (MCP). It allows AI agents, LLMs, and development tools like Cursor and GitHub Copilot to seamlessly discover, understand, and interact with your FastAPI endpoints. By providing detailed, resolved OpenAPI documentation and implementing the latest MCP Streamable HTTP transport, it facilitates next-generation AI workflows for API interaction and development.
Key Features
01Zero-effort LLM/Agent integration for FastAPI endpoints
021 GitHub stars
03Built-in security features including CORS and origin validation
04Comprehensive OpenAPI documentation with fully resolved schemas
05Endpoint discovery and introspection tools (listEndpoints, getEndpointDocs)
06Full compatibility with MCP Streamable HTTP transport
Use Cases
01Exposing FastAPI endpoints to AI agents and LLMs for introspection and interaction
02Providing discoverable and streamable API documentation for custom MCP clients and workflows
03Integrating FastAPI APIs with development tools like GitHub Copilot for enhanced autocompletion and understanding