Generates MCP server code from OpenAPI specifications
Generates MCP server code from OpenAPI specifications. Exposed over MCP by the openapi mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.
Generate Model Context Protocol (MCP) servers from OpenAPI specifications.
Everything the assistant can do here goes through one of these:
Extension — x-mcp: true | falseDefault — true (include by default)Precedence — operation > path > root (first non-undefined wins)StreamableHTTP — The StreamableHTTP tool exposed by this serverYou will need one environment variable: API_BASE_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Installation goes through your MCP client rather than a global install: point it at openapi-mcp-generator on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Openapi's toolset — Extension, Default, Precedence and 1 more — is a fair guide to whether it matches your workflow. It is maintained by harshasurisetty; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Openapi's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Extension | x-mcp: true | false |
| Default | true (include by default) |
| Precedence | operation > path > root (first non-undefined wins) |
| StreamableHTTP | The StreamableHTTP tool exposed by this server. |
{
"mcpServers": {
"openapi-mcp-generator": {
"command": "npx",
"args": ["-y", "openapi-mcp-generator"],
"env": {
"API_BASE_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| API_BASE_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.