OpenAPI Analyzer▌

by sureshkumars
Analyze OpenAPI specifications: load specs, list APIs, search endpoints, detect inconsistencies, and compare schemas eff
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.
best for
- / API developers reviewing and validating specifications
- / Teams managing multiple microservices with OpenAPI docs
- / Architecture reviews of API ecosystems
- / API documentation quality assurance
capabilities
- / 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
what it does
Loads and analyzes OpenAPI specifications to help you understand API structures, find endpoints, and identify inconsistencies across multiple API specs.
about
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
MIT
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.
readme
OpenAPI Analyzer MCP Server
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
- 🛠 Installation
- ⚙️ Configuration
- 🎯 Usage
- 🔧 Available Tools
- 🔍 Example Output
- 🏗️ Creating Your Own API Registry
- 🚨 Troubleshooting
- 🤝 Contributing
- 🆕 Changelog
- 📝 License
🚀 Features
🎯 Smart Discovery System
- 📡 API Registry Support: Automatically discover APIs from
apis.jsonregistries (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:
- 🏆 Priority 1: API Registry (
OPENAPI_DISCOVERY_URL) - 🥈 Priority 2: Individual URLs (
OPENAPI_SPEC_URLS) - 🥉 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
| Variable | Description | Example | Priority |
|---|---|---|---|
OPENAPI_DISCOVERY_URL | URL to API registry (apis.json format) | https://docs.company.com/apis.json | 1 (Highest) |
OPENAPI_SPEC_URLS | Comma-separated list of OpenAPI spec URLs | https://api1.com/spec.yaml,https://api2.com/spec.json | 2 (Medium) |
OPENAPI_SPECS_FOLDER | Absolute path to local OpenAPI files folder | /absolute/path/to/specs | 3 (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:
| Tool | Description | Parameters |
|---|---|---|
load_specs | Smart Load: Automatically load specs using priority system (registry → URLs → folder) | None |
list_apis | List all loaded APIs with basic info (title, version, endpoint count) | None |
get_api_spec | Get the full OpenAPI spec for a specific file | filename |
search_endpoints | Search endpoints by keyword across all APIs | query |
get_api_stats | Generate comprehensive statistics about all loaded APIs | None |
find_inconsistencies | Detect inconsistencies in authentication schemes | None |
compare_schemas | Compare schemas with the same name across different APIs | schema1, schema2 (optional) |
get_load_sources | New! 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
---
FAQ
- What is the OpenAPI Analyzer MCP server?
- OpenAPI Analyzer is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for OpenAPI Analyzer?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
OpenAPI Analyzer is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated OpenAPI Analyzer against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: OpenAPI Analyzer is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
OpenAPI Analyzer reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend OpenAPI Analyzer for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: OpenAPI Analyzer surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
OpenAPI Analyzer has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, OpenAPI Analyzer benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired OpenAPI Analyzer into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
OpenAPI Analyzer is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.