Guardbee.ai
@guardbee/mcp-tool-poisoning-scanner

Tool Poisoning Scanner

MCP tool poisoning scanner: finds hidden instructions in tool descriptions and schemas, and tools whose handler does more than their description promises

v0.6.0MIT · Open sourceNode.js · stdio
Install
$ npx -y @guardbee/mcp-tool-poisoning-scanner
Claude Desktop / Cursor config
{
  "mcpServers": {
    "tool-poisoning-scanner": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-tool-poisoning-scanner"
      ]
    }
  }
}
@guardbee/mcp-tool-poisoning-scanner

@guardbee/mcp-tool-poisoning-scanner catches what Server Auditor cannot: malicious instructions hidden in a tool description (tool poisoning) and confused-deputy tools whose read-only name hides a dangerous handler.

What does it do?

Seven description-injection patterns plus four confused-deputy sink categories (process, code-exec, fs-write, credentials). Network fetches are deliberately excluded from confused-deputy.

Who is it for?

  • Teams reviewing third-party MCP server source before install
  • MCP marketplace / registry security reviews
  • Developers who want this check inside Claude or Cursor

What it is not

  • Handler sink scanning (use Server Auditor)
  • Live tools/list drift (use Rug Pull Detector)
  • Treating every network call as dangerous

Features

FeatureDescription
Description injection7 phrase / authority patterns
Confused deputyread-only naming + dangerous sink
Next-tool-awareSinks are not misattributed across tools
SARIF 2.1.0CI gates
guardbee.ymlfail-on, exclude

MCP tools

ToolDescription
scan_textScan a source snippet
scan_fileScan a single file
scan_directoryScan an MCP server source tree
list_patternsList the pattern catalog

Install with npm

Global install (handy for Claude Desktop / Cursor):

bash
<code class="language-bash">npm install -g @guardbee/mcp-tool-poisoning-scanner</code>

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

bash
<code class="language-bash">npx -y @guardbee/mcp-tool-poisoning-scanner</code>

npm: @guardbee/mcp-tool-poisoning-scanner

CLI
<code class="language-bash">npx @guardbee/mcp-tool-poisoning-scanner scan ./mcp-server --fail-on=high --format=sarif > results.sarif</code>

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-tool-poisoning-scanner": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-tool-poisoning-scanner"
      ]
    }
  }
}</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. “Is there tool poisoning in this MCP server source?”
  2. “Do any get_ tools hide a shell or eval sink?”
  3. “Which description-injection patterns do you support?”

Frequently asked questions

Vs Server Auditor?+

Server Auditor looks at handler sinks; Tool Poisoning Scanner looks at description payloads and confused-deputy mismatches.

API key?+

No — local source scanning.

False positives?+

get_weather + HTTP is deliberately excluded from confused-deputy.

More in this category

See your security posture in minutes

Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.

Tool Poisoning Scanner MCP server (@guardbee/mcp-tool-poisoning-scanner) · GuardBee