OpenAPI

•
5
•

Dynamically generates executable tools for AI agents and MCP clients from any OpenAPI 3.x specification, enabling direct interaction with APIs.

The OpenAPI tool functions as an MCP (Model Context Protocol) server, capable of dynamically generating executable tools from any OpenAPI 3.x specification. By simply pointing it to a spec file or URL, it automatically creates one MCP tool for each API operation. This process involves parsing and resolving references, filtering operations, deriving tool names, merging various parameters into a unified JSON Schema, and mapping HTTP methods to appropriate MCP tool annotations like `readOnlyHint`, `destructiveHint`, and `idempotentHint`. The resulting tools enable seamless, spec-driven interaction with APIs, allowing AI agents or other MCP clients to utilize them without requiring manual code generation or AI interpretation.

主な機能

01Merges path, query, header parameters, and request body into a single input JSON Schema
02Generates smart tool names, falling back to `method_path` if `operationId` is absent
03Supports various authentication strategies: Bearer, Basic, API Key (header or query), or none
04Supports any OpenAPI 3.0.x / 3.1.x specification via file path or URL
05Automatically applies MCP tool annotations (readOnly, destructive, idempotent hints) based on HTTP methods
065 GitHub stars

ユースケース

01Rapidly exposing API operations as usable tools for any MCP-compliant system without manual code generation.
02Integrating existing REST APIs into AI agent platforms like Claude Code for natural language interaction.
03Automating complex API workflows by leveraging OpenAPI definitions directly as executable tools.