MCP Customs

io.github.mcpcustoms由 GitHub 帳號 mcpcustoms 發布v0.1.1更新於 Oct 24, 2026

Inspect an MCP server for common security risks before you install it. Offline, zero telemetry.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

在安裝或連接之前,掃描本機 MCP 伺服器原始碼中的常見安全風險。

可以做什麼
mcp-customs 會對 MCP 伺服器目錄進行本機離線檢查,並輸出附評分的報告。它採用啟發式、以正規表示式為基礎的規則,涵蓋 shell 指令執行、路徑遍歷、動態程式碼執行、硬編碼憑證、工具描述中的隱藏指令語言、對外網路呼叫同時讀取環境變數,以及未宣告權限等情況。它可輸出 SARIF 供 CI 使用,並產生 README 徽章。
適用情境
當你準備把不熟悉的 MCP 伺服器接入代理時,可將它當作安裝前的稽核步驟;也可在 CI 中執行,讓高風險發現導致建置失敗。
執行需求
透過 npx(Node.js/npm)以本機程序執行。不需要帳號、API 金鑰或網路存取;完全離線,沒有遙測。
安裝前請注意
檢查屬於啟發式、以正規表示式為基礎,可能出現誤報,也可能漏掉問題;CLEARED 標記只表示沒有發現明顯問題,並不代表已驗證安全。掃描本身為唯讀,不會上傳任何內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MCP Customs,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-customs

Inspect an MCP server for common security risks before you install it. Runs fully offline. No telemetry, no cloud upload, no account.

npx mcp-customs scan ./some-mcp-server
──────────────────────────────────────────────────────MCP-CUSTOMS INSPECTION REPORT──────────────────────────────────────────────────────target        ./some-mcp-serverfiles scanned 14score         62 / 100stamp         [ REVIEW ]──────────────────────────────────────────────────────[HIGH] MCP002 — Unsanitized file path (possible path traversal)  server.js:41  return fs.readFileSync(userPath, 'utf8');  fix: Resolve the path against an allowed base directory ...

Why

Developers install MCP servers the way they used to install npm packages — quickly, trusting the name, and moving on. An MCP server can read your files, call your APIs, and execute commands on your behalf. Almost nobody checks what it can actually do before connecting it to their agent.

mcp-customs is the "audit before install" step, run locally, in seconds.

What it checks (v0.1)

RuleSeverityWhat it looks for
MCP001criticalShell command execution with unsanitized interpolation
MCP002highFile reads/writes without a path-traversal guard
MCP003criticaleval() / dynamic code execution
MCP004highHardcoded API keys / credentials
MCP005criticalTool descriptions containing hidden-instruction language (prompt injection via the tool's own metadata)
MCP006mediumOutbound network calls combined with environment-variable reads (possible exfiltration)
MCP007lowNo permissions/scopes declared in the manifest

These are heuristic, regex-based checks — fast and fully auditable in one sitting, not a dataflow analysis. They will produce false positives and will miss things a deeper analysis would catch. Treat a CLEARED stamp as "nothing obvious," not "verified safe."

CI usage

yaml
# .github/workflows/mcp-customs.yml- run: npx mcp-customs scan . --sarif results.sarif --fail-on high- uses: github/codeql-action/upload-sarif@v3  with:    sarif_file: results.sarif

Get a badge for your README

npx mcp-customs scan . --badge --name your-server-name

Roadmap

  • Publish scan results to a public registry (mcp-customs.dev) with searchable trust scores
  • Dynamic/sandboxed analysis (catch what static checks miss)
  • Python-specific AST checks (current Python rules are regex-only)
  • Community flagging / verification on registry entries

License

Apache-2.0. No open-core trap — this CLI stays free either way. If a hosted registry/dashboard ships later, that's a separate paid product; this tool's local scanning will never require it.

來源:README.md,提交 dbfb06b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分