OpenAPI Swagger MCP
What it does
Discover, preview, call, and inspect configured Swagger/OpenAPI APIs through 11 fixed tools.
- Connects パソコンで動く
- Account or key No key needed
- Category 開発者ツール
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
コマンドを確認中 · 確認が通るとコピーボタンが出ます
Claude を終了してもう一度開く
試してみる
OpenAPI Swagger MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が OpenAPI Swagger MCP を使っていると言うか、回答に OpenAPI Swagger MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ OpenAPI Swagger MCP につなげません
OpenAPI Swagger MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · OpenAPI Swagger MCP につなげるアプリを使う
- 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ) · ワンクリックのボタンはありません。設定を貼り付けて値を自分で入力します
- 先にパソコンへ Node.js を入れてください(1 回だけ) · ワンクリックのボタンはありません。設定を貼り付けて値を自分で入力します
B · 開発者ツール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
コマンドを確認中 · 確認が通るとコピーボタンが出ます
Claude Code で /mcp と入力
OpenAPI Swagger MCP が一覧にあり、接続済みと表示されれば OK です
試してみる
OpenAPI Swagger MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が OpenAPI Swagger MCP を使っていると言うか、回答に OpenAPI Swagger MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · ワンクリックのボタンはありません。設定を貼り付けて値を自分で入力します
Cursor の MCP 設定ファイルを開く
~/.cursor/mcp.json
この設定を貼り付け、空いている値を入力して保存
コマンドを確認中 · 確認が通るとコピーボタンが出ます
Cursor の AI チャットを Agent モードで開く
試してみる
OpenAPI Swagger MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が OpenAPI Swagger MCP を使っていると言うか、回答に OpenAPI Swagger MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · ワンクリックのボタンはありません。設定を貼り付けて値を自分で入力します
VS Code の MCP 設定ファイルを開く
MCP: Open User Configuration
この設定を貼り付け、空いている値を入力して保存
コマンドを確認中 · 確認が通るとコピーボタンが出ます
VS Code の AI チャットを Agent モードで開く
試してみる
OpenAPI Swagger MCP を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が OpenAPI Swagger MCP を使っていると言うか、回答に OpenAPI Swagger MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
コマンドを確認中 · 確認が通るとコピーボタンが出ます
Claude Desktop (claude_desktop_config.json)
コマンドを確認中 · 確認が通るとコピーボタンが出ます
Cursor (~/.cursor/mcp.json)
コマンドを確認中 · 確認が通るとコピーボタンが出ます
VS Code (mcp.json)
コマンドを確認中 · 確認が通るとコピーボタンが出ます
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
- 週あたりのダウンロードi
- 167/週
- 接続方法
- パソコンで動く
- 最新バージョンi
- 0.1.5
- レジストリ公開日i
- 2026年11月2日
- コードの最終更新i
- 2026年11月3日
- 作者
- nhan7777
- パッケージ
npm: @nhan7777/openapi-swagger-mcp- ウェブサイト
- github.com
- レジストリでの状態
- 有効
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月13日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント nhan7777 で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:10 日前
- ✓ 合格
ライセンスがある
MITを使用
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
開発者ツールのほかのサーバーとの比較i
- このカテゴリのほかの5825件のうち0%よりスターが多い
- このカテゴリのほかの5825件のうち68%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5825件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
OpenAPI Swagger MCPは安全ですか?
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は10 日前、最新バージョン(0.1.5)がレジストリに届いたのは11 日前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリのほかの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者の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_operationchecks 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
curlcommand 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_TOKENif your API expects a Bearer token.--clientacceptsgeneric,claude-desktop,claude-code,cursor,vscode,windsurf,cline,codex,omp, orkiro.
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
ordersspec loaded, and showsession.sessionIdandsession.inspector.statewithout 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 IDdemo-123without 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-urlin 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
- 🔍 Discover:
list_apisandsearch_operationslocate the right endpoint and current specrevision. - 📐 Read the contract:
get_operation_schemareturns parameters, request body shape, auth requirements, and response schemas. - 🧪 Dry-run:
preview_operationbuilds and validates the request locally (sent: false) without touching the network. - 🚀 Call:
invoke_operationsends the real HTTP request (keeping intentional bad inputs intact for negative testing) and checks the response against the spec. - 🔎 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_operationsends realPOST,PUT,PATCH, andDELETErequests with no undo button. Keep your MCP client's tool confirmation prompts enabled.
- Know what reaches your LLM provider. This server runs locally over
stdiowith zero telemetry. However, any tool output your assistant reads is sent by your MCP client to your model provider. Load credentials withfromEnvorfromFileinstead of pasting tokens into chat.
🧰 The 11 fixed tools
| Group | Tool | What it does |
|---|---|---|
| 🔍 Discovery | list_apis | List configured services, spec readiness, revisions, warnings, and Inspector status |
search_operations | Search endpoints by path, operationId, text, parameters, or request/response fields | |
get_operation_schema | Read the full contract for one operation (parameters, body, responses, auth) | |
refresh_specs | Reload OpenAPI specs without restarting the server (keeps the last valid snapshot if reload fails) | |
| 🚀 Execution | preview_operation | Build and validate a request offline (sent: false) with zero network traffic |
invoke_operation | Send a real HTTP request, return status/body/diagnostics, and optionally capture session auth | |
| 🔐 Auth | authenticate | Run a configured login/refresh recipe or reload static credentials |
get_auth_status | Check credential state, active profile, cookies, and errors without exposing secret values | |
manage_session | Create, inspect, or delete in-memory sessions for OTP, SSO, or imported tokens | |
| 📦 Artifacts | read_artifact | Page through or query (via JSON Pointer) large responses and schemas stored on disk |
export_artifact | Save raw bytes, UTF-8 text, or decoded base64 fields to an allowed local folder |
📚 Documentation
| Guide | What 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 unscopedopenapi-swagger-mcppackage on npm is a different project. - Official MCP Registry: Published as
io.github.nhan7777/openapi-swagger-mcpon 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.