openapi2mcp

RJL667/openapi2mcp
★ 0 stars Python AI/LLM Updated 1d ago
OpenAPI 3.x / Swagger 2.0 -> working MCP stdio server. Multi-file specs, external $refs, relative server URLs. 245/250 public APIs digested unattended (schema-level survey, apis.guru).
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "openapi2mcp": {
      "command": "uvx",
      "args": [
        "openapi2mcp"
      ]
    }
  }
}

Or install with pip: pip install openapi2mcp

README Excerpt

Turn any OpenAPI 3.x spec into a working MCP stdio server — typed tool schemas, auth wiring, and a smoke test per tool. Standard library only, no dependencies beyond PyYAML for YAML specs. ```bash python3 openapi2mcp.py \ --spec https://api.example.com/openapi.json \ --name example --out ./build --max-tools 8 --include 'pet|store'

Topics

agent-toolscode-generationllm-toolsmcpmcp-servermodel-context-protocolopenapiopenapi3pythonswagger