Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

Dense-Mem MCP server

by markhuangai/dense-memApache-2.0 licenceAudited 8 Oct 2026 · source b48ff0e6c6c3

npm dense-mem-control-portal 0.1.0streamable-http★ 39
!CAUTIONGrade F · 54/100 · 8 Oct 2026 · b48ff0e
39GitHub stars

Is it safe? With care — CAUTION, grade F (54/100). It exposes 6 tools: 6 read, 0 write and 0 destructive. The audit recorded 42 findings (0 critical, 0 high, 14 medium, 27 low). Maintainer's description: Self-hosted AI agent memory server with MCP, evidence provenance, typed claims, conflict detection, embeddings, recall, PostgreSQL, and pgvector

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Dense-Mem MCP server (markhuangai/dense-mem)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/markhuangai/dense-mem

Trust audit

Audit 0.4.1 · full source read 8 Oct 2026

Trust score54/100!CAUTION F
0 critical0 high14 medium27 low1 info

42 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemNone observedNothing seen in the source
  • NetworkDeclared4 observations
  • ShellNone observedNothing seen in the source
  • DependenciesNot pinnedSome ranges float
  • SecretsFoundSee the findings

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 3 findings
L1 Static sourceSecrets, path traversal, supply chainWARN 22 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner markhuangaiOrganizationAccount type recorded when we read the repository.
  • PackagePublished on npmdense-mem-control-portal at version 0.1.0
  • LicenceApache-2.0From the repository, as read at the audited commit.
  • Last pushTodayActivity of the repository when we read it.
  • Source commit readb48ff0e6c6c3The audit covers exactly this commit, read on 8 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory6 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (42)

Sorted by severity · the 25 most severe of 42 are listed

MEDIUMNetwork egressnet.beacon_words · internal/assessor/assessor.go:52
F-04 Network egressCWE-200 · CWE-319Layer L1
Never create IDs, predicates, statuses, lifecycle decisions, owners, or conflict winners. Return exactly one evidence_security_results entry for every submitted evidence_id with decision pass or rejec
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · Dockerfile:97
F-04 Network egressCWE-200 · CWE-319Layer L1
CMD sh -c 'addr="${HTTP_ADDR:-:8080}"; port="${addr##*:}"; wget --quiet -O /dev/null "http://127.0.0.1:${port}/health"' || exit 1
Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · Dockerfile.demo:75
F-04 Network egressCWE-200 · CWE-319Layer L1
CMD wget --quiet -O /dev/null http://127.0.0.1:8080/health || exit 1
Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · cmd/internal/serverapp/composition_coverage_test.go:302
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · cmd/internal/serverapp/composition_coverage_test.go:303
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · cmd/internal/serverapp/composition_coverage_test.go:331
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · internal/config/config_test.go:356
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · internal/knowledge/postgres/owner_write_integration_test.go:205
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · internal/ontology/postgres/maintenance_service_integration_test.go:57
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · internal/recall/postgres/recall_evidence_history_integration_test.go:21
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · internal/storage/postgres/migrator_concurrency_integration_test.go:117
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · tests/integration/discoverability_harness.go:51
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · tests/uat/e2e_host_controller.test.mjs:884
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.private_key · internal/remember/service/security_scan_test.go:33
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .coderabbit.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.coderabbit.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .textlintignore
F-13 Inventory / provenanceCWE-1104Layer L0
.textlintignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .textlintrc.json
F-13 Inventory / provenanceCWE-1104Layer L0
.textlintrc.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWCode injectioncode.eval_exec · tests/uat/pr_validation_policy.test.mjs:25
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
const permits = new Function("vars", "github", "needs", "always", `return (${condition});`);
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · tests/uat/pr_validation_policy.test.mjs:41
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
const evaluate = new Function("needs", "github", `return (${expression});`);
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · tests/uat/pr_validation_policy.test.mjs:208
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
return new Function(...Object.keys(context), `return (${javascript});`)(...Object.values(context));
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · tests/uat/pr_validation_policy.test.mjs:330
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
const shouldRun = new Function("needs", `return (${condition});`);
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWCode injectioncode.eval_exec · tests/uat/pr_validation_policy.test.mjs:360
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
const shouldRun = new Function("needs", "github", `return (${condition});`);
Why
evaluates text as code
Fix
remove; use a parser or a dispatch table
LOWInsecure cryptocrypto.weak_hash · tests/eval/scripts/prepare_full_public_rag_eval.py:595
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
digest = hashlib.sha1(value.encode("utf-8")).hexdigest()[:16]
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · tests/eval/scripts/prepare_public_semantic_eval.py:886
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
digest = hashlib.sha1(value.encode("utf-8")).hexdigest()[:16]
Why
No further detail recorded for this rule.
Fix
—
LOWInformation disclosuredisclose.log_secret · internal/observability/logger_test.go:526
F-12 Information disclosureCWE-209 · CWE-532Layer L1
logger.Info(`request failed password=hunter2 metadata={"token":"json-secret"}`, slog.Group("request",
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

6 declared in source · 0 destructive

6 read0 write0 destructive
ToolRiskWhat it does
DefaultreadNo description in the source
ResearchreadNo description in the source
StagingreadNo description in the source
TeamreadNo description in the source
rememberreadRemember
xreadNo description in the source

Install

Package version 0.1.0 · audited commit b48ff0e

Read the findings first. The most severe is Network egress (medium) at internal/assessor/assessor.go.

One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 0.1.0. The audit covers commit b48ff0e only.

claude mcp add dense-mem-control-portal --env CLOUDFLARE_API_TOKEN=${CLOUDFLARE_API_TOKEN} --env DENSE_MEM_BASELINE_SCRAPE_TOKEN=${DENSE_MEM_BASELINE_SCRAPE_TOKEN} --env DENSE_MEM_CANDIDATE_SCRAPE_TOKEN=${DENSE_MEM_CANDIDATE_SCRAPE_TOKEN} --env DENSE_MEM_CONTROL_TOKEN=${DENSE_MEM_CONTROL_TOKEN} -- npx -y [email protected]

The command pins the package version recorded in the source (0.1.0); the audit covers commit b48ff0e6c6c3. Transport: streamable-http. Reads these environment variables: CLOUDFLARE_API_TOKEN, DENSE_MEM_BASELINE_SCRAPE_TOKEN, DENSE_MEM_CANDIDATE_SCRAPE_TOKEN, DENSE_MEM_CONTROL_TOKEN, DENSE_MEM_LOAD_SCRAPE_TOKEN, EMBEDDING_PROXY_UPSTREAM_KEY, GITHUB_TOKEN. Give it the narrowest token it needs.

Audit history

  1. !CAUTION F 54 / 100

    First audit · b48ff0e6c6c3

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION FMODELSATLASCAUTION · F
[![ModelsAtlas: CAUTION F](https://modelsatlas.com/mcp/markhuangai/dense-mem/badge.svg)](https://modelsatlas.com/mcp/markhuangai/dense-mem/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Dense-Mem MCP server

What is the Dense-Mem MCP server?
Self-hosted AI agent memory server with MCP, evidence provenance, typed claims, conflict detection, embeddings, recall, PostgreSQL, and pgvector
What tools does Dense-Mem expose?
6 in total: 6 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Dense-Mem safe to connect to an agent?
With care. The audit graded it F (54/100) and found 25 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Dense-Mem need?
It reads CLOUDFLARE_API_TOKEN, DENSE_MEM_BASELINE_SCRAPE_TOKEN, DENSE_MEM_CANDIDATE_SCRAPE_TOKEN, DENSE_MEM_CONTROL_TOKEN, DENSE_MEM_LOAD_SCRAPE_TOKEN, EMBEDDING_PROXY_UPSTREAM_KEY and GITHUB_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Dense-Mem run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as dense-mem-control-portal at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (b48ff0e6c6c3), read on 2026-10-08. The repository is watched and re-audited when it changes.

Sources

  • markhuangai/dense-mem on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit b48ff0e6c6c3Observed · 8 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.