loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

openapi-mcp-generator

MCP Tool

harsha-iiiv/openapi-mcp-generator

A tool that converts OpenAPI specifications to MCP server

Install

$ npx loaditout add harsha-iiiv/openapi-mcp-generator

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "openapi-mcp-generator": {
      "command": "npx",
      "args": [
        "-y",
        "openapi-mcp-generator"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

OpenAPI to MCP Generator (openapi-mcp-generator)

[](https://www.npmjs.com/package/openapi-mcp-generator) [](https://opensource.org/licenses/MIT) [](https://github.com/harsha-iiiv/openapi-mcp-generator)

Generate Model Context Protocol (MCP) servers from OpenAPI specifications.

This CLI tool automates the generation of MCP-compatible servers that proxy requests to existing REST APIsβ€”enabling AI agents and other MCP clients to seamlessly interact with your APIs using your choice of transport methods.

---

✨ Features
  • πŸ”§ OpenAPI 3.0 Support: Converts any OpenAPI 3.0+ spec into an MCP-compatible server.
  • πŸ” Proxy Behavior: Proxies calls to your original REST API while validating request structure and security.
  • πŸ” Authentication Support: API keys, Bearer tokens, Basic auth, and OAuth2 supported via environment variables.
  • πŸ§ͺ Zod Validation: Automatically generates Zod schemas from OpenAPI definitions for runtime input validation.
  • βš™οΈ Typed Server: Fully typed, maintainable TypeScript code output.
  • πŸ”Œ Multiple Transports: Communicate over stdio, SSE via Hono, or StreamableHTTP.
  • 🧰 Project Scaffold: Generates a complete Node.js project with tsconfig.json, package.json, and entry point.
  • πŸ§ͺ Built-in HTML Test Clients: Test API interactions visually in your browser (for web-based transports).

---

πŸš€ Installation
npm install -g openapi-mcp-generator

> You can also use yarn global add openapi-mcp-generator or pnpm add -g openapi-mcp-generator

---

πŸ›  Usage
# Generate an MCP server (stdio)
openapi-mcp-generator --input path/to/openapi.json --output path/to/output/dir

# Generate an MCP web server with SSE
openapi-mcp

Tags

openapimcpmodel-context-protocolgeneratorllmaiapi

Reviews

Loading reviews...

Quality Signals

Quality Score5500
555
Stars
0
Installs
Last updated43 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
read
Network Accessnone

Details

Sourcenpm
Last commit3/3/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/harsha-iiiv/openapi-mcp-generator)](https://loaditout.ai/skills/harsha-iiiv/openapi-mcp-generator)