OpenAPI MCP Server
by ivo-toby
The OpenAPI MCP Server exposes OpenAPI endpoints as MCP resources, enabling Large Language Models to interact with REST APIs defined by OpenAPI specifications through the MCP protocol. It allows LLMs to discover and utilize REST APIs.
Last updated: N/A
What is OpenAPI MCP Server?
This is a Model Context Protocol (MCP) server that translates OpenAPI specifications into MCP resources. This allows Large Language Models (LLMs) to discover and interact with REST APIs defined by OpenAPI specifications.
How to use OpenAPI MCP Server?
To use this server, configure it within Claude Desktop by adding the provided JSON configuration to your claude_desktop_config.json
file. Replace the placeholder environment variables (API_BASE_URL, OPENAPI_SPEC_PATH, API_HEADERS) with your actual API details.
Key features of OpenAPI MCP Server
Exposes OpenAPI endpoints as MCP resources
Enables LLMs to interact with REST APIs
Configurable via environment variables and command-line arguments
Includes development tools for building, linting, and type checking
Use cases of OpenAPI MCP Server
Allowing LLMs to access and utilize external APIs
Integrating REST APIs into LLM workflows
Enabling LLMs to perform actions through API calls
Providing LLMs with up-to-date information from external sources
FAQ from OpenAPI MCP Server
What is the purpose of this server?
What is the purpose of this server?
It allows Large Language Models to interact with REST APIs defined by OpenAPI specifications through the MCP protocol.
How do I configure the server?
How do I configure the server?
You can configure it using environment variables or command-line arguments. See the README for details.
What environment variables are required?
What environment variables are required?
You need to set API_BASE_URL, OPENAPI_SPEC_PATH, and API_HEADERS.
How do I run the server in development mode?
How do I run the server in development mode?
Use the command npm run inspect-watch
.
Where can I find debug logs?
Where can I find debug logs?
Debug logs are output to stderr. In development mode, they appear in the terminal running inspect-watch
.