OpenAPI Analyzer

OpenAPI Analyzer

sureshkumars

Loads and analyzes OpenAPI specifications to help you understand API structures, find endpoints, and identify inconsistencies across multiple API specs.

Analyzes OpenAPI specifications with seven core tools including spec loading, API listing, endpoint searching, statistics generation, inconsistency detection, and schema comparison for API documentation review, validation, and multi-API comparison workflows.

10432 views2Local (stdio)

What it does

  • Load OpenAPI specs from URLs, registries, or local files
  • Search for specific endpoints across multiple APIs
  • Generate comprehensive statistics about API ecosystems
  • Detect inconsistencies in authentication and naming conventions
  • Compare schemas with the same name across different APIs
  • List all available APIs and endpoints

Best for

API developers reviewing and validating specificationsTeams managing multiple microservices with OpenAPI docsArchitecture reviews of API ecosystemsAPI documentation quality assurance
Supports 30+ APIs via registry discoveryAnalyzes 90+ specs simultaneouslyNatural language endpoint queries

About OpenAPI Analyzer

OpenAPI Analyzer is a community-built MCP server published by sureshkumars that provides AI assistants with tools and capabilities via the Model Context Protocol. Analyze OpenAPI specifications: load specs, list APIs, search endpoints, detect inconsistencies, and compare schemas eff It is categorized under developer tools.

How to install

You can install OpenAPI Analyzer in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

OpenAPI Analyzer is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

OpenAPI Analyzer MCP Server

npm version License: MIT

A powerful Model Context Protocol (MCP) server for analyzing OpenAPI specifications with Claude Desktop and other LLM clients. This server enables natural language queries about your API structures, endpoints, schemas, and helps identify inconsistencies across multiple OpenAPI specs.

πŸ“‹ Table of Contents

πŸš€ Features

🎯 Smart Discovery System

  • πŸ“‘ API Registry Support: Automatically discover APIs from apis.json registries (support for 30+ APIs)
  • πŸ”— URL-Based Loading: Load specs from individual URLs with automatic fallback
  • πŸ“ Local File Support: Traditional folder-based spec loading with multi-format support
  • πŸ”„ Priority System: Discovery URL β†’ Individual URLs β†’ Local folder (intelligent fallback)

πŸ” Advanced Analysis

  • πŸ“Š Bulk Analysis: Load and analyze 90+ OpenAPI specification files simultaneously
  • πŸ” Smart Search: Find endpoints across all APIs using natural language queries
  • πŸ“ˆ Comprehensive Stats: Generate detailed statistics about your API ecosystem
  • πŸ”§ Inconsistency Detection: Identify authentication schemes and naming convention mismatches
  • πŸ“‹ Schema Comparison: Compare schemas with the same name across different APIs
  • ⚑ Fast Queries: In-memory indexing for lightning-fast responses

🌐 Universal Compatibility

  • Multi-Format Support: JSON, YAML, and YML specifications
  • Version Support: OpenAPI 2.0, 3.0, and 3.1 specifications
  • Remote & Local: Works with URLs, API registries, and local files
  • Source Tracking: Know exactly where each API spec was loaded from

πŸ›  Installation

Option 1: Install from npm

npm install openapi-analyzer-mcp

Option 2: Build from source

git clone https://github.com/sureshkumars/openapi-analyzer-mcp.git
cd openapi-analyzer-mcp
npm install
npm run build

βš™οΈ Configuration

🎯 Smart Discovery Options

The OpenAPI Analyzer supports three discovery methods with intelligent priority fallback:

  1. πŸ† Priority 1: API Registry (OPENAPI_DISCOVERY_URL)
  2. πŸ₯ˆ Priority 2: Individual URLs (OPENAPI_SPEC_URLS)
  3. πŸ₯‰ Priority 3: Local Folder (OPENAPI_SPECS_FOLDER)

Claude Desktop Setup

Find your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\\Claude\\claude_desktop_config.json

Configuration Examples

🌟 Option 1: API Registry Discovery (Recommended)

Perfect for companies with centralized API registries:

{
  "mcpServers": {
    "openapi-analyzer": {
      "command": "npx",
      "args": ["-y", "openapi-analyzer-mcp"],
      "env": {
        "OPENAPI_DISCOVERY_URL": "https://docs.company.com/apis.json"
      }
    }
  }
}

πŸ”— Option 2: Individual API URLs

Load specific APIs from direct URLs:

{
  "mcpServers": {
    "openapi-analyzer": {
      "command": "npx", 
      "args": ["-y", "openapi-analyzer-mcp"],
      "env": {
        "OPENAPI_SPEC_URLS": "https://api.example.com/v1/openapi.yaml,https://api.example.com/v2/openapi.yaml,https://petstore.swagger.io/v2/swagger.json"
      }
    }
  }
}

πŸ“ Option 3: Local Folder

Traditional approach for local specification files:

{
  "mcpServers": {
    "openapi-analyzer": {
      "command": "npx",
      "args": ["-y", "openapi-analyzer-mcp"],
      "env": {
        "OPENAPI_SPECS_FOLDER": "/absolute/path/to/your/openapi-specs"
      }
    }
  }
}

πŸ”„ Option 4: Multi-Source with Fallback

Ultimate flexibility - tries all methods with intelligent fallback:

{
  "mcpServers": {
    "openapi-analyzer": {
      "command": "npx",
      "args": ["-y", "openapi-analyzer-mcp"],
      "env": {
        "OPENAPI_DISCOVERY_URL": "https://docs.company.com/apis.json",
        "OPENAPI_SPEC_URLS": "https://legacy-api.com/spec.yaml,https://external-api.com/spec.json",
        "OPENAPI_SPECS_FOLDER": "/path/to/local/specs"
      }
    }
  }
}

🏒 Real-World Examples

Company with API Registry:

{
  "mcpServers": {
    "company-apis": {
      "command": "npx",
      "args": ["-y", "openapi-analyzer-mcp"],
      "env": {
        "OPENAPI_DISCOVERY_URL": "https://api.company.com/registry/apis.json"
      }
    }
  }
}

Multiple API Sources:

{
  "mcpServers": {
    "multi-apis": {
      "command": "npx",
      "args": ["-y", "openapi-analyzer-mcp"],
      "env": {
        "OPENAPI_SPEC_URLS": "https://petstore.swagger.io/v2/swagger.json,https://api.example.com/v1/openapi.yaml"
      }
    }
  }
}

πŸ”§ Environment Variables

VariableDescriptionExamplePriority
OPENAPI_DISCOVERY_URLURL to API registry (apis.json format)https://docs.company.com/apis.json1 (Highest)
OPENAPI_SPEC_URLSComma-separated list of OpenAPI spec URLshttps://api1.com/spec.yaml,https://api2.com/spec.json2 (Medium)
OPENAPI_SPECS_FOLDERAbsolute path to local OpenAPI files folder/absolute/path/to/specs3 (Fallback)

⚠️ Important Notes:

  • At least one environment variable must be set
  • System tries sources in priority order and stops at first success
  • Always use absolute paths for OPENAPI_SPECS_FOLDER
  • Supports JSON, YAML, and YML formats for all sources

🎯 Usage

Once configured, you can interact with your OpenAPI specs using natural language in Claude Desktop:

πŸš€ Smart Discovery Queries

API Registry Discovery

"Load all APIs from the company registry and show me an overview"
"Discover APIs from the configured registry and analyze their authentication patterns"
"What APIs are available in our API registry?"
"Show me where my specs were loaded from"

Cross-API Analysis

"Load all my OpenAPI specs and give me a comprehensive summary"
"How many APIs do I have and what's the total number of endpoints?"
"Compare authentication schemes across all loaded APIs"
"Which APIs are using different versions of the same schema?"

Search and Discovery

"Show me all POST endpoints for user creation across all APIs"
"Find all endpoints related to authentication across all loaded APIs"
"Which APIs have pagination parameters?"
"Search for endpoints that handle file uploads"
"Find all APIs that use the 'User' schema"

Analysis and Comparison

"What authentication schemes are used across my APIs?"
"Which APIs have inconsistent naming conventions?"
"Compare the User schema across different APIs"
"Show me APIs that are still using version 1.0"

Statistics and Insights

"Generate comprehensive statistics about my API ecosystem"
"Which HTTP methods are most commonly used?"
"What are the most common path patterns?"
"Show me version distribution across my APIs"

πŸ”§ Available Tools

The MCP server provides these tools for programmatic access:

ToolDescriptionParameters
load_specsSmart Load: Automatically load specs using priority system (registry β†’ URLs β†’ folder)None
list_apisList all loaded APIs with basic info (title, version, endpoint count)None
get_api_specGet the full OpenAPI spec for a specific filefilename
search_endpointsSearch endpoints by keyword across all APIsquery
get_api_statsGenerate comprehensive statistics about all loaded APIsNone
find_inconsistenciesDetect inconsistencies in authentication schemesNone
compare_schemasCompare schemas with the same name across different APIsschema1, schema2 (optional)
get_load_sourcesNew! Show where specs were loaded from (registry, URLs, or folder)None

πŸ“ Project Structure

openapi-analyzer-mcp/
β”œβ”€β”€ src/
β”‚   └── index.ts          # Main server implementation
β”œβ”€β”€ tests/               # Comprehensive test suite
β”‚   β”œβ”€β”€ analyzer.test.ts # Core functionality tests
β”‚   β”œβ”€β”€ server.test.ts   # MCP server tests  
β”‚   β”œβ”€β”€ validation.test.ts # Environment tests
β”‚   β”œβ”€β”€ setup.ts         # Test configuration
β”‚   └── fixtures/        # Test data files
β”œβ”€β”€ dist/                # Compiled JavaScript
β”œβ”€β”€ coverage/            # Test coverage reports
β”œβ”€β”€ examples/            # Example configurations
β”‚   β”œβ”€β”€ claude_desktop_config.json
β”‚   └── sample-openapi.json
β”œβ”€β”€ vitest.config.ts     # Test configuration
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
└── README.md

Note: You don't need an openapi-specs folder in this repository. Point OPENAPI_SPECS_FOLDER to wherever your actual OpenAPI files are located.

πŸ” Example Output

🎯 Smart Discovery Results

Load Sources Information

[
  {
    "type": "discovery",
    "url": "https://api.company.com/registry/apis.json",
    "count": 12,
    "metadata": {
      "name": "Company APIs",
      "description": "Collection of company API specifications",
      "total_apis": 12
    }
  }
]

Registry Discovery Success

{
  "totalApis": 12,
  "totalEndpoints": 247,
  "loadedFrom": "API Registry",
  "discoveryUrl": "https://api.company.com/registry/apis.json",
  "apis": [
    {
      "filename": "User Management API",
      "title": "User Management API", 
      "version": "2.1.0",
      "endpointCount": 18,
      "source": "https://docs.company.co

---

*README truncated. [View full README on GitHub](https://github.com/sureshkumars/openapi-analyzer-mcp).*

Alternatives

Related Skills

Browse all skills
api-documenter

Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.

0
cto-advisor

Technical leadership guidance for engineering teams, architecture decisions, and technology strategy. Includes tech debt analyzer, team scaling calculator, engineering metrics frameworks, technology evaluation tools, and ADR templates. Use when assessing technical debt, scaling engineering teams, evaluating technologies, making architecture decisions, establishing engineering metrics, or when user mentions CTO, tech debt, technical debt, team scaling, architecture decisions, technology evaluation, engineering metrics, DORA metrics, or technology strategy.

10
ui-design-system

UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.

6
cli-builder

Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.

2
openai-knowledge

Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.

0
openapi-analyzer

Π˜Π·Π²Π»Π΅Ρ‡Π΅Π½ΠΈΠ΅ ΠΈ Π°Π½Π°Π»ΠΈΠ· OpenAPI 3.1.0 спСцификации ΠΈΠ· MikoPBX для Π²Π°Π»ΠΈΠ΄Π°Ρ†ΠΈΠΈ эндпоинтов. Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ ΠΏΡ€ΠΈ ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠ΅ соотвСтствия API, Π³Π΅Π½Π΅Ρ€Π°Ρ†ΠΈΠΈ тСстов, ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠ΅ схСм эндпоинтов ΠΈΠ»ΠΈ ΠΈΠ½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΠΈ с Π½Π°Π²Ρ‹ΠΊΠ°ΠΌΠΈ endpoint-validator ΠΈ api-test-generator.

0