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

@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
| Feature | Description |
|---|---|
| Memory-write | archival/core + vector add/upsert |
| Memory-readback | system/assistant / prompt template |
| False-positive guarded | chat-buffer negative tests |
| SARIF 2.1.0 | CI |
| guardbee.yml | fail-on, exclude |
MCP tools
| Tool | Description |
|---|---|
scan_text | Scan a snippet |
scan_file | Scan a single file |
scan_directory | Scan an agents source tree |
list_patterns | List supported patterns |
Install with npm
Global install (handy for Claude Desktop / Cursor):
<code class="language-bash">npm install -g @guardbee/mcp-memory-poisoning-scanner</code>or via npx (recommended with -y in config):
<code class="language-bash">npx -y @guardbee/mcp-memory-poisoning-scanner</code>npm: @guardbee/mcp-memory-poisoning-scanner
<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:
<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
- “Is there memory poisoning in this agents folder?”
- “Does archival_memory_insert take raw user input?”
- “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.
同类服务器
@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
了解更多@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
了解更多@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
了解更多@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
了解更多@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
了解更多@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
了解更多