An MCP (Model Context Protocol) server (v2.1.0) that enables AI assistants like Claude and Cursor to search and explore OpenAPI specifications through oapis.org. It follows a three-step process: identifying the needed OpenAPI identifier, fetching a plain-language summary, and examining specific endpoints. Unlike v1, v2 focuses purely on exploration and code generation without executing API calls, since authentication is not yet standardized in MCP. Supports JSON and YAML. Node.js >=18 required, ESM-only, published on npm.
npm install openapi-mcp-serverVerified import paths — ran on the pinned version, not inferred.
Creates and starts an OpenAPI MCP server using the stdio transport, enabling AI assistants to search and explore OpenAPI specs.
If you relied on v1's ability to call endpoints directly, do not upgrade. Stay on v1.x (e.g., `npm install openapi-mcp-server@1.2.0`).
Migrate to v2 if you only need exploration; otherwise consider alternative MCP servers that support API execution.
Use `import` statements. Ensure `"type": "module"` in your package.json.
Update Node.js to 18 or newer (e.g., using nvm).
Change to `import OpenAPIMCPServer from 'openapi-mcp-server'`. If you cannot use ESM, stay on v1.x.
Use `import OpenAPIMCPServer from 'openapi-mcp-server'` (no curly braces). The default export is the class.