Openapi MCP Server

Enables large language models to interact with and utilize REST APIs by providing configured REST APIs as context.

Local serverstdioPython 6

What is the Openapi MCP server?

If you already use Openapi, the openapi mcp server is the piece that lets your assistant work with it directly. Enables large language models to interact with and utilize REST APIs by providing configured REST APIs as context.

What the server does

Enables large language models to interact with and utilize REST APIs by providing configured REST APIs as context.

Available tools

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

  • Configuration — The Configuration tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: DEBUG, API_BASE_URL, OPENAPI_SPEC_PATH, API_HEADERS, API_WHITE_LIST, TWINE_USERNAME. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

Installation goes through your MCP client rather than a global install: point it at openapi_mcp_server on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

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's toolset — Configuration — is a fair guide to whether it matches your workflow. It is maintained by rahgadda; 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.

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.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
ConfigurationThe Configuration tool exposed by this server.

How to install the Openapi MCP server

{
  "mcpServers": {
    "openapi-3": {
      "command": "uvx",
      "args": ["openapi_mcp_server"],
      "env": {
        "DEBUG": "your-value",
        "API_BASE_URL": "your-value",
        "OPENAPI_SPEC_PATH": "your-value",
        "API_HEADERS": "your-value",
        "API_WHITE_LIST": "your-value",
        "TWINE_USERNAME": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
DEBUGConfiguration value read at startup.Optional
API_BASE_URLEndpoint or connection string the server talks to.Yes
OPENAPI_SPEC_PATHFilesystem location the server is allowed to use.Optional
API_HEADERSConfiguration value read at startup.Optional
API_WHITE_LISTConfiguration value read at startup.Optional
TWINE_USERNAMEConfiguration value read at startup.Optional

Example prompts to try

  • Use Openapi to Configuration.

Frequently asked questions

Openapi currently supports HTTP API calls including GET, PUT, POST, and PATCH. This allows LLMs to retrieve, update, create, and modify data via APIs.