Openapi To MCP Server

Use your OpenAPI specification to expose your API's endpoints as strongly typed tools.

Local serverstdio

What is the Openapi To MCP MCP server?

Connect Openapi To MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Use your OpenAPI specification to expose your API's endpoints as strongly typed tools. The openapi to mcp mcp server is what makes that connection.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • info.x-mcp — instructions (string): Textual instructions exposed by the MCP server during the initialize handshake
  • operation.x-mcp-tool — name (string): Custom tool name
  • Tools — The Tools tool exposed by this server
  • OAuth2 — ClientCredentials, RefreshToken, Password are supported. If your OpenAPI specification declare

Worth knowing first

  • 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.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

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 To MCP's toolset — info.x-mcp, operation.x-mcp-tool, Tools and 1 more — is a fair guide to whether it matches your workflow. It is maintained by ouvreboite; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
info.x-mcpinstructions (string): Textual instructions exposed by the MCP server during the initialize handshake
operation.x-mcp-toolname (string): Custom tool name
ToolsThe Tools tool exposed by this server.
OAuth2ClientCredentials, RefreshToken, Password are supported. If your OpenAPI specification declare [securitySchemes](https://swagger.io/docs/specification/v3_0/authentication/oauth2/) for those flows, the corresponding token

How to install the Openapi To MCP MCP server

{
  "mcpServers": {
    "petstore": {
      "command": "openapi-to-mcp",
        "args": [
          "https://petstore3.swagger.io/api/v3/openapi.json"
        ]
    }
  }
}

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

Example prompts to try

  • Use Openapi To MCP to info.x-mcp.
  • Use Openapi To MCP to operation.x-mcp-tool.
  • Use Openapi To MCP to Tools.

Frequently asked questions

It connects Openapi To MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (info.x-mcp, operation.x-mcp-tool, Tools, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Openapi To MCP directly.