
MCP Gateway Scan
io.github.willianpinho由 GitHub 帳號 willianpinho 發布v0.1.1更新於 Oct 24, 2026
Read-only MCP/agent-gateway readiness scanner — scores a repo across 7 security dimensions.
發布方自己的服務:scan.mx Email Diagnostics
概覽
唯讀靜態掃描器,從七個安全與生產就緒维度為程式碼倉庫或 MCP 閘道設定評分。
- 可以做什麼
- 此套件可作為 MCP 伺服器執行,提供 scan_gateway 工具,接收路徑與可選的 ci 參數,回傳各維度的綠/黃/紅摘要及結構化結果。它檢查提示詞中的授權、失敗開放式的錯誤處理、未鎖定版本的供應鏈、缺少可觀測性、無上限的花費、內嵌密鑰以及缺少維運控制手段。同一套件也可作為 CLI 使用,支援 --json 與 --ci 輸出,並提供 connect 模式回傳 CONNECT、REVIEW 或 DO-NOT-CONNECT 結論。
- 適用情境
- 在將第三方 MCP 伺服器接入持有真實憑證的代理之前使用,或用於檢查自己的閘道倉庫是否有常見的生產環境反模式。也可作為 CI 閘門,在出現紅色維度時讓建置失敗。
- 執行需求
- 需要 Node.js 18 或更新版本;透過 npx 或全域安裝在本機執行。不需要帳號、API 金鑰或網路存取,且只讀取你提供的路徑。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP Gateway Scan,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-gateway-scan
[npm version] [Glama server] [License: MIT]
Read-only static scanner for MCP / agent-gateway production-readiness anti-patterns. Point it at a repo, get a 7-dimension red/yellow/green score in seconds.
Built by the team behind the Provenwright MCP Gateway Readiness Audit — a full cited audit with evidence index, scored gap matrix, and 90-day roadmap. Full audit: provenwright.com/audit
It scans your code and config for the failure modes that turn an MCP gateway from a demo into an incident — authorization decided by the model, error handlers that fail open, unpinned supply chains, dark traces, unbounded spend, inline secrets, and missing operational levers — and prints exactly where each one lives.
100% read-only. It only reads files. It never executes your code, never makes network
calls, and never prints a secret value — for inline-secret hits it reports the location
only (<file:line>), with the value redacted.
Install
Requires Node ≥ 18.
Usage
"Should I connect to this server?" — the connect verdict
Before you wire a third-party MCP server into an agent that holds real credentials,
point connect at it and get a single top-line verdict — CONNECT, REVIEW, or
DO-NOT-CONNECT — over the same 7 dimensions, with the single worst finding surfaced first.
The verdict reduces the dimension scores into one decision:
Same scan engine, same --json / --ci flags, same read-only / secret-redaction guarantees —
connect only re-frames the output as a connect/no-connect decision. A green CONNECT is a good
signal, not a guarantee: a static scan cannot vouch for the publisher or runtime behavior.
Run it inside Claude Code / Cursor (MCP server)
The same package can also run as an MCP server so your agent runs the scan conversationally — just ask it to "scan this repo for gateway-readiness".
Claude Code (one command):
Cursor / any MCP client — add to your .mcp.json:
Then ask your agent to run the scan_gateway tool:
- Input:
{ "path": "<repo or dir>", "ci": false }(cioptional — adds the CI gate verdict). - Output: a per-dimension 🟢🟡🔴 summary + the structured result. Read-only; scans only the path you give it; secret values stay redacted (location only, never the value).
Same package, two modes —
mcp-gateway-scan mcpis the server (use it from your agent); the defaultmcp-gateway-scan <path>is the CLI (run it directly in a terminal or CI). Themcpsubcommand does not change the CLI behavior.
Or find it on Glama
mcp-gateway-scan is listed on the Glama MCP directory,
where you can inspect its tool schema, Try it in the browser, or deploy the containerized
server straight from the listing. The build spec and release process are documented in
docs/glama-release.md.
Example output
Wire it into CI
--ci prints a compact, greppable summary and exits non-zero on any red dimension, so a
regression (a new fail-open handler, an unpinned image, a committed secret) fails the build:
The 7 dimensions
Each dimension is scored 🟢 green / 🟡 yellow / 🔴 red with a severity tag, plus the matched
evidence (file:line). The methodology behind the rubric maps to OWASP Top 10 for LLM
Applications, the MCP spec (2025-06-18), and OpenTelemetry GenAI semantic conventions.
Try it on the bundled fixtures
The fixtures/vulnerable tree contains only fake, non-functional placeholder secrets
(sk-EXAMPLENOTREAL…, AKIAEXAMPLE…) so you can see the redacted-secret output safely.
Accuracy
Every finding is meant to be defensible to a skeptical senior engineer. The scanner
distinguishes prompt content (a system-message string / YAML prompt field) from code
that merely documents a pattern — so a doc comment quoting rg 'only use|if the user is admin' is not flagged as authorization-in-prompt, while the same words inside a real
system prompt are. Comment lines and grep-recipe / regex documentation are suppressed
across all dimensions, and "control present" signals are matched in code/config, not prose.
What this is (and isn't)
This is a fast, free heuristic wedge — a static pattern scanner. A green score is a good signal, not a guarantee; a red score is a concrete pointer to fix. It does not run fault-injection, inspect your live IAM/IDP, or read your traces. That depth is what a full MCP Gateway Readiness Audit provides: a cited Gap Matrix and a sequenced 90-day remediation roadmap.
Need the full audit? This scanner is a free heuristic wedge. The Provenwright MCP Gateway Readiness Audit goes deeper: read-only assessment of your live codebase, per-finding evidence (file + line), a cited Gap Matrix, and a sequenced 90-day remediation roadmap.
See a sample report: provenwright.com/sample/
Full audit info: provenwright.com/audit
Book a 15-min call: cal.com/willianpinho
Email: [email protected]
License
MIT © Willian Pinho
來源:README.md,提交 cb22af4
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Scan 整合
scan.mx Email Diagnostics
mx.scan官方發布者
遠端 MCP 伺服器,讓助理對網域執行附評級的郵件送達率與 DNS 檢查,涵蓋 MX、SPF、DKIM、DMARC、黑名單等。
MTG Trade Scan
fr.mtg-trade
掃描魔法風雲會卡冊照片:上傳頁面影像並建立掃描工作,每日有免費頁數,超出後依頁計費。

mcp-guard
由 GitHub 帳號 diegoperezg7 發布
針對 MCP 伺服器的安全掃描器,檢查工具投毒、工具遮蔽、權限過大、金鑰外洩與傳輸層缺陷。

PredictionScan
由 GitHub 帳號 JordanKarst 發布
衍生預測市場資金流、價格變動、交易者研究與新聞。11個唯讀工具。AI 翻譯

x402-sec-scan
由 GitHub 帳號 6mickswagger9 發布
本機 stdio MCP 伺服器,為 AI 代理提供 x402 付費 API,並透過 CDP facilitator 在 Base 上以 USDC 結算。