MCP.so
登录

MCP OpenAPI Schema Explorer

@kadykov

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

kadykov

关于 MCP OpenAPI Schema Explorer

MCP server providing token-efficient access to OpenAPI/Swagger specs via MCP Resource Templates for client-side exploration.

MCP OpenAPI Schema Explorer 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "My API Spec (npx)": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-openapi-schema-explorer@latest",
        "https://petstore3.swagger.io/api/v3/openapi.json",
        "--output-format",
        "yaml"
      ],
      "env": {}
    }
  }
}

MCP OpenAPI Schema Explorer 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MCP OpenAPI Schema Explorer?

MCP OpenAPI Schema Explorer is an MCP (Model Context Protocol) server that provides token-efficient access to OpenAPI v3.0 and Swagger v2.0 specifications via MCP Resource Templates. It allows MCP clients like Cline or Claude Desktop to explore large API specifications without loading the entire file into an LLM’s context window.

How to use MCP OpenAPI Schema Explorer?

Add a configuration entry to your MCP client’s mcpServers settings, using either npx (recommended), Docker, a global npm install, or a local build. The server takes a path or URL to a specification and optional flags like --output-format. Multiple specifications can be added as separate server entries.

Key features of MCP OpenAPI Schema Explorer

  • Exposes OpenAPI specs via parameterized MCP resource templates (openapi://...).
  • Loads local files and remote HTTP/HTTPS URLs.
  • Converts Swagger v2.0 to OpenAPI v3.0 automatically.
  • Supports JSON, YAML, and minified JSON output formats.
  • Transforms internal $refs into clickable MCP URIs.
  • Server name in clients reflects the specification’s info.title.

Use cases of MCP OpenAPI Schema Explorer

  • Explore a 500+ endpoint API without blowing the LLM context window.
  • Let an AI agent dynamically discover and read specific path or component details.
  • Compare multiple API specifications by adding separate server entries.
  • Integrate with Claude Desktop, Cline, or Windsurf for interactive API understanding.

常见问题

1

How does this server differ from tool-based OpenAPI servers?

This server uses MCP Resource Templates instead of tools, providing read-only, on-demand access to specific parts of the spec without pre-enumerating thousands of paths. This can be more token-efficient for LLM interactions.

2

What OpenAPI versions are supported?

OpenAPI v3.0 and Swagger v2.0 are supported. Swagger v2.0 specifications are automatically converted to v3.0 upon loading.

3

Can I use multiple API specifications at once?

Yes. Add separate entries in your client’s `mcpServers` configuration, each with a unique name and pointing to a different specification.

4

How do I change the output format?

Use the `--output-format` flag with one of: `json` (default), `yaml`, or `json-minified`.

5

Do I need to install the server first?

No. When using the recommended `npx` or Docker methods, the server is automatically downloaded or pulled when your MCP client starts.

评论

其他 分类下的更多 MCP 服务器