Submit

Openapi2mcp

@oil-oil

OpenAPI2MCP (Model Context Protocol) that allows AI clients to call any OpenAPI-compatible REST API through the MCP interface. This tool converts OpenAPI specifications into MCP tools, enabling AI clients to interact with external APIs seamlessly.

Server Config

{
  "mcpServers": {
    "petstore": {
      "command": "npx",
      "args": [
        "-y",
        "openapi2mcp"
      ],
      "env": {
        "TRANSPORT_TYPE": "stdio",
        "API_BASE_URL": "https://petstore3.swagger.io/api/v3",
        "OPENAPI_SPEC_URL": "https://petstore3.swagger.io/api/v3/openapi.json",
        "HEADERS": "{\"Authorization\":\"Bearer your-token\",\"Content-Type\":\"application/json\"}"
      }
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.