← Back to directory
O

OpenAPI MCP Server

Community
Turn OpenAPI-defined REST APIs into MCP tools.
Category
Dev Tools #282 of 751
Stars
★ 302 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js
Credentials
API key / credential required
License
MIT
Last commit
53FMRS · D

The README describes mapping OpenAPI endpoints to MCP tools, with optional prompts and resources. The repository description calls it a server for turning OpenAPI specifications into an MCP Resource; the README further states that endpoints are exposed as tools. No server manifest was provided, so the loaded tool list and individual tool identifiers cannot be confirmed.

Strongest · Documentation 15/20 Weakest · Reliability 7/20

Reliability
7/20
Security and permissions
12/20
Maintenance
7/20
Documentation
15/20
Setup experience
12/20
Why each score
Reliability 7/20
The README describes stdio and HTTP transports, initialization and tool-list flows, OpenAPI-derived tools, error handling, and several spec input modes. It also lists build and test commands. However, it provides no evidence of CI workflows or committed tests covering key paths, and this static review cannot verify the handshake or tool behavior, so the static-calibration cap applies.
Security and permissions 12/20
The documentation says HTTP binds to localhost by default and validates Origin, and that authentication headers are not carried across cross-origin spec redirects. It also offers endpoint filters and advises relying on upstream API authorization. However, generated tools can perform API operations, the README does not establish per-operation confirmation for dangerous actions, and additional HTTP authentication is left to deployment configuration, so permission boundaries remain incomplete. The supplied material supports no red-line finding.
Maintenance 7/20
The repository description states an MIT license, and the README includes development and contribution guidance plus build, test, type-check, and lint commands. There is no evidence here of release cadence, commit activity, issue response, a security reporting channel, or dependency update policy. The unarchived status and star count do not establish sustained maintenance.
Documentation 15/20
The README covers CLI and library use, authentication, TLS, transports, tool filtering, prompts, resources, binary content, and error scenarios, with many configuration examples. Cost, operational limits, and secure deployment guidance are less developed, and the README claims are not verified by source files or execution evidence in this review.
Setup experience 12/20
The README provides an npx CLI path and Claude Desktop configuration, and explains both stdio and HTTP connection options, making the initial steps fairly clear. Users still need an OpenAPI spec and API URL or credentials; there is no platform compatibility matrix or verifiable end-to-end installation evidence.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesUses the network

Best for

  • Teams or developers with an OpenAPI specification who want MCP clients to call its REST API.
  • Node.js developers who need to filter endpoints or implement custom authentication logic.

Not for

  • APIs without an OpenAPI specification when no specification content can be supplied.
  • Users who require an official MCP implementation maintained by the upstream product or protocol owner.

Required permissions

  • Must read the configured OpenAPI specification, which can come from a URL, local file, standard input, or inline content.
  • API calls require access to the configured API and use the configured headers, auth provider, or TLS credentials.
  • HTTP transport must listen on the configured host and port; the default host is 127.0.0.1.

Risks and side effects

  • Exposed MCP tools can call upstream API endpoints; endpoint filtering is not authorization, so rely on the upstream API's authentication and access controls.
  • Protect static headers and credentials. Use the always spec-auth mode only when you trust the specification host.
  • HTTP transport binds to localhost by default; consider additional authentication if exposing it to other hosts.
  • Disabling TLS certificate verification allows untrusted server certificates and should only be configured intentionally.

Setup

Before you start

Runtime:Node.js

API_BASE_URL required Base URL of the API; get it from the API documentation or provider.
OPENAPI_SPEC_PATH required File path or URL for the OpenAPI specification; obtain it from the API provider.
API_HEADERS optionalsecret Optional API authentication headers as comma-separated key:value pairs; obtain required tokens or keys from the API provider.
CLIENT_KEY_PATH optionalsecret Path to a client private key PEM file for mutual TLS; obtain it from the API administrator.
CLIENT_KEY_PASSPHRASE optionalsecret Passphrase for an encrypted client private key; obtain it from the certificate provider.
Other optional settings (20)
OPENAPI_SPEC_FROM_STDIN optional Set to true to read the OpenAPI specification from standard input.
OPENAPI_SPEC_INLINE optional OpenAPI specification content supplied directly as a string.
SPEC_AUTH optional Controls whether authentication headers are sent when fetching the spec URL; accepts same-origin, always, or never.
CLIENT_CERT_PATH optional Path to a client certificate PEM file for mutual TLS; obtain it from the API administrator.
CA_CERT_PATH optional Path to a custom CA certificate PEM file; obtain it from the internal CA administrator.
REJECT_UNAUTHORIZED optional Whether to reject untrusted server certificates; defaults to true.
SERVER_NAME optional MCP server name; defaults to mcp-openapi-server.
SERVER_VERSION optional MCP server version; defaults to 1.0.0.
TRANSPORT_TYPE optional Transport type, either stdio or http; defaults to stdio.
HTTP_PORT optional HTTP transport listening port; defaults to 3000.
HTTP_HOST optional HTTP transport listening host; defaults to 127.0.0.1.
ENDPOINT_PATH optional HTTP MCP endpoint path; defaults to /mcp.
TOOLS_MODE optional Tool loading mode: all, dynamic, or explicit; defaults to all.
DISABLE_ABBREVIATION optional Set to true to disable tool name abbreviation optimization.
VERBOSE optional Controls operational logging; defaults to true.
PROMPTS_PATH optional Path or URL to a prompts JSON/YAML file.
PROMPTS_INLINE optional Prompts supplied directly as a JSON string.
RESOURCES_PATH optional Path or URL to a resources JSON/YAML file.
RESOURCES_INLINE optional Resources supplied directly as a JSON string.
SERVER_INSTRUCTIONS optional Usage instructions passed to MCP clients.

Add the example mcpServers configuration to Claude Desktop and replace API_BASE_URL, OPENAPI_SPEC_PATH, and API_HEADERS with your API URL, specification location, and authentication headers. You can also start HTTP transport with the npx CLI; provide the API URL and OpenAPI specification first.

claude_desktop_config.json
{
  "mcpServers": {
    "openapi": {
      "command": "npx",
      "args": [
        "-y",
        "@ivotoby/openapi-mcp-server"
      ],
      "env": {
        "API_BASE_URL": "https://api.example.com",
        "OPENAPI_SPEC_PATH": "https://api.example.com/openapi.json",
        "API_HEADERS": "Authorization:Bearer token123,X-API-Key:your-api-key"
      }
    }
  }
}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "openapi": {
      "command": "npx",
      "args": [
        "-y",
        "@ivotoby/openapi-mcp-server"
      ],
      "env": {
        "API_BASE_URL": "https://api.example.com",
        "OPENAPI_SPEC_PATH": "https://api.example.com/openapi.json",
        "API_HEADERS": "Authorization:Bearer token123,X-API-Key:your-api-key"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.openapi]
command = "npx"
args = ["-y", "@ivotoby/openapi-mcp-server"]

[mcp_servers.openapi.env]
API_BASE_URL = "https://api.example.com"
OPENAPI_SPEC_PATH = "https://api.example.com/openapi.json"
API_HEADERS = "Authorization:Bearer token123,X-API-Key:your-api-key"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add openapi -e API_BASE_URL=https://api.example.com -e OPENAPI_SPEC_PATH=https://api.example.com/openapi.json -e 'API_HEADERS=Authorization:Bearer token123,X-API-Key:your-api-key' -- npx -y @ivotoby/openapi-mcp-server

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After connecting, confirm that endpoint tools generated from the OpenAPI specification appear in the client's tool list. You can also list API endpoints and inspect their schemas.

Troubleshooting

  1. Check that API_BASE_URL and a specification source are set, and that only one specification loading method is selected.
  2. If a specification URL returns 401 or 403, check headers, the auth provider, and the SPEC_AUTH mode.
  3. Check that the specification URL, file path, or standard input is accessible and contains valid JSON or YAML.
  4. For HTTP connection issues, check the host, port, ENDPOINT_PATH, and session ID; tool execution results are sent over the SSE GET connection.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the endpoints available in this API.
  • Show me the input schema for the users endpoint.
  • Call the API to retrieve the user list.

Use cases

Discover and call REST API endpoints described by an OpenAPI specification from an MCP client.
Configure optional MCP prompt templates and static resources alongside an API.
Explore large or changing APIs with dynamic tool mode.

Supported clients

Claude Desktop
CursorPartial support

Listed from the project's documentation, not tested by this site.

Overview

OpenAPI MCP Server exposes API endpoints from an OpenAPI specification as MCP tools, with optional prompts and resources. It supports stdio and streamable HTTP transports for MCP clients and can be used as a CLI or a Node.js library.

Similar servers

Source revision d1a006eee9fa Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-openapi-server.svg)](https://followmcp.com/en/servers/mcp-openapi-server)