mcp-server-auditor
v0.4.1Scans MCP server tool definitions for excessive agency, injection sinks, hardcoded secrets
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_text
Scan a text string or code snippet for insecure MCP server/tool-definition patterns (excessive-agency tool names, shell/eval/SQL/SSRF sinks fed by raw tool input, overly permissive schemas, hardcoded secrets, wildcard CORS).
| Parameter | Type | Description |
|---|---|---|
content * | string | The code content to scan |
label | string | Optional label shown in findings (e.g. filename) |
scan_file
Scan a single file for insecure MCP server/tool-definition patterns
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or relative path to the file to scan |
scan_directory
Recursively scan an MCP server's codebase for insecure tool-definition patterns. Automatically skips node_modules, .git, dist, and binary files.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or relative path to the directory to scan |
exclude | array | Skip files/dirs whose path contains one of these strings |
include | array | Only scan files whose path contains one of these strings (e.g. [".ts", "src/tools"]) |
maxFiles | integer | Maximum number of files to scan (default: 5000) |
list_patterns
List all MCP server security patterns that the auditor can detect, grouped by category