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 Server?

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

Recorded tools

  • 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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
https//petstore3.swagger.io/api/v3/openapi.json defines a server, but its URL is relative (/api/v3)

How to install the Openapi To MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

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

Use your OpenAPI specification to expose your API's endpoints as strongly typed tools. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.