原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

OpenAPI Swagger MCP

作者:nhan7777版本 0.1.5i★ –i在你的电脑上运行
注册名称io.github.nhan7777/openapi-swagger-mcp

安装

概览

作者提供的说明(英文原文)

Discover, preview, call, and inspect configured Swagger/OpenAPI APIs through 11 fixed tools.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "openapi-swagger": {
      "command": "npx",
      "args": [
        "-y",
        "@nhan7777/openapi-swagger-mcp",
        "--config",
        "your-value"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add openapi-swagger -- npx -y @nhan7777/openapi-swagger-mcp --config your-value

这个服务器需要在启动命令中填入值,请复制设置后自行填写。

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "openapi-swagger": {
      "command": "npx",
      "args": [
        "-y",
        "@nhan7777/openapi-swagger-mcp",
        "--config",
        "your-value"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器需要在启动命令中填入值,请复制设置后自行填写。

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "openapi-swagger": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nhan7777/openapi-swagger-mcp",
        "--config",
        "your-value"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 nhan7777 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32680 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32680 个服务器的 88% 更新
  • 基础检查结果等于或优于此分类中其他 32680 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

OpenAPI Swagger MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.5)于4天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, EmbeddedCI BenchPod

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

EmbeddedCI BenchPod

作者:embeddedci-com

Drive a BenchPod hardware-in-the-loop bench: power, flash, UART, I2C, CAN, analog and logic.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

🔌 openapi-swagger-mcp

Connect your AI coding agent to any Swagger 2.0 or OpenAPI 3.0 / 3.1 service from your local machine.

Most OpenAPI-to-MCP bridges generate one tool per endpoint. That works on a 10-route pet store and falls apart on a 400-route backend. openapi-swagger-mcp takes a different approach: it gives the agent 11 fixed tools to search specs, read schemas, dry-run requests, handle auth, and make real HTTP calls, no matter how many endpoints your API has.

flowchart LR

subgraph Machine["💻 Your Machine"] Client["🤖 MCP Client\n(Claude, Cursor, VS Code, ...)"] Server["⚙️ openapi-swagger-mcp\n(11 fixed tools)"] Inspector["🔎 Local Inspector UI\n(http://127.0.0.1)"] end

subgraph Targets["🌐 Your Non-Production APIs"] Specs["📄 OpenAPI / Swagger Specs"] Backend["🚀 API Services"] end

Client <-->|"stdio (MCP)"| Server Server -->|"loads & indexes"| Specs Server <-->|"HTTP / HTTPS"| Backend Server -.->|"read-only trace"| Inspector


🔎 See what your agent actually sent

Chat summaries only tell you what the model *thinks* happened. When an agent chains five API calls, refreshes a token, and hits a 422, you want to see the real traffic.

The built-in Local Request Inspector opens a read-only web UI on 127.0.0.1 for your active MCP session:

  • 🕒 Live activity timeline: Every MCP tool call is paired with the HTTP requests, redirects, and login/refresh runs it triggered. Offline preview_operation checks show up clearly with zero network traffic.
  • 🧪 Side-by-side HTTP workbench: Check full URLs, query parameters, headers, cookies, request bodies, and formatted or hex responses. Secrets injected from your config stay masked by name.
  • 📋 Schema checks & cURL export: Spot request or response fields that broke your OpenAPI contract, and copy a ready-to-run curl command for any exchange.

⚡ Try the built-in demo in 30 seconds

Want to click around the Inspector and test the tools before wiring up your own API? Run demo as your MCP server command (requires Node.js 22.19+):

npx -y @nhan7777/openapi-swagger-mcp@0.1.5 demo

demo spins up a local mock backend on 127.0.0.1 (demo-shop and demo-account), turns on the Inspector, and serves MCP over stdio. Drop that command into your MCP client, then run the --inspector-url command printed on stderr in a local terminal to watch the agent work in your browser.


🚀 Quick start

1. Create an API config

Run init to generate a starter config.dev.yaml and a client snippet. It validates your inputs and never touches your editor's config files:

npx -y @nhan7777/openapi-swagger-mcp@0.1.5 init \

--service orders \ --base-url http://localhost:8080/api/v1 \ --spec http://localhost:8080/v3/api-docs \ --out config.dev.yaml \ --client claude-code

💡 Tip: Add --bearer-env ORDERS_TOKEN if your API expects a Bearer token. --client accepts generic, claude-desktop, claude-code, cursor, vscode, windsurf, cline, codex, omp, or kiro.

Prefer writing YAML by hand? Create config.dev.yaml:

inspector:

enabled: true port: 0

services: orders: baseUrl: http://localhost:8080/api/v1 # full URL prefix; overrides spec servers/basePath spec: http://localhost:8080/v3/api-docs # URL or relative file path like ./openapi.json

2. Check the config
npx -y @nhan7777/openapi-swagger-mcp@0.1.5 --config /absolute/path/config.dev.yaml --check

--check validates syntax, environment variables, and local file paths offline ("ok": true, exit 0). To also fetch and validate your OpenAPI specs over the network, use --check-specs.

3. Register the server in your MCP client

Add this stdio entry to your MCP client config using the absolute path to config.dev.yaml (leave --check out of args):

{

"mcpServers": { "api-dev": { "command": "npx", "args": [ "-y", "@nhan7777/openapi-swagger-mcp@0.1.5", "--config", "/absolute/path/config.dev.yaml" ] } } }

Need the exact config file path or CLI command for Claude Desktop, Claude Code, Cursor, VS Code / GitHub Copilot, Windsurf, Cline, Codex CLI, OMP, or Kiro? See the 🛠️ MCP Client Setup Guide.

4. Send a first prompt & open the Inspector

Reconnect the MCP server in your client and start with a safe, read-only prompt:

List the configured APIs, check whether the orders spec loaded, and show session.sessionId and session.inspector.state without calling any API endpoints.

Next, ask the agent to look up an endpoint and dry-run a request:

Find the order details endpoint in orders, show its required parameters, and preview a request for ID demo-123 without sending it.

If inspector.enabled is true, open the browser UI from your own terminal using the sessionId from list_apis:

npx -y @nhan7777/openapi-swagger-mcp@0.1.5 \

--config /absolute/path/config.dev.yaml \ --inspector-url --session

🔒 Keep the Inspector URL private: The #t=... fragment at the end of the URL is your local access token. Run --inspector-url in your own terminal and open it directly in a browser, not inside the AI chat. See the 🔎 Inspector Guide.


🧭 How a typical session flows

sequenceDiagram

autonumber actor You participant Agent as 🤖 AI Agent participant MCP as ⚙️ openapi-swagger-mcp participant API as 🚀 Target API

You->>Agent: "Check order demo-123 in orders" Agent->>MCP: list_apis / search_operations MCP-->>Agent: matching endpoints + spec revision Agent->>MCP: get_operation_schema (GET /orders/{id}) MCP-->>Agent: parameters, auth, response schema Agent->>MCP: preview_operation (offline dry-run) MCP-->>Agent: built URL, headers, validation (sent: false) Agent->>MCP: invoke_operation MCP->>API: GET /api/v1/orders/demo-123 API-->>MCP: 200 OK + JSON body MCP-->>Agent: status, bodyView, schema diagnostics

  1. 🔍 Discover: list_apis and search_operations locate the right endpoint and current spec revision.
  2. 📐 Read the contract: get_operation_schema returns parameters, request body shape, auth requirements, and response schemas.
  3. 🧪 Dry-run: preview_operation builds and validates the request locally (sent: false) without touching the network.
  4. 🚀 Call: invoke_operation sends the real HTTP request (keeping intentional bad inputs intact for negative testing) and checks the response against the spec.
  5. 🔎 Audit: Open the Inspector to review every tool call, HTTP exchange, auth run, and payload.

⚠️ Two rules to keep in mind

- Point at non-production environments (local, test, or staging). invoke_operation sends real POST, PUT, PATCH, and DELETE requests with no undo button. Keep your MCP client's tool confirmation prompts enabled.

- Know what reaches your LLM provider. This server runs locally over stdio with zero telemetry. However, any tool output your assistant reads is sent by your MCP client to your model provider. Load credentials with fromEnv or fromFile instead of pasting tokens into chat.


🧰 The 11 fixed tools

GroupToolWhat it does
🔍 Discoverylist_apisList configured services, spec readiness, revisions, warnings, and Inspector status
search_operationsSearch endpoints by path, operationId, text, parameters, or request/response fields
get_operation_schemaRead the full contract for one operation (parameters, body, responses, auth)
refresh_specsReload OpenAPI specs without restarting the server (keeps the last valid snapshot if reload fails)
🚀 Executionpreview_operationBuild and validate a request offline (sent: false) with zero network traffic
invoke_operationSend a real HTTP request, return status/body/diagnostics, and optionally capture session auth
🔐 AuthauthenticateRun a configured login/refresh recipe or reload static credentials
get_auth_statusCheck credential state, active profile, cookies, and errors without exposing secret values
manage_sessionCreate, inspect, or delete in-memory sessions for OTP, SSO, or imported tokens
📦 Artifactsread_artifactPage through or query (via JSON Pointer) large responses and schemas stored on disk
export_artifactSave raw bytes, UTF-8 text, or decoded base64 fields to an allowed local folder

📚 Documentation

GuideWhat you will find inside
[🔎 Inspector Guide](docs/inspector.md)Turn on the local web UI, open your active session, inspect timelines and HTTP payloads, copy cURL, and fix common issues
[🛠️ MCP Client Setup](docs/clients.md)Config file paths, JSON/TOML snippets, and CLI commands for 9 MCP clients
[⚙️ Configuration Guide](docs/configuration.md)Multi-service setups, protected specs and $refs, TLS, network.allow, operation filters, file roots, and limits
[🔐 Authentication Guide](docs/authentication.md)Bearer/Basic/API keys, fromEnv/fromFile secrets, multi-account profiles, login & 401 refresh recipes, and OTP/SSO sessions
[📖 Usage, Data Boundary & Troubleshooting](docs/reference.md)Request body formats, negative testing, reading/exporting large responses, search ranking & aliases, privacy boundary, and error codes
[🧪 Configuration Cookbook](examples/config.example.yaml)Copy-ready YAML recipes for every supported setup (validated against config.schema.json)
[🧱 Development & Release](docs/development.md)Building from source, running tests and the Inspector harness, verifying packages, and publishing

📦 Alternative installs & package details

  • Global install: npm install -g @nhan7777/openapi-swagger-mcp@0.1.5 (binary: openapi-swagger-mcp). Always include the @nhan7777/ scope; the unscoped openapi-swagger-mcp package on npm is a different project.
  • Official MCP Registry: Published as io.github.nhan7777/openapi-swagger-mcp on the Official MCP Registry. Everything runs locally on your machine; never upload private configs or tokens to third-party web hosts.
  • License: MIT. Third-party notices are in THIRD_PARTY_NOTICES.md.
问 PopNx