mcp-memory-service
PyPI
v11.11.0
Published by doobidoo — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.
Semantic memory layer for AI applications. REST API + MCP transport + knowledge graph + autonomous consolidation. Works with 14+ AI clients. Self-host, zero cloud cost.
The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.
1. Threat score — 100 − 21.7 = 78. What the published surface and source actually contain:
| Points | What was found | Category |
|---|---|---|
| −15.4 | Assembled command execution and dynamic evaluation in the same server MTC-SRC-011 | injection |
| −6.3 | Untrusted input concatenated into a command sink MTC-SRC-009 | injection |
2. Client adoption risk — 78 − 7 = 71. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:
| Points | Adoption-risk factor |
|---|---|
| −6 | capability blast radius (high) — client exposure if the model is manipulated |
| −1 | publisher verification (public source) — no provenance, but the source is public and inspectable |
Capability observations and info notes are shown under Findings but never scored.
Open any row's finding below for the file, line and evidence behind a deduction.
In the server's implementation (`claude-hooks/core/topic-change.js:159`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const resultsArray = eval(resultsMatch[1]); return resultsArray || []; } }
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/core/topic-change.js
In the server's implementation (`claude-hooks/utilities/dynamic-context-updater.js:381`): Evaluating a runtime value as code (rather than a fixed literal) executes whatever reaches it — a direct RCE primitive, and almost never necessary in legitimate code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: return eval(resultsMatch[1]) || []; } } return []; } ca
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/utilities/dynamic-context-updater.js
The implementation both builds shell commands out of runtime values (`claude-hooks/utilities/git-analyzer.js`) and evaluates runtime values as code (`claude-hooks/core/topic-change.js`). Each is a separate arbitrary-execution primitive; a server exposing both gives anything that reaches either one a direct path to running attacker-chosen code. These two sinks are in different files — confirm whether they are actually connected, or are unrelated code paths (e.g. a vendored bundle plus a CLI wrapper).
Fix: Remove the dynamic eval, and pass command arguments as an argv array instead of building a shell string. If both are genuinely required, constrain and validate every value that can reach them.
Location: server implementation
In the server's implementation (`claude-hooks/core/topic-change.js:159`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const resultsArray = eval(resultsMatch[1]); return resultsArray || []; } }
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/core/topic-change.js
In the server's implementation (`claude-hooks/utilities/dynamic-context-updater.js:381`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: return eval(resultsMatch[1]) || []; } } return []; } ca
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/utilities/dynamic-context-updater.js
In the server's implementation (`claude-hooks/core/session-start.js:326`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ecFileSync } = require('child_process'); // Sanitize inputs to prevent injection via project names or queries
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/core/session-start.js
In the server's implementation (`claude-hooks/install_hooks.py:122`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: y: result = subprocess.run(['claude', '--help'], capture_output=True, text
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/install_hooks.py
In the server's implementation (`claude-hooks/utilities/git-analyzer.js:8`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execSync } = require('child_process'); /** * Get recent commit history with detailed information */ async function
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/utilities/git-analyzer.js
In the server's implementation (`claude-hooks/utilities/mcp-client.js:6`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: st { spawn } = require('child_process'); const { EventEmitter } = require('events'); const fs = require('fs'); const pat
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/utilities/mcp-client.js
In the server's implementation (`claude-hooks/utilities/project-detector.js:8`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execSync } = require('child_process'); /** * Detect programming language from file extensions */ async function det
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/utilities/project-detector.js
In the server's implementation (`claude-hooks/utilities/git-analyzer.js:59`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: const filesOutput = execSync(`git show --name-only --pretty="" ${commit.fullHash}`, { cwd: path.
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/utilities/git-analyzer.js
In the server's implementation (`src/mcp_memory_service/dependency_check.py:102`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try: __import__(package.replace("-", "_")) logger.debug(f"{_sanitize_log_value(package)}
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server src/mcp_memory_service/dependency_check.py
In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/maintenance/update_graph_relationship_types.py:141`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: tags = eval(row["tags"]) except: tags = [] mem
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server scripts/maintenance/update_graph_relationship_types.py
In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/run_memory_server.py:36`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: ='utf-8') as f: exec(compile(f.read(), new_script, 'exec'), global_vars) else: print(f"[ERROR] Could not fin
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server scripts/run_memory_server.py
In a packaging/dev/install script (shipped, but not the server runtime) (`site/demo/assets/transformers.min.js:12`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: , args) { ${z} }`,h=new Function(Object.keys(P),z)(...Object.values(P)),z=`methodCaller<(${E.map(j=>j.name)}) => ${g
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server site/demo/assets/transformers.min.js
In a packaging/dev/install script (shipped, but not the server runtime) (`claude-hooks/scripts/ensure-server.js:15`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: st { spawn } = require('child_process'); const HEALTH_TIMEOUT_MS = 500; const POLL_INTERVAL_MS = 500; const POLL_TIMEOU
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/scripts/ensure-server.js
In a packaging/dev/install script (shipped, but not the server runtime) (`claude-hooks/tests/ensure-server.test.js:11`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: st { spawn } = require('child_process'); const SCRIPT = path.join(__dirname, '..', 'scripts', 'ensure-server.js'); fun
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/tests/ensure-server.test.js
In a packaging/dev/install script (shipped, but not the server runtime) (`claude-hooks/tests/integration-test.js:477`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: 'fs', 'path', 'https', 'child_process']; for (const module of requiredModules) { try {
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/tests/integration-test.js
In a packaging/dev/install script (shipped, but not the server runtime) (`claude-hooks/tests/test-code-execution.js:8`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execSync } = require('child_process'); // ANSI Colors const COLORS = { RESET: '\x1b[0m', GREEN: '\x1b[32m',
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/tests/test-code-execution.js
In a packaging/dev/install script (shipped, but not the server runtime) (`claude-hooks/tests/test-permission-request.js:9`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: { execSync } = require('child_process'); // ANSI Colors const COLORS = { RESET: '\x1b[0m', GREEN: '\x1b[32m',
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/tests/test-permission-request.js
In a packaging/dev/install script (shipped, but not the server runtime) (`claude-hooks/tests/integration-test.js:481`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try { require(module); } catch (error) { return { success: false, error: `
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server claude-hooks/tests/integration-test.js
In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/service/service_utils.py:128`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try: __import__(module) except ImportError: missing.append(module)
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server scripts/service/service_utils.py
In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/utils/smithery_wrapper.py:50`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: try: __import__(package) print_info(f"✓ {package} is available") except ImportErr
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server scripts/utils/smithery_wrapper.py
In a packaging/dev/install script (shipped, but not the server runtime) (`site/demo/assets/transformers.min.js:12`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.
Evidence: (e)},TA=async t=>(await import(t)).default,Zf=($z(),Tc(f2)).default,g2=async()=>{if(!zt)throw new Error("Failed to load
Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.
Location: server site/demo/assets/transformers.min.js
Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.
| Version | Score | Findings | Engine | Scanned |
|---|---|---|---|---|
v11.11.0 latest |
C 71/100 | 24 | 1.13.0 | 2026-09-06 |
v11.10.0 |
C 71/100 | 24 | 1.13.0 | 2026-08-28 |
v11.8.5 |
C 71/100 | 24 | 1.13.0 | 2026-08-27 |
v11.8.3 |
C 71/100 | 24 | 1.13.0 | 2026-08-25 |
v11.8.2 |
C 71/100 | 24 | 1.12.1 | 2026-08-24 |
v11.8.0 |
C 70/100 | 24 | 1.12.1 | 2026-08-10 |
v11.7.0 |
C 70/100 | 24 | 1.12.1 | 2026-08-06 |
v11.6.1 |
C 70/100 | 24 | 1.12.1 | 2026-08-04 |
v11.6.0 |
C 70/100 | 24 | 1.12.1 | 2026-08-03 |
v11.5.5 |
C 70/100 | 24 | 1.12.1 | 2026-07-27 |
Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.
The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.
npx mcptrustchecker scan mcp-memory-service --online --registry pypi
Hotel booking MCP server — 300K+ properties, real confirmation numbers, loyalty programs. Builders monetize every booking via Stripe Connect. The first MCP server that completes real hotel reservations inside AI conversations.
Manage AdGuard Home through AI assistants
Read-only Azure DevOps for MCP clients using only your existing browser session — no PAT, no Azure CLI. Browse work items, pull requests, comments, attachments and Artifacts feeds across every project, repo and feed you can access.
MCP server for Adobe Experience Manager Assets integration development
Servidor MCP para el tiempo oficial de España (API pública OpenData de AEMET). Predicción, observación y avisos como herramientas MCP tipadas.
A standalone MCP stdio bridge for Affinity by Canva's local MCP SSE server.