OpenAPI MCP 服务器
Claude/Cursor 的模型上下文协议 (MCP) 服务器,支持通过 oapis.org 搜索和探索 OpenAPI 规范。
- 演示: https ://x.com/janwilmake/status/1903497808134496583
- HN 主题: https://news.ycombinator.com/item? id=43447278
- OpenAPI搜索: https://github.com/janwilmake/openapisearch
- 开放源代码编程接口 (OAPI): https://github.com/janwilmake/oapis
MCP 通过以下 3 个步骤进行工作:
- 它找出您需要的 openapi 标识符
- 它要求用简单的语言对此进行总结
- 它确定您需要哪些端点,并检查它们的具体工作方式(再次用简单的语言)
重要提示:OpenAPI MCP 已找到新所有者,并已从 v1.2 迁移至 v2,其工作方式与之前的版本不同。您仍然可以访问 v2.0.0 之前的任何版本,其 README 在此处
OpenAPI MCP v2 仍在开发中,专注于探索和提供 API 上下文。由于 MCP 的身份验证问题尚未解决,它不支持直接将端点作为工具执行。不过,它非常适合代码生成!
预计会有 bug。欢迎贡献者、 DM
特征
- 获取任何 OpenAPI 规范的概述
- 检索有关特定 API 操作的详细信息
- 支持 JSON 和 YAML 格式
- 使用 Claude Desktop 和 Cursor 进行测试
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 openapi-mcp-server:
通过 npx 安装
运行并按照说明进行操作:
Claude 中的用法
安装完成后,您可以要求 Claude:
- “查找有关 Stripe API 的信息”
- “解释如何使用 GitHub API 的存储库端点”
Claude 将使用 MCP 服务器来执行以下操作:
- 首先了解所请求 API 的概况
- 然后根据需要检索特定的操作详细信息
要求
- Node.js >= 16.17.0
- Claude Desktop、Cursor 或任何其他 MCP 客户端。
执照
麻省理工学院
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
此工具会创建一个模型上下文协议 (MCP) 服务器,作为任何符合 OpenAPI v3.1 规范的 API 的代理。这允许您使用 Claude Desktop 轻松地与本地和远程服务器 API 进行交互。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.Last updated -235TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for Claude Desktop that connects to 302AI's API services, allowing users to integrate and leverage 302AI capabilities through a structured communication interface.Last updated -9418JavaScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that allows Claude AI to interact with custom tools, enabling extension of Claude's capabilities through the MCP framework.Last updated -TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol server that allows integration with Claude Desktop by creating and managing custom tools that can be executed through the MCP framework.Last updated -677TypeScript