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.
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
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js
API_BASE_URL
Base URL of the API; get it from the API documentation or provider.
OPENAPI_SPEC_PATH
File path or URL for the OpenAPI specification; obtain it from the API provider.
API_HEADERS
Optional API authentication headers as comma-separated key:value pairs; obtain required tokens or keys from the API provider.
CLIENT_KEY_PATH
Path to a client private key PEM file for mutual TLS; obtain it from the API administrator.
CLIENT_KEY_PASSPHRASE
Passphrase for an encrypted client private key; obtain it from the certificate provider.
OPENAPI_SPEC_FROM_STDIN
Set to true to read the OpenAPI specification from standard input.
OPENAPI_SPEC_INLINE
OpenAPI specification content supplied directly as a string.
SPEC_AUTH
Controls whether authentication headers are sent when fetching the spec URL; accepts same-origin, always, or never.
CLIENT_CERT_PATH
Path to a client certificate PEM file for mutual TLS; obtain it from the API administrator.
CA_CERT_PATH
Path to a custom CA certificate PEM file; obtain it from the internal CA administrator.
REJECT_UNAUTHORIZED
Whether to reject untrusted server certificates; defaults to true.
SERVER_NAME
MCP server name; defaults to mcp-openapi-server.
SERVER_VERSION
MCP server version; defaults to 1.0.0.
TRANSPORT_TYPE
Transport type, either stdio or http; defaults to stdio.
HTTP_PORT
HTTP transport listening port; defaults to 3000.
HTTP_HOST
HTTP transport listening host; defaults to 127.0.0.1.
ENDPOINT_PATH
HTTP MCP endpoint path; defaults to /mcp.
TOOLS_MODE
Tool loading mode: all, dynamic, or explicit; defaults to all.
DISABLE_ABBREVIATION
Set to true to disable tool name abbreviation optimization.
VERBOSE
Controls operational logging; defaults to true.
PROMPTS_PATH
Path or URL to a prompts JSON/YAML file.
PROMPTS_INLINE
Prompts supplied directly as a JSON string.
RESOURCES_PATH
Path or URL to a resources JSON/YAML file.
RESOURCES_INLINE
Resources supplied directly as a JSON string.
SERVER_INSTRUCTIONS
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.
{
"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.
{
"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).
[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).
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.
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.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
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.
Connect code, docs, and infrastructure in a local knowledge graph.
Docker's official MCP gateway CLI plugin for managing and running MCP servers.
Fast, low-cost structured judgments for agents.
Local call graphs and structural analysis for Go repositories.
Source revision d1a006eee9fa Data synced 2026-12-05 Read the FMRS scoring method Markdown