
Mcp Config Auditor
io.github.4hmetuyar由 GitHub 帳號 4hmetuyar 發布v0.3.1更新於 Oct 24, 2026
Scans Cursor/Claude/Windsurf/VS Code MCP configs for unpinned versions, secrets, typosquats
概覽
稽核本機 MCP 用戶端設定(Cursor、Claude、Windsurf、VS Code),檢查未鎖定版本、外洩憑證、仿冒套件名稱與過寬的自動核准。
- 可以做什麼
- 掃描 MCP 用戶端設定檔與目錄,找出未鎖定版本的啟動器與容器映像、仿冒套件名稱、環境變數或參數中的憑證、萬用字元自動核准,以及明文或未驗證的遠端網址
- 稽核代理 SKILL.md,檢查不受限的 shell 或寫入權限、指令覆寫、隱蔽指令、讀取憑證檔案與相似技能名稱
- 依提供的工具清單跨伺服器比對,標記重複、易混淆或被導向的工具名稱
- 探索本機已知用戶端路徑下安裝的伺服器,並與組織允許清單比對
- 產生已設定伺服器清單,含用戶端、路徑、傳輸方式、套件版本鎖定狀況、環境變數與標頭名稱及發現項目,可輸出 text、JSON 或 SARIF
- 顯示登錄檔伺服器的 GuardBee MCP Index A–F 信任評級,並可將清單上傳至儀表板
- 適用情境
- 適合在信任某台開發機或裝置群的 MCP 設定之前先做檢查:找出未鎖定版本或仿冒的套件、寫進設定的憑證、過寬的自動核准,以及不在組織允許清單內的伺服器。也適合在 CI 或裝置管理中依嚴重度門檻進行把關。
- 執行需求
- 以 stdio 在本機執行,通常透過 npx 使用已發佈的 npm 套件,需要 Node.js。掃描本身不需憑證。選用:僅在 --upload 時需要 GUARDBEE_API_KEY(具 gateway.write 權限的工作區金鑰),discover 需要允許清單檔案。MCP Index 會下載並快取在本機,除非使用 --offline。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Config Auditor,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@guardbee/mcp-config-auditor
🇬🇧 English | 🇹🇷 Türkçe | 🇨🇳 中文 | 🇯🇵 日本語 | 🇰🇷 한국어 | 🇧🇷 Português | 🇪🇸 Español | 🇩🇪 Deutsch
[npm version] [npm downloads] [License: MIT]
An MCP server that audits the MCP client config on a machine: Cursor mcp.json, Claude Desktop claude_desktop_config.json, Windsurf mcp_config.json, and VS Code mcp.json.
mcp-server-auditor reads an MCP server's source. This package reads the config that decides which servers an agent will run. It does not start those servers and it does not send the config anywhere.
Telemetry is off by default. With
GUARDBEE_TELEMETRY=1it sends the server, tool, success, duration and short parameter values such as a file path; longer strings and fields likecontent,tokenorpasswordare replaced with a placeholder. See@guardbee/mcp-telemetry.
Checks
Loopback URLs (localhost, 127.0.0.1, ::1) are not remote findings. Placeholder values (${API_KEY}, changeme) are not secrets. Reported secret matches are redacted. Bash(git diff:*) is a command allowlist and is not an unrestricted shell. Read alone is not flagged.
Quick start
GuardBee MCP Index grades
--grades (on scan <file> and discover) shows the GuardBee MCP Index grade of every configured server: an A–F trust grade for each server in the official MCP Registry, rebuilt weekly from its published package. The grade comes from the shipped code (the GuardBee scanners), known vulnerabilities and malware (OSV), Sigstore build provenance and maintenance signals; the rubric is public and versioned. --min-grade=C also reports every server graded below C (mcp_index_grade_below_minimum, so --fail-on can gate on it).
The whole index is downloaded (and cached for a day in ~/.guardbee/mcp-index.json) and searched on this machine, so no server or package name is sent anywhere. --offline uses the cache only; --index-url= points at another copy. Local commands, remote URLs and servers outside the official registry have no grade and are never findings.
Shadow MCP discover (MCP09)
Walks well-known Cursor / Claude Desktop / Claude Code / Windsurf / VS Code / Gemini CLI / Cline / Zed paths on this machine and compares every installed server to an organization allowlist. Does not start servers. Claude Code's per-project servers (projects["<path>"].mcpServers in ~/.claude.json) are listed under claude-code:<path>; Zed's context_servers and JSON with comments are understood.
Inventory. --format=json adds an inventory: for every server its client, config path, name, transport, command and arguments, npm/PyPI package with version and whether it is pinned, URL, the names of its env variables and headers, auto-approve, and the findings for it. It never holds a secret: env and header values are left out, argument values after --token/--api-key-style flags, KEY=value pairs, provider tokens and passwords in connection strings are [redacted], and URLs lose their credentials and query values. --format=text prints the same list; --format=sarif the findings.
Fleet. FLEET.md has Jamf, Intune, systemd and CI recipes. --allowlist-from-dashboard checks against the organization allowlist admins manage in the dashboard (merged with --allowlist when both are given), and --grades adds MCP Index grades to the uploaded inventory.
Organisation-wide. --upload sends the inventory to the GuardBee dashboard (GUARDBEE_API_KEY, a workspace key with the gateway.write scope), which keeps the latest inventory per machine; run it from your device-management tool or a login script. The machine's host name, OS and OS user name are included — --no-user leaves the user out.
Allowlist JSON:
Or lines: name:filesystem, package:@scope/pkg, host:mcp.example.com, or a bare server name.
A directory scan opens mcp.json, mcp_config.json, claude_desktop_config.json, and SKILL.md. Pass a file path to scan any other name. A file named SKILL.md is audited as an agent skill. Same-name and lookalike skill findings appear on a directory scan, because one file cannot see the others.
guardbee.yml:
Tool inventory shape:
Shadowing needs that inventory because a client config does not list tools. rug-pull-detector can collect a live tools/list; this package compares several of those lists.
Feedback
Questions, ideas, or a false positive? Start a thread in GitHub Discussions or open an issue. If GuardBee is useful to you, a ⭐ on the repository helps others find it.
來源:packages/mcp-config-auditor/README.md,提交 fe7dc3a
工具
0版本歷史
1- v0.3.1最新Sep 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分