Skip to main content
Glama
openapi-spec-mcp

openapi-spec-mcp

by puelpan

OpenAPI MCP Server

MCP server that turns any OpenAPI/Swagger spec into queryable tools for your LLM. Search endpoints, get endpoint details, and explore schemas from your API documentation.

Setup for Claude Code

Add to your .mcp.json, .claude.json or claude_desktop_config.json.

{
  "mcpServers": {
    "my-api": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/puelpan/openapi-spec-mcp.git@main",
        "openapi-spec-mcp",
        "/path/to/your/openapi.yaml"
      ]
    }
  }
}

Or use a remote URL:

{
  "mcpServers": {
    "my-api": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/puelpan/openapi-spec-mcp.git@main",
        "openapi-spec-mcp",
        "https://api.example.com/openapi.json"
      ]
    }
  }
}

Related MCP server: OpenAPI MCP Server

Available Tools

  • search_endpoints: Find endpoints by keyword

  • get_endpoint: Get detailed endpoint info (parameters, responses, etc.)

  • list_all_endpoints: List all available endpoints

  • search_schemas: Find schema definitions by name

  • get_schema: Get schema details with resolved references

Supported Formats

  • Local files: .yaml, .yml, .json

  • Remote URLs: Any OpenAPI spec URL (format auto-detected)

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to load, parse, and query OpenAPI/Swagger documentation from URLs with intelligent search across endpoints, schemas, and authentication methods. Provides 10 specialized tools for comprehensive API exploration including path details, operation lookups, and multi-criteria search capabilities.
      4
      -
    • A
      license
      A
      quality
      D
      maintenance
      Exposes Swagger/OpenAPI API documentation to AI models, enabling exploration, search, and interaction with endpoints, schemas, and execution of API calls.
      14
      20 npm
      2
      MIT