概要
OpenAPI allows you to create a Model Context Protocol (MCP) server that uses an OpenAPI spec to define its available tools. It fetches and parses the OpenAPI specification, registers each path-operation as a tool, and starts a FastMCP server. This enables clients to request these tools, triggering HTTP requests to the API and returning the responses, effectively bridging OpenAPI defined APIs with the Model Context Protocol.
主な機能
- Resolves references to external specs.
- Can use a global auth token for API requests.
- Supports OpenAPI 3.0 and 3.1 specifications.
- Offers configuration options for the FastMCP server (host, port, debug mode, log level).
- Works with JSON and YAML formats.
- 2 GitHub stars
ユースケース
- Quickly expose API functionality as tools for LLMs.
- Integrate existing APIs defined by OpenAPI specs into MCP workflows.
- Create custom tools for LLMs based on specific API endpoints.