Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Discover, preview, call, and inspect configured Swagger/OpenAPI APIs through 11 fixed tools.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"openapi-swagger": {
"command": "npx",
"args": [
"-y",
"@nhan7777/openapi-swagger-mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add openapi-swagger -- npx -y @nhan7777/openapi-swagger-mcp --config 'ใส่ค่าของคุณ'ตัวนี้ต้องใส่ค่าในคำสั่งเปิดเอง ให้คัดลอกค่าตั้งแล้วเติมค่า
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"openapi-swagger": {
"command": "npx",
"args": [
"-y",
"@nhan7777/openapi-swagger-mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้ต้องใส่ค่าในคำสั่งเปิดเอง ให้คัดลอกค่าตั้งแล้วเติมค่า
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"openapi-swagger": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@nhan7777/openapi-swagger-mcp",
"--config",
"ใส่ค่าของคุณ"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub nhan7777 ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.5) เข้า registry 4 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, FlyDocs
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Spec-driven development workflow: your agent works issues, sessions and the status lifecycle.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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
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:
preview_operation checks show up clearly with zero network traffic.curl command for any exchange.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.
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
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.
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.
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.
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
list_apis and search_operations locate the right endpoint and current spec revision.get_operation_schema returns parameters, request body shape, auth requirements, and response schemas.preview_operation builds and validates the request locally (sent: false) without touching the network.invoke_operation sends the real HTTP request (keeping intentional bad inputs intact for negative testing) and checks the response against the spec.⚠️ 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.
| 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 |
| 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 |
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.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.