Guardbee.ai
@guardbee/mcp-server-auditor

MCP Server Auditor

MCP server that audits other MCP servers' tool definitions for insecure patterns — excessive-agency tool names, shell/eval/SQL/SSRF sinks fed by raw tool input, overly permissive schemas, hardcoded secrets, and wildcard CORS

v0.4.1MIT · 开源Node.js · stdio
安装
$ npx -y @guardbee/mcp-server-auditor
Claude Desktop / Cursor 配置
{
  "mcpServers": {
    "server-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-server-auditor"
      ]
    }
  }
}
@guardbee/mcp-server-auditor

@guardbee/mcp-server-auditor scans other MCP servers’ server.tool(...) definitions for insecure patterns. Where AI Code Scanner looks at general LLM integration code, this package focuses on MCP tool privilege, schema looseness, and raw tool input flowing into dangerous sinks (shell / FS / HTTP / SQL).

What does it do?

It flags risks like execSync(input.command), eval of tool input, names like run_shell, path-traversal FS writes, allowlist-free fetch(input.url), SQL template injection, z.any() schemas, hardcoded secrets in schema defaults, full process.env exposure, and wildcard CORS — each finding includes a recommendation.

Who is it for?

  • Teams shipping their own MCP servers
  • Security/platform teams onboarding third-party MCPs
  • Teams adding an MCP security gate with SARIF in CI
  • Developers reviewing MCP code inside Claude or Cursor

What it is not

  • General app / LLM-integration SAST (use AI Code Scanner)
  • RAG/document prompt-injection scanning (use Prompt Injection Scanner)
  • Runtime exploit verification

Features

FeatureDescription
10 patterns / 5 categoriesexcessive-agency, unsafe-input, loose-schema, secrets-exposure, network-exposure
RecommendationsWhy it’s risky and what to do
SARIF 2.1.0GitHub Code Scanning-ready output
guardbee.ymlfail-on, max-files, exclude rules
Local scanNo Guardbee API key

MCP tools

ToolDescription
scan_textScan a text/code snippet
scan_fileSingle file
scan_directoryDirectory (skips node_modules, .git, dist)
list_patternsList supported patterns

Install with npm

Global install (handy for Claude Desktop / Cursor):

bash
<code class="language-bash">npm install -g @guardbee/mcp-server-auditor</code>

or via npx (recommended with -y in config):

bash
<code class="language-bash">npx -y @guardbee/mcp-server-auditor</code>

npm: @guardbee/mcp-server-auditor

CLI: npx @guardbee/mcp-server-auditor scan ./src --fail-on=high --format=sarif > results.sarif. Opt out of telemetry with GUARDBEE_TELEMETRY=0.

Claude Desktop configuration

Config file paths:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Merge this block, then restart Claude Desktop:

claude_desktop_config.json
<code class="language-json">{
  "mcpServers": {
    "guardbee-mcp-server-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-server-auditor"
      ]
    }
  }
}</code>

Cursor and other MCP clients

In Cursor, add the same command / args / env under Settings → MCP. stdio MCP servers use the same contract as Claude Desktop.

Example prompts in Claude

  1. “Audit this MCP server source for security issues: /Users/me/my-mcp/src”
  2. “Does this tool handler risk SSRF or shell execution?”
  3. “Which patterns do you support? list_patterns”

常见问题

Vs AI Code Scanner?+

AI Code Scanner finds general LLM integration anti-patterns; Server Auditor focuses on MCP tool definitions.

False positives?+

Heuristic — designed for low FP, still review findings manually.

API key?+

No — fully local/filesystem.

同类服务器

几分钟内了解您的安全状况

添加您的域名,运行只读扫描,获取按优先级排序的修复清单。无需安装。

MCP Server Auditor MCP server (@guardbee/mcp-server-auditor) · GuardBee