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

@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
| Feature | Description |
|---|---|
| 10 patterns / 5 categories | excessive-agency, unsafe-input, loose-schema, secrets-exposure, network-exposure |
| Recommendations | Why it’s risky and what to do |
| SARIF 2.1.0 | GitHub Code Scanning-ready output |
| guardbee.yml | fail-on, max-files, exclude rules |
| Local scan | No Guardbee API key |
MCP tools
| Tool | Description |
|---|---|
scan_text | Scan a text/code snippet |
scan_file | Single file |
scan_directory | Directory (skips node_modules, .git, dist) |
list_patterns | List supported patterns |
Install with npm
Global install (handy for Claude Desktop / Cursor):
<code class="language-bash">npm install -g @guardbee/mcp-server-auditor</code>or via npx (recommended with -y in config):
<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:
<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
- “Audit this MCP server source for security issues: /Users/me/my-mcp/src”
- “Does this tool handler risk SSRF or shell execution?”
- “Which patterns do you support? list_patterns”
Frequently asked questions
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.
More in this category
@guardbee/mcp-a2a-auditor
A2A Auditor
MCP server that scans Agent2Agent (A2A) protocol implementation code for anti-patterns found in the reference SDKs and sample agents: unauthenticated push-notification webhook fetches (SSRF), Agent Cards with no authentication requirement, and credentials embedded in publicly-served Agent Card metadata
Learn more@guardbee/mcp-agent-graph-auditor
Agent Graph Auditor
MCP server that builds a reachability graph across multi-agent orchestration configs (LangGraph, CrewAI, AutoGen/ag2) to find transitive excessive agency — an agent with no dangerous tool of its own that can still reach one through delegation or group membership
Learn more@guardbee/mcp-audit-gap-auditor
Audit Gap Auditor
MCP server that audits MCP server source for OWASP MCP08:2025 (Lack of Audit and Telemetry) — missing tool-call logging, raw args/results in logs, disabled audit sinks, and tool errors swallowed without a record
Learn more@guardbee/mcp-context-oversharing-auditor
Context Oversharing Auditor
MCP server that audits agent/MCP source for OWASP MCP10:2025 context oversharing — unrestricted session/memory dumps, cross-user shared context, system-prompt leakage via tools, and unscoped vector recalls
Learn more@guardbee/mcp-elicitation-auditor
Elicitation Auditor
MCP server that scans MCP server code for elicitation anti-patterns in the 2026-07-28 spec: form mode asking for secrets, URL mode pointed straight at a third-party authorize endpoint, and credentials or PII embedded in the elicitation URL
Learn more@guardbee/mcp-config-auditor
MCP Config Auditor
MCP config auditor for Cursor, Claude Desktop, Windsurf and VS Code: unpinned packages, secrets, auto-approve wildcards, typosquats, shadow MCP servers and agent skills
Learn more
See your security posture in minutes
Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.