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

Memory Poisoning Scanner

MCP server that scans agent code for memory-poisoning risks — untrusted input written into persistent, cross-session memory (MemGPT-style archival/core memory, or a vector store used as a long-term knowledge base) that later gets recalled and trusted as context

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

@guardbee/mcp-memory-poisoning-scanner targets a different surface than Prompt Injection Scanner: not one-shot content, but persistent / cross-session memory writes of untrusted input and readback into system/assistant roles.

What does it do?

Five memory-write and three memory-readback patterns. ConversationBuffer / chat history is deliberately out of scope — only archival/core memory and long-term knowledge-base style stores.

Who is it for?

  • Agent teams using MemGPT-style long-term memory
  • Products that treat a vector store as a durable knowledge base
  • DevSecOps scanning agent source in CI

What it is not

  • Chat history / ConversationBuffer (intentionally excluded)
  • One-shot document prompt injection (use Prompt Injection Scanner)
  • Open vector-store network probes (use Vector Store Scanner)

Features

FeatureDescription
Memory-writearchival/core + vector add/upsert
Memory-readbacksystem/assistant / prompt template
False-positive guardedchat-buffer negative tests
SARIF 2.1.0CI
guardbee.ymlfail-on, exclude

MCP tools

ToolDescription
scan_textScan a snippet
scan_fileScan a single file
scan_directoryScan an agents source tree
list_patternsList supported patterns

Install with npm

Global install (handy for Claude Desktop / Cursor):

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

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

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

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

CLI
<code class="language-bash">npx @guardbee/mcp-memory-poisoning-scanner scan ./agents --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-memory-poisoning-scanner": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-memory-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 memory poisoning in this agents folder?”
  2. “Does archival_memory_insert take raw user input?”
  3. “Which memory-write patterns do you support?”

常见问题

Vs Prompt Injection Scanner?+

That scans one-shot content; Memory Poisoning Scanner scans durable write + readback code patterns.

Will chat history flag?+

No — deliberately out of scope.

API key?+

No — local source scanning.

同类服务器

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

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

Memory Poisoning Scanner MCP server (@guardbee/mcp-memory-poisoning-scanner) · GuardBee