Context Mem MCP Server

context-mem npm v4.0.0

Published by an unidentified publisher — no publish provenance and no public repository, so the publisher could not be verified and the source cannot be independently located.

Memory + context infrastructure for AI agents. LLM Wiki auto-sync, 15 content-aware summarizers, hybrid search (BM25 + vector + optional LLM judge), entity intelligence, decision trails, Obsidian plugin. Fully local, zero cost. MIT.

Trust grade
B
83/100
Last scanned get badge →
Trust
B · 83/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
B Why this grade threat 91 − adoption risk = 83/100

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 − 9.5 = 91. What the published surface and source actually contain:

PointsWhat was foundCategory
−9.5 Untrusted input concatenated into a command sink ×2 MTC-SRC-009 injection

2. Client adoption risk — 91 − 8 = 83. 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:

PointsAdoption-risk factor
−6 capability blast radius (high) — client exposure if the model is manipulated
−2 publisher verification (unlinked) — no provenance/repo link, but the shipped source was fully read

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.

Findings 17

high Shell/command execution in server code (dashboard/server/api.js)MTC-SRC-002

In the server's implementation (`dashboard/server/api.js:135`): 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'); const initProjectDir = currentProject || PROJECT_DIR; 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 dashboard/server/api.js

high Shell/command execution in server code (dashboard/server/index.js)MTC-SRC-002

In the server's implementation (`dashboard/server/index.js:201`): 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: spawnProc } = require('child_process'); const opener = process.platform === 'darwin' ? 'open' : process.platfor

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 dashboard/server/index.js

high Shell/command execution in server code (dist/cli/commands/dashboard.js)MTC-SRC-002

In the server's implementation (`dist/cli/commands/dashboard.js:7`): 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: = dashboard; const node_child_process_1 = require("node:child_process"); const node_path_1 = __importDefault(require("no

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 dist/cli/commands/dashboard.js

high Shell/command execution in server code (dist/cli/commands/plugin.js)MTC-SRC-002

In the server's implementation (`dist/cli/commands/plugin.js:37`): 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: in = plugin; const node_child_process_1 = require("node:child_process"); const fs = __importStar(require("node:fs")); co

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 dist/cli/commands/plugin.js

high Shell/command execution in server code (dist/cli/commands/serve.js)MTC-SRC-002

In the server's implementation (`dist/cli/commands/serve.js:10`): 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: /stdio.js"); const node_child_process_1 = require("node:child_process"); const node_path_1 = __importDefault(require("no

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 dist/cli/commands/serve.js

high Shell/command execution in server code (dist/plugins/runtimes/sandbox.js)MTC-SRC-002

In the server's implementation (`dist/plugins/runtimes/sandbox.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: stAvailable; const node_child_process_1 = require("node:child_process"); // Environment variables that can be used for c

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 dist/plugins/runtimes/sandbox.js

high Shell/command execution in server code (dist/plugins/storage/better-sqlite3.js)MTC-SRC-002

In the server's implementation (`dist/plugins/storage/better-sqlite3.js:81`): 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: } } } exec(sql, params) { const db = this.getDb(); if (params && params.length > 0) {

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 dist/plugins/storage/better-sqlite3.js

high Shell/command execution in server code (hooks/dashboard-autostart.js)MTC-SRC-002

In the server's implementation (`hooks/dashboard-autostart.js:18`): 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 path = require('path'); const fs = require('fs'); const os = require('os'

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 hooks/dashboard-autostart.js

high Shell/command execution in server code (hooks/dashboard-stop.js)MTC-SRC-002

In the server's implementation (`hooks/dashboard-stop.js:55`): 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: ') { require('child_process').execSync(`taskkill /PID ${pid} /F`, { stdio: 'ignore' }); } else {

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 hooks/dashboard-stop.js

high Shell/command execution in server code (hooks/session-start-hook.js)MTC-SRC-002

In the server's implementation (`hooks/session-start-hook.js:398`): 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'); const updateScript = path.join(__dirname, '..', 'bin', 'update-check.js');

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 hooks/session-start-hook.js

medium Hardcoded egress to an external endpoint (dist/core/providers/claude-provider.js)MTC-SRC-003

In the server's implementation (`dist/core/providers/claude-provider.js:19`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. 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 res = await fetch('https://api.anthropic.com/v1/messages', { method: 'POST',

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 dist/core/providers/claude-provider.js

medium Untrusted input concatenated into a command sink (hooks/dashboard-stop.js)MTC-SRC-009

In the server's implementation (`hooks/dashboard-stop.js:55`): 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: equire('child_process').execSync(`taskkill /PID ${pid} /F`, { stdio: 'ignore' }); } else { process.kil

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 hooks/dashboard-stop.js

medium Untrusted input concatenated into a command sink (hooks/session-start-hook.js)MTC-SRC-009

In the server's implementation (`hooks/session-start-hook.js:400`): 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 updateResult = execSync(`node "${updateScript}" 2>/dev/null`, { timeout: 2000, encoding: 'utf8', st

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 hooks/session-start-hook.js

medium Dynamic module load from a non-literal (dashboard/server/index.js)MTC-SRC-005

In the server's implementation (`dashboard/server/index.js:95`): 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: th)) { Database = require(cmPath); } else { console.error('context-mem dashboard: better-sqlite3 not fou

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 dashboard/server/index.js

medium Dynamic module load from a non-literal (hooks/context-mem-precompact.js)MTC-SRC-005

In the server's implementation (`hooks/context-mem-precompact.js:18`): 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: ths) { try { return require(p); } catch {} } return null; } const Database = loadBetterSqlite3(); if (!Database

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 hooks/context-mem-precompact.js

medium Dynamic module load from a non-literal (hooks/proactive-inject.js)MTC-SRC-005

In the server's implementation (`hooks/proactive-inject.js:236`): 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: ths) { try { return require(p); } catch {} } return null; } // --- Query extraction --- function extractQueryF

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 hooks/proactive-inject.js

medium Dynamic module load from a non-literal (hooks/session-start-hook.js)MTC-SRC-005

In the server's implementation (`hooks/session-start-hook.js:45`): 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: ths) { try { return require(p); } catch {} } return null; } // Resolve DB once for all functions const _dbPath

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 hooks/session-start-hook.js

What this scan could not see

Versions 1

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.

VersionScoreFindingsEngineScanned
v4.0.0 latest B 83/100 17 1.13.0 2026-09-07

Embed this score

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.

MCP Trust Score: B · 83/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/context-mem/badge.svg)](https://mcptrustchecker.com/registry/context-mem)
HTML
<a href="https://mcptrustchecker.com/registry/context-mem"><img src="https://mcptrustchecker.com/registry/context-mem/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/context-mem/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

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 context-mem --online

Use the free API → How scoring works

More in Other