
Mcp Server Auditor
io.github.4hmetuyar由 GitHub 帳號 4hmetuyar 發布v0.1.5更新於 Oct 24, 2026
Scans MCP server tool definitions for excessive agency, injection sinks, hardcoded secrets
概覽
本機 MCP 伺服器,靜態掃描其他 MCP 伺服器的工具定義,找出不安全模式並提供附建議的發現結果。
- 可以做什麼
- 掃描程式碼片段、單一檔案或整個目錄中的不安全 MCP 工具模式
- 依類別列出支援的偵測模式
- 回報過度權限、不安全輸入、寬鬆 schema、機密外洩與網路暴露等問題
- 為每筆發現附上風險說明與修正建議,並支援 SARIF 輸出供 CI 使用
- 適用情境
- 適合在開發或導入某個 MCP 伺服器時進行安全審查,或在 CI 流程中為工具定義加上安全檢查。
- 執行需求
- 透過 npx 從 npm 套件 @guardbee/mcp-server-auditor 以本機程序執行,需要 Node.js 以及下載套件的網路存取。未宣告帳號、API 金鑰或環境變數。可選用 guardbee.yml 設定檔。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Server Auditor,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@guardbee/mcp-server-auditor
🇬🇧 English | 🇹🇷 Türkçe | 🇨🇳 中文 | 🇯🇵 日本語 | 🇰🇷 한국어 | 🇧🇷 Português | 🇪🇸 Español | 🇩🇪 Deutsch
[npm version] [npm downloads] [License: MIT]
An MCP (Model Context Protocol) server that scans other MCP servers' tool definitions for insecure patterns.
While ai-code-scanner looks at general LLM/AI integration code, this package specifically looks at an MCP server itself: how privileged a tool defined via server.tool(...) is, how loose its parameters are, which dangerous sinks (shell/filesystem/HTTP/SQL) its handler passes tool input into directly. The MCP ecosystem is growing fast, but there's no common tool yet for auditing these servers' security.
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.
Features
- 10 patterns, 5 categories — excessive-agency, unsafe-input, loose-schema, secrets-exposure, network-exposure
- Python and Go servers: tool input followed from the tool definition (FastMCP parameters, low-level
arguments, go-sdk typed args, mcp-gorequest.RequireString(...)) through plain assignments into shell, file write/delete, HTTP and SQL calls - Every finding includes why it's risky and what to do about it (
recommendation) — not just "found it" - SARIF 2.1.0 output — CI/CD integration (GitHub Code Scanning, etc.)
- Config file support via
guardbee.yml - A positive and a negative (false-positive) test for every pattern, with vulnerable and clean Python and Go fixtures
Quick Start
Claude Desktop / MCP Client
CLI (CI/CD)
MCP Tools
Detected Patterns
Python and Go
Python (.py) and Go (.go) files also get a tool-input flow check. The tool's input names come from its definition, are followed through plain assignments in the handler (command = f"du {directory}"), and a finding is reported when one reaches a sink call:
File findings are skipped when the handler checks the path against a base directory (is_relative_to, commonpath, .parents, filepath.IsLocal, filepath.Rel, strings.HasPrefix), and HTTP findings when it checks a host allowlist. Tools named run_shell, execute_sql etc. are reported for both languages. Rust, Java, Kotlin, C# and other languages get the language-neutral patterns only.
These are heuristic findings — a static text-pattern scan, not a full AST/type analysis. Designed for a low false-positive rate, but every finding should still be reviewed manually.
Configuration (guardbee.yml)
Development
License
MIT — GuardBee
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-server-auditor/README.md,提交 fe7dc3a
工具
0版本歷史
1- v0.1.5最新Sep 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分