OpenAPI MCP Server
by MCP-Mirror
The OpenAPI MCP Server exposes OpenAPI endpoints as MCP resources, enabling Large Language Models to discover and interact with REST APIs defined by OpenAPI specifications through the MCP protocol. It allows LLMs to leverage existing REST APIs.
Last updated: N/A
What is OpenAPI MCP Server?
This is a Model Context Protocol (MCP) server that exposes OpenAPI endpoints as MCP resources. It allows Large Language Models to discover and interact with REST APIs defined by OpenAPI specifications through the MCP protocol.
How to use OpenAPI MCP Server?
To use this server, configure it in Claude Desktop by adding the provided JSON configuration to your claude_desktop_config.json
file. Replace the placeholder environment variables with your actual API configuration, including the base URL, OpenAPI specification path, and API headers.
Key features of OpenAPI MCP Server
Exposes OpenAPI endpoints as MCP resources
Enables LLMs to interact with REST APIs
Configurable via environment variables or command line arguments
Includes development tools for building, linting, and type checking
Use cases of OpenAPI MCP Server
Allowing LLMs to access and utilize existing REST APIs
Integrating REST APIs into LLM workflows
Enabling LLMs to perform actions through REST APIs
Providing LLMs with real-time data from REST APIs
FAQ from OpenAPI MCP Server
What is API_BASE_URL?
What is API_BASE_URL?
The base URL of your API.
What is OPENAPI_SPEC_PATH?
What is OPENAPI_SPEC_PATH?
URL or path to your OpenAPI specification.
What is API_HEADERS?
What is API_HEADERS?
Comma-separated key:value pairs for API authentication 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
.
How do I contribute to this project?
How do I contribute to this project?
Fork the repository, create a feature branch, make your changes, run tests and linting, and submit a pull request.