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-client-mcp

v1.0.3

Published

Universal Dynamic OpenAPI MCP Server - One MCP that works with any OpenAPI specification

Readme

Universal OpenAPI MCP

npm version npm downloads License: MIT

A powerful Model Context Protocol (MCP) server that provides universal OpenAPI integration. One MCP installation that works with ANY OpenAPI specification - no more generating separate MCPs for each API!

🚀 Key Features

  • 🌐 Universal Compatibility: Works with any valid OpenAPI 2.0/3.0/3.1 specification
  • 🔧 Dynamic Operation: No pre-generation needed - parses and executes APIs in real-time
  • 🔐 Authentication & Session Persistence: Secure handling of authentication and session persistence
  • 🌍 Remote APIs: Support for both local files and remote OpenAPI URLs
  • 📖 Rich Documentation: Detailed operation descriptions and usage examples

📦 Installation

npm install -g openapi-client-mcp

⚡ Quick Use

Once configured, simply tell your AI assistant what you want to do:

Example Conversations:

"My API is at https://petstore.swagger.io/v2/swagger.json OR "./schema.yml""

  • The MCP will discover the OpenAPI spec and call the appropriate endpoint

"Call the POST /users endpoint with name 'John' and email '[email protected]'"

  • Automatically finds the endpoint and formats the request

"List all available endpoints from my Stripe API"

  • Discovers and shows all operations from the API specification

"Set up authentication for my API using API key 'sk-123...'"

  • Configures authentication and remembers it for future calls

Natural Language → API Calls

Just describe what you want in plain English:

  • ✅ "Get user by ID 123"
  • ✅ "Create a new product with name and price"
  • ✅ "Update customer email address"
  • ✅ "Delete order 456"

No need to know exact endpoint names or parameter formats!

🔐 Smart Session Management

The MCP helps you authenticate and remembers your login even after restart:

  • Login once: "Help me login to my API with OAuth/API key"
  • Persistent sessions: Your authentication is safely stored
  • Auto-reconnect: Sessions work across MCP restarts
  • Multiple APIs: Manage sessions for different APIs simultaneously

⚙️ Installation

Add to your MCP client (e.g., Claude Desktop, Cursor, VS Code):

{
  "mcpServers": {
    "openapi-client-mcp": {
      "command": "openapi-client-mcp"
    }
  }
}

Alternative (no installation):

{
  "mcpServers": {
    "openapi-client-mcp": {
      "command": "npx",
      "args": ["openapi-client-mcp"]
    }
  }
}

🔍 Supported OpenAPI Features

  • ✅ OpenAPI 2.0 (Swagger)
  • ✅ OpenAPI 3.0.x
  • ✅ OpenAPI 3.1.x
  • ✅ JSON and YAML formats
  • ✅ Path parameters
  • ✅ Query parameters
  • ✅ Header parameters
  • ✅ Request bodies
  • ✅ Multiple content types
  • ✅ Response schemas
  • ✅ Authentication schemes
  • ✅ Tags and operation grouping
  • ✅ Server definitions

🛡️ Security Features

  • Input validation with Zod schemas
  • Secure parameter handling
  • No arbitrary code execution

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

🔗 Links

📄 License

MIT License - see LICENSE file for details.

🆘 Troubleshooting

MCP Server Not Found:

  • Ensure global install: npm install -g openapi-client-mcp
  • Try npx instead: Use the npx configuration above
  • Check Node.js >=18.0.0 is installed

OpenAPI File Not Detected:

  • File must have .yaml, .yml, or .json extension
  • File must contain valid OpenAPI specification

API Calls Failing:

  • Check base URL in your OpenAPI spec
  • Use manage_auth tool for authentication
  • Verify required parameters are provided