
openapi dig mcp
一个为 Claude/Cursor 提供的 Model Context Protocol (MCP) 服务器,支持通过 oapis.org 搜索和探索 OpenAPI 规范。
Repository Info
About This Server
一个为 Claude/Cursor 提供的 Model Context Protocol (MCP) 服务器,支持通过 oapis.org 搜索和探索 OpenAPI 规范。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
OpenAPI MCP Server
A Model Context Protocol (MCP) server for Claude/Cursor that enables searching and exploring OpenAPI specifications through oapis.org.
- Demo: https://x.com/janwilmake/status/1903497808134496583
- HN Thread: https://news.ycombinator.com/item?id=43447278
- OpenAPISearch: https://github.com/janwilmake/openapisearch
- OAPIS: https://github.com/janwilmake/oapis
The MCP works by applying a 2 step process :
- It requests a summary of an openapi spec in simple language
- It determines which endpoints you need, and checks out how exactly they work (again, in simple language)
Features
- Get an overview of any OpenAPI specification
- Retrieve details about specific API operations
- Support for both JSON and YAML formats
- Support for both stdio and HTTP server modes
Installation
Run and follow instructions:
npx openapi-mcp-server@latest init
Usage in Claude
Once installed, you can ask Claude to:
- "Find information about the Stripe API"
- "Explain how to use the GitHub API's repository endpoints"
Claude will use the MCP server to:
- First get an overview of the requested API
- Then retrieve specific operation details as needed
Requirements
- Node.js >= 22.0.0
- Claude Desktop, Cursor, or any other MCP client.
Running the Server
The server can be run in two different modes:
stdio Mode (Default)
This is the default mode and is used when integrating with Claude Desktop or other MCP clients that launch the server as a subprocess:
node dist/index.js
# or
node dist/index.js stdio
HTTP Mode
This mode starts an HTTP server that implements the Streamable HTTP transport protocol for MCP. This is useful for remote clients or when you want to run the server as a standalone service:
node dist/index.js http [port]
The default port is 3000 if not specified.
Running with Docker
You can also build and run the server using Docker.
Build the Image
From the project root directory, run:
docker build -t openapi-dig-mcp .
Run the Container
stdio Mode (Default)
To run the container in the default stdio mode:
docker run --rm -i openapi-dig-mcp
HTTP Mode
To run the container in HTTP mode, exposing the server on port 3000:
docker run --rm -p 3000:3000 openapi-dig-mcp http 3000
You can replace 3000 with a different port if needed, both in the -p mapping and the command argument.
Development
This project uses a modern TypeScript setup with ESLint and Prettier for code quality.
Setup
# Install dependencies
yarn install
# Start development mode with watch
yarn dev
Available Scripts
yarn build- Build the projectyarn dev- Start development mode with watchyarn lint- Run ESLintyarn lint:fix- Run ESLint with auto-fixyarn format- Format code with Prettieryarn check-types- Check TypeScript typesyarn start- Run the compiled application
License
MIT
Quick Start
Clone the repository
git clone https://github.com/p7ayfu77/openapi-dig-mcpInstall dependencies
cd openapi-dig-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.