Dense-MemCAUTION
Self-hosted AI agent memory server with MCP, evidence provenance, typed claims, conflict detection, embeddings, recall, PostgreSQL, and pgvector
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Dense-Mem
English · 简体中文
Self-hosted MCP memory with durable evidence, explicit lifecycle, and support-gated recall.
Dense-Mem is a standalone HTTP MCP memory server using Streamable HTTP. It stages exact evidence, derives semantic state through validated server policy, and returns active evidence contexts with graph-shaped Relationship handles. PostgreSQL is the durable authority for knowledge, lifecycle, provenance, search, authorization, and audit; Redis is coordination only. A single-node deployment may use process-local coordination; a multi
b48ff0e6c6c3OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
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]{
"mcpServers": {
"dense-mem-control-portal": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_API_TOKEN}",
"DENSE_MEM_BASELINE_SCRAPE_TOKEN": "${DENSE_MEM_BASELINE_SCRAPE_TOKEN}",
"DENSE_MEM_CANDIDATE_SCRAPE_TOKEN": "${DENSE_MEM_CANDIDATE_SCRAPE_TOKEN}",
"DENSE_MEM_CONTROL_TOKEN": "${DENSE_MEM_CONTROL_TOKEN}"
}
}
}
}Exposed tools (6)
6 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
Default | read | |
Research | read | |
Staging | read | |
Team | read | |
remember | read | Remember |
x | read |
Trust audit
CAUTIONgrade F · trust 54/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (4 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (25)
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
CMD sh -c 'addr="${HTTP_ADDR:-:8080}"; port="${addr##*:}"; wget --quiet -O /dev/null "http://127.0.0.1:${port}/health"' || exit 1CMD wget --quiet -O /dev/null http://127.0.0.1:8080/health || exit 1
{"URL", "postgres://user:database-secret@localhost/memory?sslmode=disable", "database-secret"},{"escaped URL", "postgres://user:database%20p%40ss%3A%2F%25@localhost/memory?sslmode=disable", "database p@ss:/%"},dsn := "postgres://user:private%zz@localhost/memory"
const resolvedDSN = "postgres://operator:resolved@localhost:5432/dense_mem?sslmode=disable"
dsn = "postgres://testuser:testpass@postgres:5432/testdb?sslmode=disable"
const token = "synthetic-maintenance-control"
{name: "not required", state: "not_required", token: "historicalnotrequired"},runtimeConfig.Password = "dense_mem_migration_runtime"
token: "test-embedding-token-12345",
const password = "ci-grafana-password-012345";
"-----BEGIN PRIVATE KEY-----\nSGVsbG8gd29ybGQ=\n-----END PRIVATE KEY-----",
.coderabbit.yaml
.textlintignore
.textlintrc.json
const permits = new Function("vars", "github", "needs", "always", `return (${condition});`);const evaluate = new Function("needs", "github", `return (${expression});`);return new Function(...Object.keys(context), `return (${javascript});`)(...Object.values(context));const shouldRun = new Function("needs", `return (${condition});`);const shouldRun = new Function("needs", "github", `return (${condition});`);digest = hashlib.sha1(value.encode("utf-8")).hexdigest()[:16]digest = hashlib.sha1(value.encode("utf-8")).hexdigest()[:16]logger.Info(`request failed password=hunter2 metadata={"token":"json-secret"}`, slog.Group("request",Gates applied: no_behavioural_pass.
b48ff0e6c6c3full audit observations/trust-audit/mcp-server/markhuangai__dense-mem.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | b48ff0e6c6c3 | CAUTION | F | 54 | first audit |
Questions
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.