Openapi2mcpserver MCP Server

请将 `BASE_URL`, `OPEN_API_DOC_JSON_URL` 替换为您的实际 OpenAPI 服务器地址和文档 JSON URL。

Local serverstdio

What is the Openapi2mcpserver MCP server?

请将 BASE_URL, OPEN_API_DOC_JSON_URL 替换为您的实际 OpenAPI 服务器地址和文档 JSON URL。. Exposed over MCP by the openapi2mcpserver mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

Adding it to your client

The server ships on a container image as jeweis/openapi2mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Its toolset

Everything the assistant can do here goes through one of these:

  • Cline — 请将示例中的占位符替换为您的实际 OpenAPI 服务器地址和文档 JSON URL,并根据 Cline 的具体配置格式进行调整。

Configuration

You will need 2 environment variables: BASE_URL, OPEN_API_DOC_JSON_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.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the openapi2mcpserver mcp server does with a few real requests.

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Openapi2mcpserver's toolset — Cline — is a fair guide to whether it matches your workflow. It is maintained by jeweis; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
Cline请将示例中的占位符替换为您的实际 OpenAPI 服务器地址和文档 JSON URL,并根据 Cline 的具体配置格式进行调整。

How to install the Openapi2mcpserver MCP server

{
  "mcpServers": {
    "openapi2mcpserver": {
      "disabled": false,
      "command": "uvx",
      "args": [
        "openapi2mcpserver"
      ],
      "env": {
        "BASE_URL": "your_openapi3.0_host",
        "OPEN_API_DOC_JSON_URL": "your_openapi3.0_host doc  json url"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
BASE_URLEndpoint or connection string the server talks to.Yes
OPEN_API_DOC_JSON_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Openapi2mcpserver to Cline.

Frequently asked questions

It connects Openapi2mcpserver to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Cline) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Openapi2mcpserver directly.