FastAPI OpenAPI icon

FastAPI OpenAPI

2

Enables FastAPI applications to expose their endpoints as an AI-friendly, introspectable server using the Model Context Protocol.

About

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

  • Zero-effort LLM/Agent integration for FastAPI endpoints
  • 1 GitHub stars
  • Built-in security features including CORS and origin validation
  • Comprehensive OpenAPI documentation with fully resolved schemas
  • Endpoint discovery and introspection tools (listEndpoints, getEndpointDocs)
  • Full compatibility with MCP Streamable HTTP transport

Use Cases

  • Exposing FastAPI endpoints to AI agents and LLMs for introspection and interaction
  • Providing discoverable and streamable API documentation for custom MCP clients and workflows
  • Integrating FastAPI APIs with development tools like GitHub Copilot for enhanced autocompletion and understanding