返回 MCP 目录
public公开dns本地运行

OpenAPI上下文搜索器

该模型上下文协议服务器,依托oapis.org支持 OpenAPI 规范搜索与探索,借助 Claude/Cursor,辅助用户深入理解 API,简化复杂的 API 认知过程,为开发者及用户提供便捷的 API 知识获取渠道。

article

README

OpenAPI MCP Server

smithery badge janwilmake/openapi-mcp-server context

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 3 step process :

  1. It figures out the openapi identifier you need
  2. It requests a summary of that in simple language
  3. It determines which endpoints you need, and checks out how exactly they work (again, in simple language)

[!IMPORTANT] OpenAPI MCP has found a new owner and has been migrated from v1.2 to v2, which works different to the previous version. You can still access any version prior to v2.0.0 and their README is here

OpenAPI MCP v2 is a Work In Progress and focuses on exploration and providing context about APIs. It does not allow executing the endpoints as tools directly, as authentication isn't a solved problem with MCP yet. However, it's great for codegen!

Expect bugs. Open To Contributers, DM

Features

  • Get an overview of any OpenAPI specification
  • Retrieve details about specific API operations
  • Support for both JSON and YAML formats
  • Tested with Claude Desktop and Cursor

| Summary | Prompt it | |---------|-----------| | Basic understanding of the OpenAPI MCP Server | | | Core implementation details of the MCP server | | | How to extend or contribute to the project | |

Installation

Installing via Smithery

To install openapi-mcp-server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @janwilmake/openapi-mcp-server --client claude

Installing via npx

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:

  1. First get an overview of the requested API
  2. Then retrieve specific operation details as needed

Requirements

  • Node.js >= 16.17.0
  • Claude Desktop, Cursor, or any other MCP client.

License

MIT

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端