
Mcp Server Auditor
io.github.4hmetuyarPublished by GitHub account 4hmetuyarv0.1.5Updated Oct 24, 2026
Scans MCP server tool definitions for excessive agency, injection sinks, hardcoded secrets
Overview
Scans other MCP servers' source code and tool definitions for insecure patterns such as shell injection, SSRF, SQL injection and hardcoded secrets.
- What you can do
- Scan a code snippet, a single file or a whole directory for insecure MCP tool patterns
- List the supported detection patterns grouped by category
- Report findings with severity, OWASP mapping and a recommendation for each
- Follow tool input through Python and Go handlers into shell, file, HTTP and SQL sinks
- Produce SARIF output and fail thresholds for CI/CD use
- When to use it
- Useful when you are building or reviewing an MCP server and want a quick static check of how privileged its tools are, how loose their schemas are, and whether tool input reaches dangerous sinks. Also handy in CI to gate on high-severity findings.
- Requirements
- Runs locally over stdio, typically launched with npx from the npm package; Node.js is needed. No accounts, API keys or environment variables are declared. A guardbee.yml config file is optional.
Installation
In SourceWeft
- Open Mcp Server Auditor in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: packages/mcp-server-auditor/README.md at commit fe7dc3a
Tools
0Version history
1- v0.1.5LatestSep 29, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts