/ 目錄 / 演練場 / Swagger MCP
● 社群 Vizioz ⚡ 即開即用

Swagger MCP

作者 Vizioz · Vizioz/Swagger-MCP

MCP wrapper for Swagger / OpenAPI definitions — generate MCP tools from any REST spec.

Swagger MCP is a MCP server that mcp wrapper for swagger / openapi definitions — generate mcp tools from any rest spec Use it from Claude Code, Cursor, Codex, or any MCP-compatible / skills-compatible agent.

為什麼要用

核心特性

即時演示

實際使用效果

swagger-mcp-vizioz.replay ▶ 就緒
0/0

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "swagger-mcp-vizioz": {
      "command": "npx",
      "args": [
        "-y",
        "@vizioz/swagger-mcp"
      ],
      "_inferred": true
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "swagger-mcp-vizioz": {
      "command": "npx",
      "args": [
        "-y",
        "@vizioz/swagger-mcp"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "swagger-mcp-vizioz": {
      "command": "npx",
      "args": [
        "-y",
        "@vizioz/swagger-mcp"
      ],
      "_inferred": true
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "swagger-mcp-vizioz": {
      "command": "npx",
      "args": [
        "-y",
        "@vizioz/swagger-mcp"
      ],
      "_inferred": true
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "swagger-mcp-vizioz",
      "command": "npx",
      "args": [
        "-y",
        "@vizioz/swagger-mcp"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "swagger-mcp-vizioz": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@vizioz/swagger-mcp"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add swagger-mcp-vizioz -- npx -y @vizioz/swagger-mcp

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: Swagger MCP

Use Swagger MCP for its core workflow

👤 Engineers and power users ⏱ ~15 min intermediate

何時使用: You want MCP server integration for devtools work without writing glue code.

前置條件
  • Repo installed / cloned — See repo README
步驟
  1. Install
    Set up the Swagger MCP MCP server.✓ 已複製
    → MCP server listed in your agent config
  2. Invoke
    Use Swagger MCP to run a representative task in devtools.✓ 已複製
    → Tool call succeeds; result returned

結果: Real devtools work completed via Swagger MCP with one chat.

注意事項
  • Auth/credential setup is the most common blocker. — Follow the repo README for env vars and tokens.
搭配使用: filesystem

組合

與其他 MCP 搭配,撬動十倍槓桿

swagger-mcp-vizioz + filesystem

Pair with filesystem for devtools workflows that need local file IO.

Use Swagger MCP together with filesystem.✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
primary_call task-specific For the main use case Varies

成本與限制

運行它的成本

API 配額
Provider rate limits apply
每次呼叫 Token 數
Varies
費用
Free / pay provider directly
提示
Cache results; batch calls.

安全

權限、密鑰、影響範圍

憑證儲存: Use environment variables or your OS keychain.
資料出站: Depends on integration

故障排查

常見錯誤與修復

Confirm install and restart your agent.

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills