Phren Cli MCP Server

@phren/cli npm v0.2.10 Source verified

Published by alaarab — publish provenance cryptographically ties this package to that repository. That is proof of origin, not an official vendor package.

Knowledge layer for AI agents — CLI, MCP server, and data layer

Trust grade
A
90/100
Last scanned get badge →
Trust
A · 90/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
Critical
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
A Why this grade threat 100 − adoption risk = 90/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 − 0 = 100. What the published surface and source actually contain:

The deterministic scan raised no scored threat in the surface it inspected — the threat score stayed at 100. Capability observations and advisory notes are recorded but never lower it.

2. Client adoption risk — 100 − 10 = 90. 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
−10 capability blast radius (critical) — client exposure if the model is manipulated

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 23

critical Completed toxic-flow trifecta across toolsMTC-FLOW-002

This server (without client built-ins) exposes a complete data-exfiltration chain: get_memory_detail → add_custom_hook → remove_custom_hook. Untrusted input is ingested, private data is read, and it can be sent to an external sink via the agent composing the tools (→). Static analysis proves the primitive exists, not that a specific run will occur.

Fix: Remove one leg of the trifecta: isolate untrusted-input tools from secret-reading tools and from egress tools, or require human approval between them.

Location: flow get_memory_detail → add_custom_hook → remove_custom_hook

high Read-and-egress in one tool: "add_custom_hook"MTC-FLOW-003

Tool "add_custom_hook" can both read sensitive data and send data to an external destination. Even without an explicit untrusted-input leg, this is a single-call data-exfiltration path if the model is ever manipulated.

Fix: Separate reading from sending; require explicit user confirmation before egress of file/secret contents.

Location: flow add_custom_hook

high Dynamic evaluation of a non-literal value (dist/generated/memory-ui-graph.browser.js)MTC-SRC-010

In the server's implementation (`dist/generated/memory-ui-graph.browser.js:2`): 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: {let t=U_(i,e),{Body:n}=new Function(t)();return n}function U_(i,e){return` ${G_(i,e)} ${O_(i,e)} return {Body: Body, Ve

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/generated/memory-ui-graph.browser.js

high Dynamic evaluation of a non-literal value (dist/memory-ui-graph.runtime.js)MTC-SRC-010

In the server's implementation (`dist/memory-ui-graph.runtime.js:2`): 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: {let t=U_(i,e),{Body:n}=new Function(t)();return n}function U_(i,e){return` ${G_(i,e)} ${O_(i,e)} return {Body: Body, Ve

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/memory-ui-graph.runtime.js

high Tool "add_custom_hook" exposes command/code executionMTC-CAP-001

Tool "add_custom_hook" appears to run shell commands or evaluate code (parameter "command"). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.

Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.

Location: tool add_custom_hook

high Tool "remove_custom_hook" exposes command/code executionMTC-CAP-001

Tool "remove_custom_hook" appears to run shell commands or evaluate code (parameter "command"). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.

Fix: Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.

Location: tool remove_custom_hook

high Dynamic code execution in server code (dist/generated/memory-ui-graph.browser.js)MTC-SRC-001

In the server's implementation (`dist/generated/memory-ui-graph.browser.js:2`): 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: {let t=U_(i,e),{Body:n}=new Function(t)();return n}function U_(i,e){return` ${G_(i,e)} ${O_(i,e)} return {Body: Body, Ve

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/generated/memory-ui-graph.browser.js

high Dynamic code execution in server code (dist/memory-ui-graph.runtime.js)MTC-SRC-001

In the server's implementation (`dist/memory-ui-graph.runtime.js:2`): 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: {let t=U_(i,e),{Body:n}=new Function(t)();return n}function U_(i,e){return` ${G_(i,e)} ${O_(i,e)} return {Body: Body, Ve

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/memory-ui-graph.runtime.js

high Shell/command execution in server code (dist/agents/providers/herdr.js)MTC-SRC-002

In the server's implementation (`dist/agents/providers/herdr.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: { execFileSync } from "child_process"; import { clampInt, resolveExecCommand } from "../../utils-helpers.js"; import {

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/agents/providers/herdr.js

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

In the server's implementation (`dist/cli/extract.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: { execFileSync } from "child_process"; import { resolveRuntimeProfile } from "../runtime-profile.js"; import { buildCit

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/extract.js

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

In the server's implementation (`dist/cli/govern.js:156`): 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: eSync } = await import("child_process"); const report = { gitGcRan: false, commitsSquashed: 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/cli/govern.js

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

In the server's implementation (`dist/cli/namespaces-store.js:3`): 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: { execFileSync } from "child_process"; import { getPhrenPath } from "../shared.js"; import { isValidProjectName, errorM

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/namespaces-store.js

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

In the server's implementation (`dist/cli/ops.js:3`): 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: { execFileSync } from "child_process"; import { EXEC_TIMEOUT_MS, findProjectNameCaseInsensitive, getPhrenPath, normaliz

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/ops.js

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

In the server's implementation (`dist/cli/session-git.js:5`): 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: { execFileSync } from "child_process"; import * as fs from "fs"; import * as path from "path"; import { EXEC_TIMEOUT_MS

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/session-git.js

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

In the server's implementation (`dist/cli/team.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: { execFileSync } from "child_process"; import { getPhrenPath } from "../shared.js"; import { FINDINGS_FILENAME } from "

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/team.js

high Shell/command execution in server code (dist/content/validate.js)MTC-SRC-002

In the server's implementation (`dist/content/validate.js:4`): 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: { execFileSync } from "child_process"; import { debugLog, EXEC_TIMEOUT_MS, getProjectDirs } from "../shared.js"; import

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/content/validate.js

high Shell/command execution in server code (dist/editor/launch.js)MTC-SRC-002

In the server's implementation (`dist/editor/launch.js:14`): 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: { execFileSync } from "child_process"; import { resolveExecCommand } from "../utils-helpers.js"; import { errorMessage

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/editor/launch.js

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

In the server's implementation (`dist/hooks.js:5`): 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: { execFileSync } from "child_process"; import { isIP } from "net"; import { fileURLToPath } from "url"; import { EXEC_T

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

medium Hardcoded egress to an external endpoint (dist/embedding.js)MTC-SRC-003

In the server's implementation (`dist/embedding.js:178`): 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 response = await fetch("https://api.openai.com/v1/embeddings", { method: "POST", headers: {

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/embedding.js

medium Unconstrained command parameter "command" on "add_custom_hook"MTC-CAP-006

Tool "add_custom_hook" takes a command-shaped parameter "command" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.

Fix: Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.

Location: tool add_custom_hook · inputSchema.properties.command

medium Unconstrained command parameter "command" on "remove_custom_hook"MTC-CAP-006

Tool "remove_custom_hook" takes a command-shaped parameter "command" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.

Fix: Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.

Location: tool remove_custom_hook · inputSchema.properties.command

low Mutating tool "add_custom_hook" declares no destructiveHintMTC-CAP-005

Tool "add_custom_hook" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.

Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.

Location: tool add_custom_hook

low Mutating tool "remove_custom_hook" declares no destructiveHintMTC-CAP-005

Tool "remove_custom_hook" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.

Fix: Declare accurate annotations, and gate destructive tools on user confirmation regardless.

Location: tool remove_custom_hook

Tools 61

Each tool and what it can reach — statically extracted from the published source.

  • add_custom_hooknetwork egressruns code / shellreads sensitive data
  • get_memory_detailingests untrusted input
  • remove_custom_hookruns code / shell
  • add_findingno sensitive capability
  • add_noteno sensitive capability
  • add_projectno sensitive capability
  • add_taskno sensitive capability
  • auto_extract_findingsno sensitive capability
  • complete_taskno sensitive capability
  • cross_project_fragmentsno sensitive capability
Show 51 more tools ↓
  • doctor_fixno sensitive capability
  • edit_findingno sensitive capability
  • edit_noteno sensitive capability
  • export_projectno sensitive capability
  • get_configno sensitive capability
  • get_contradictionsno sensitive capability
  • get_findingsno sensitive capability
  • get_notesno sensitive capability
  • get_project_summaryno sensitive capability
  • get_related_docsno sensitive capability
  • get_review_queueno sensitive capability
  • get_tasksno sensitive capability
  • get_topic_summariesno sensitive capability
  • get_truthsno sensitive capability
  • health_checkno sensitive capability
  • import_projectno sensitive capability
  • link_findingsno sensitive capability
  • list_hook_errorsno sensitive capability
  • list_hooksno sensitive capability
  • list_projectsno sensitive capability
  • list_skillsno sensitive capability
  • manage_projectno sensitive capability
  • manage_review_itemno sensitive capability
  • memory_feedbackno sensitive capability
  • pin_memoryno sensitive capability
  • pin_taskno sensitive capability
  • promote_noteno sensitive capability
  • push_changesno sensitive capability
  • read_graphno sensitive capability
  • read_skillno sensitive capability
  • remove_findingno sensitive capability
  • remove_noteno sensitive capability
  • remove_skillno sensitive capability
  • remove_taskno sensitive capability
  • resolve_contradictionno sensitive capability
  • retract_findingno sensitive capability
  • search_fragmentsno sensitive capability
  • search_knowledgeno sensitive capability
  • session_contextno sensitive capability
  • session_endno sensitive capability
  • session_historyno sensitive capability
  • session_startno sensitive capability
  • set_configno sensitive capability
  • set_topic_summaryno sensitive capability
  • store_listno sensitive capability
  • supersede_findingno sensitive capability
  • tidy_done_tasksno sensitive capability
  • toggle_hooksno sensitive capability
  • toggle_skillno sensitive capability
  • update_taskno sensitive capability
  • write_skillno sensitive capability

Toxic flows 2

Cross-tool combinations that form a data-exfiltration primitive (untrusted input → sensitive source → external sink).

What this scan could not see

Versions 9

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
v0.2.10 latest A 90/100 23 1.13.0 2026-09-07
v0.2.9 B 89/100 23 1.13.0 2026-09-06
v0.1.52 A 90/100 23 1.13.0 2026-09-05
v0.1.51 A 90/100 23 1.13.0 2026-09-04
v0.1.44 A 90/100 23 1.13.0 2026-09-01
Show 4 more versions ↓
v0.1.42 A 90/100 23 1.12.1 2026-08-25
v0.1.41 B 89/100 23 1.12.1 2026-08-02
v0.1.40 A 90/100 23 1.12.1 2026-08-01
v0.1.39 A 90/100 23 1.9.0 2026-07-24

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: A · 90/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/phren-cli/badge.svg)](https://mcptrustchecker.com/registry/phren-cli)
HTML
<a href="https://mcptrustchecker.com/registry/phren-cli"><img src="https://mcptrustchecker.com/registry/phren-cli/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/phren-cli/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 @phren/cli --online

Use the free API → How scoring works

More in Developer Tools