npm package

openapi-mcp-generator

Updated 2026-07-16 View source ↗

#110 of 203 by Downloads / week among npm packages

10.7k Downloads / week

Generates MCP server code from OpenAPI specifications

About

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.

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

Configuring the API base URL at runtime: the generated server reads APIBASEURL from the environment (.env), overriding the value baked in from the OpenAPI servers list. The port resolves from --port, then the PORT env var, then 3000.

You can also use this package programmatically in your Node.js…

Excerpted from www.npmjs.com/package/openapi-mcp-generator

Latest metrics

Downloads / week 10.7k 2026-07-16