harsha-iiiv/openapi-mcp-generator
A tool that converts OpenAPI specifications to MCP server
Platform-specific configuration:
{
"mcpServers": {
"openapi-mcp-generator": {
"command": "npx",
"args": [
"-y",
"openapi-mcp-generator"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](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.
---
tsconfig.json, package.json, and entry point.---
npm install -g openapi-mcp-generator> You can also use yarn global add openapi-mcp-generator or pnpm add -g openapi-mcp-generator
---
# 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-mcpLoading reviews...