npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, πŸ‘‹, I’m Ryan HefnerΒ  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you πŸ™

Β© 2026 – Pkg Stats / Ryan Hefner

openapi-spec-master

v2.0.0

Published

πŸš€ Professional OpenAPI specification analyzer and MCP server. The ultimate toolkit for API developers with VS Code extension integration.

Readme

πŸš€ OpenAPI Spec Master

npm version Downloads NPM VS Code Extension

The ultimate OpenAPI specification toolkit for professional developers

A powerful, professional-grade OpenAPI specification analyzer with advanced AI integration via Model Context Protocol (MCP). Features comprehensive API analysis, code generation, and seamless integration with VS Code extension.

πŸ“¦ Available on NPM - Install with npx openapi-spec-master@latest
πŸ”Œ VS Code Extension - Professional IDE integration


✨ Why Choose OpenAPI Spec Master?

  • 🎯 Professional Grade: Enterprise-ready with advanced performance optimizations
  • πŸ€– AI Integration: Native MCP server for Claude, Cursor, and other AI tools
  • ⚑ Lightning Fast: Optimized for large specifications with intelligent caching
  • πŸ” Deep Analysis: 16 powerful tools for comprehensive API insights
  • πŸ› οΈ Multi-Language: Generate code in TypeScript, JavaScript, Python, cURL, and more
  • πŸ“Š Rich Analytics: Advanced filtering, grouping, and visualization capabilities
  • πŸ”Œ VS Code Integration: Professional extension for seamless development workflow

Features

πŸ” Advanced Analysis

  • Smart Filtering: Multi-dimensional filtering by methods, tags, complexity, security, and more
  • Intelligent Grouping: Organize endpoints by tags, methods, complexity, or path patterns
  • Analytics Dashboard: Comprehensive API analytics with distribution charts and insights
  • AI Suggestions: Context-aware recommendations for API improvements

πŸ€– MCP Server Integration

  • Dual Transport Support: Both stdio and HTTP transport options
  • AI Client Connectivity: Connect to Claude Desktop, Cursor, and other MCP-compatible clients
  • 16 Powerful Tools: Comprehensive suite for API analysis, development, validation, and optimization
  • Advanced Schema Analysis: Deep property searching, dependency tracking, and evolution analysis
  • Code Generation: TypeScript types, mock data, and multi-language examples
  • Security & Validation: Authentication analysis, example validation, and design recommendations
  • Real-time Analysis: Get instant API insights through your AI conversations
  • Streaming Support: Server-sent events for real-time updates (HTTP transport)

πŸ“Š Visualization & Export

  • Multiple View Modes: List, grid, compact, and table layouts
  • Export Options: JSON, PDF, CSV, and Markdown formats
  • Dark/Light Theme: Beautiful UI with theme switching
  • Responsive Design: Works perfectly on desktop and mobile

Quick Start

πŸš€ NPX Usage (Recommended)

Get started instantly without installation:

# Show setup instructions
npx openapi-spec-master@latest setup

# Start MCP server (stdio transport)
npx openapi-spec-master@latest mcp

# Start MCP server (HTTP transport)
npx openapi-spec-master@latest mcp --http

# Start web interface (development mode)
npx openapi-spec-master@latest web

πŸ“¦ Installation

If you prefer to install globally:

npm install -g openapi-spec-master

πŸ€– MCP Server Setup

Option A: NPX (Recommended)

Easy one-command setup - no installation required!

Configure Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "openapi-spec-master": {
      "command": "npx",
      "args": ["openapi-spec-master@latest", "mcp"]
    }
  }
}

For HTTP transport:

{
  "mcpServers": {
    "openapi-spec-master-http": {
      "command": "npx",
      "args": ["openapi-spec-master@latest", "mcp", "--http", "--port", "3001"]
    }
  }
}

Option B: Local Development

For development or customization:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build the servers: npm run build:all

Configure with local build:

{
  "mcpServers": {
    "openapi-spec-master": {
      "command": "node",
      "args": ["path/to/openapi-spec-master/dist/mcp/server.js"]
    }
  }
}

Web Application (Development)

  1. Clone the repository
  2. Install dependencies: npm install
  3. Start the development server: npm run dev
  4. Open your browser and load an OpenAPI specification

Test the Connection

Test with NPX:

npx openapi-spec-master@latest mcp

Test HTTP server:

npx openapi-spec-master@latest mcp --http
# Check health: curl http://localhost:3001/health

HTTP Transport Features

The HTTP transport provides additional capabilities beyond the standard MCP protocol:

RESTful API Endpoints

  • GET /health - Server health check
  • POST /mcp/tools/list - List available MCP tools
  • POST /mcp/tools/call - Execute an MCP tool
  • GET /mcp/stream - Server-sent events stream
  • POST /mcp/execute - Execute tool with optional streaming
  • GET /api/info - Get loaded API information
  • GET /api/endpoints - Search endpoints directly
  • GET /docs - API documentation

Streaming Support

# Real-time updates via Server-Sent Events
curl -N http://localhost:3001/mcp/stream

# Streaming tool execution
curl -X POST http://localhost:3001/mcp/execute \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_api_overview", "args": {}, "stream": true}'

Direct API Access

# Load OpenAPI spec
curl -X POST http://localhost:3001/mcp/tools/call \
  -H "Content-Type: application/json" \
  -d '{
    "name": "load_openapi_spec",
    "arguments": {
      "source": "https://petstore.swagger.io/v2/swagger.json",
      "sourceType": "url"
    }
  }'

# Search endpoints
curl "http://localhost:3001/api/endpoints?query=user&method=GET&limit=10"

MCP Tools Available

Core Functions (4 tools)

  • load_openapi_spec - Load and parse OpenAPI specifications from multiple sources
  • get_api_overview - Get comprehensive API overview and statistics
  • search_endpoints - Search and filter endpoints with advanced criteria
  • get_endpoint_details - Get detailed information about specific endpoints

Development Tools (3 tools)

  • generate_code_examples - Generate code examples in multiple programming languages
  • generate_typescript_types - Convert OpenAPI schemas to TypeScript interfaces and types
  • generate_mock_data - Generate realistic mock data based on OpenAPI schemas

Analysis & Validation (5 tools)

  • search_request_body_properties - Deep search through request body schemas for properties
  • find_schema_dependencies - Trace schema references and dependencies throughout the API
  • validate_request_examples - Validate that request/response examples match their schemas
  • get_api_analytics - Comprehensive API analytics and insights
  • validate_api_design - API design validation with recommendations

Security & Optimization (3 tools)

  • extract_auth_patterns - Analyze authentication and authorization patterns across the API
  • find_unused_schemas - Identify schemas that are defined but never referenced
  • analyze_schema_evolution - Analyze how schemas might evolve and suggest versioning strategies

Documentation (1 tool)

  • export_documentation - Export API documentation in various formats

πŸ”₯ New Advanced Capabilities

The latest version introduces 8 powerful new tools that dramatically expand analysis capabilities:

πŸ” Deep Schema Analysis

  • Property Search: Find specific properties across all request/response schemas
  • Dependency Mapping: Understand how schemas relate and depend on each other
  • Evolution Analysis: Assess how schemas might change and plan versioning strategies

πŸ›‘οΈ Security & Quality Assurance

  • Auth Pattern Analysis: Comprehensive security scheme analysis and recommendations
  • Example Validation: Ensure all documented examples actually match their schemas
  • Unused Schema Detection: Clean up APIs by finding orphaned schema definitions

⚑ Developer Productivity

  • TypeScript Generation: Auto-generate type-safe interfaces from OpenAPI schemas
  • Smart Mock Data: Context-aware mock data generation that understands field semantics
  • Advanced Code Examples: Multi-language code generation with proper typing

These tools work seamlessly with AI clients to provide unprecedented insight into API design, helping developers build better, more maintainable APIs.

Usage Examples with AI Clients

Once connected to Claude Desktop or Cursor, you can use prompts like:

Core Operations

  • "Load this OpenAPI spec and give me an overview: [paste spec]"
  • "Search for all POST endpoints in the user management section"
  • "Get detailed information about the GET /users/{id} endpoint"

Development & Code Generation

  • "Generate a Python example for the GET /users/{id} endpoint"
  • "Generate TypeScript interfaces for all schemas in this API"
  • "Create realistic mock data for the User schema"

Advanced Analysis

  • "Find all properties named 'email' in request bodies"
  • "Show me the schema dependencies for the User model"
  • "Validate all examples against their schemas"
  • "Analyze the authentication patterns used in this API"
  • "Find any unused schemas that could be cleaned up"

Optimization & Planning

  • "Analyze how the User schema might evolve over time"
  • "Get comprehensive analytics about this API's design"
  • "Validate the API design and suggest improvements"
  • "Export the documentation in markdown format"

Supported Formats

  • OpenAPI 3.0+ (JSON/YAML)
  • Swagger 2.0 (JSON/YAML) - automatically converted
  • URL Loading - Direct import from API endpoints
  • File Upload - Drag & drop or file picker
  • Text Paste - Direct specification pasting

Development

Project Structure

src/
β”œβ”€β”€ components/          # React components
β”œβ”€β”€ utils/              # Utility functions
β”œβ”€β”€ hooks/              # Custom React hooks
β”œβ”€β”€ types/              # TypeScript type definitions
└── mcp/               # MCP server implementations
    β”œβ”€β”€ server.ts      # Stdio transport server
    └── http-server.ts # HTTP transport server

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run mcp:build - Build stdio MCP server
  • npm run mcp:http:build - Build HTTP MCP server
  • npm run mcp:dev - Run stdio MCP server in development
  • npm run mcp:http - Run HTTP MCP server in development

Transport Comparison

| Feature | Stdio Transport | HTTP Transport | |---------|----------------|----------------| | Latency | Lower | Higher | | Setup | Simple | Moderate | | Streaming | No | Yes (SSE) | | Direct Access | No | Yes (REST API) | | MCP Standard | βœ… | βœ… | | Custom Integration | Limited | Full | | Debugging | Harder | Easier |

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Support

  • πŸ“– Check the in-app MCP instructions for detailed setup
  • πŸ› Report issues on GitHub
  • πŸ’‘ Request features through GitHub issues
  • 🌐 HTTP API documentation at /docs endpoint