Atlas / MCP servers / acidkill / surreal-memory

surreal-memoryBLOCK

mcp/acidkill/surreal-memory
Verdict
BLOCK
Grade
F
Trust score
37 /100
Exposed tools
8 8r · 0w · 0d
Transport
streamable-http
License
MIT
Stars
7
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://pypi.org/project/surreal-memory/) [](https://github.com/acidkill/surreal-memory/actions) [](https://www.python.org/downloads/) [](https://opensource.org/licenses/MIT) [](https://surrealdb.com/)

Persistent graph memory for AI agents, powered by SurrealDB.

All features are free and open source. No license keys. No paywalls. No embedding API required for basic usage.

pip install surreal-memory[surrealdb]
smem init --full

Restart your AI tool. Your agent now remembers.

What's new in 3.12.0

  • Consolidation now advances through bounded, durable work units. Interrupted

runs can resume from committed checkpoints, including semantic-link discovery, deduplication, fiber censuses, compression, and lifecycle work.

  • Semantic-link discovery limits candidate memory and records source revisions

so stale or repeatedly changing source data can be detected and recovered safely instead of replaying unbounded work.

  • Pruning and retention resume between committed substeps after errors, and

indexed keyset scans keep large graph operations bounded.

  • The schema migration carries compatible unfinished v3.11 checkpoints

forward while preserving their phase data and 3.11.0:checkpoint-v1 compatibility marker. Package-version bumps do not invalidate this v1 checkpoint epoch; incompatible formats, schema state, or run parameters remain fenced off from resume.

  • Reranker requests that exceed context limits are split without losing

candidate scores, and OpenAI-compatible embedding credentials are isolated from unrelated provider requests.

See CHANGELOG.md for migration d

Read from source at commit 000ceea71883OBSERVED · 2026-10-10
02

Connect

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-code
claude mcp add surrealmemory --env API_KEY=${API_KEY} --env AWS_CREDENTIAL=${AWS_CREDENTIAL} --env AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} --env BGE_M3_API_KEY=${BGE_M3_API_KEY} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "surrealmemory": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "API_KEY": "${API_KEY}",
        "AWS_CREDENTIAL": "${AWS_CREDENTIAL}",
        "AWS_SECRET_ACCESS_KEY": "${AWS_SECRET_ACCESS_KEY}",
        "BGE_M3_API_KEY": "${BGE_M3_API_KEY}"
      }
    }
  }
}
03

Exposed tools (8)

8 read · 0 write · 0 destructive.

ToolRiskDescription
Surreal-MemoryreadBrain-inspired persistent memory for AI agents — neurons, synapses, and fibers
memory_getreadGet a memory by ID (legacy alias for smem_recall).
memory_searchreadSearch memories (legacy alias for smem_recall).
smem_contextreadGet recent context from Surreal-Memory.
smem_healthreadGet brain health diagnostics including grade and recommendations.
smem_recallreadQuery memories from Surreal-Memory. Use this to recall past information,
smem_rememberreadStore a memory in Surreal-Memory. Use this to remember facts, decisions,
smem_statsreadGet brain statistics including memory counts and freshness.
04

Trust audit

BLOCKgrade F · trust 37/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (2 observation(s))
Network
declared (11 observation(s))
Shell
declared (5 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

CRITICALObfuscation / stealth · obf.decode_then_exec · CWE-506, CWE-94
src/surreal_memory/server/static/dist/assets/embed-CZzyTu5G.js:15
atob( ... ,eval(
Why it matters. decodes a payload and executes it
HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
src/surreal_memory/server/static/dist/assets/embed-CZzyTu5G.js:14
: v !== v && u === u ? ${i} : `}var NW={operator:(e,t)=>lu(e,["_"],t.code),parameter:(e,t)=>lu(e,["datum","_"],t.code),event:(e,t)=>lu(e,["event"],t.code),handler:(e,t)=>{const n=`var datum=event.item
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
src/surreal_memory/safety/freshness.py:77
should_verify = False
Why it matters. certificate verification is disabled
Fix. leave verification on
HIGHNetwork egress · net.tls_off · CWE-200, CWE-319
src/surreal_memory/safety/freshness.py:82
should_verify = False
Why it matters. certificate verification is disabled
Fix. leave verification on
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/surreal_memory/cli/doctor.py:215
importlib.import_module(module_name)
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/surreal_memory/cli/doctor.py:429
importlib.import_module(dep)
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/surreal_memory/cli/doctor.py:479
importlib.import_module(module_name)
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
src/surreal_memory/cli/embedding_setup.py:73
importlib.import_module(module_name)
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
tests/unit/test_sync_cloud.py:42
api_key="nmk_roundtrip123456789012345678",
LOWInventory / provenance · inv.hidden_file · CWE-1104
.pre-commit-config.yaml
.pre-commit-config.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
vscode-extension/.mocharc.yml
.mocharc.yml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
vscode-extension/.vscodeignore
.vscodeignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
tests/unit/test_id_sanitizer_single_source.py:93
module = importlib.import_module(module_path)
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
tests/unit/test_remember_handler_all_types.py:93
MemoryType.BOUNDARY: "Never use eval() in production",
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
tests/unit/test_suggest_memory_type.py:21
"Never use eval() in production code",
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
tests/unit/test_suggest_memory_type.py:213
assert suggest_memory_type("Never use eval() in production") == MemoryType.BOUNDARY
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/surreal_memory/hooks/capture_state.py:72
return "tp_" + hashlib.md5(transcript_path.encode("utf-8")).hexdigest()[:16]
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/surreal_memory/hooks/capture_state.py:83
return hashlib.md5(norm.encode("utf-8")).hexdigest()
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/surreal_memory/mcp/auto_capture.py:163
return hashlib.md5(key.encode()).hexdigest()
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/surreal_memory/mcp/session_handler.py:361
return hashlib.md5(raw.encode()).hexdigest()
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
src/surreal_memory/utils/simhash.py:63
digest = hashlib.md5(shingle.encode("utf-8", errors="surrogatepass")).digest()
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/test_encryption.py:122
encryptor.encrypt("data", "../../../etc/passwd")
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/unit/test_db_introspector.py:88
introspector._extract_path("sqlite:///../../etc/passwd", "sqlite")
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/unit/test_surface_command.py:74
get_surface_path("../../etc/passwd", global_only=True)
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
vscode-extension/src/views/graph/GraphPanel.ts:10
import { SurrealMemoryClient } from "../../server/client";

Gates applied: critical_finding, no_behavioural_pass.

Audited 2026-10-10 · audit v0.4.1 · source sha 000ceea71883full audit observations/trust-audit/mcp-server/acidkill__surreal-memory.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-10000ceea71883BLOCKF37first audit
06

Questions

What tools does surreal-memory expose?

8 in total: 8 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is surreal-memory safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (37/100) and found 4 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does surreal-memory need?

It reads API_KEY, AWS_CREDENTIAL, AWS_SECRET_ACCESS_KEY, BGE_M3_API_KEY, COGNEE_API_KEY, DASHSCOPE_API_KEY, DATABASE_PASSWORD, GEMINI_API_KEY, GITHUB_TOKEN, GOOGLE_API_KEY, LLM_API_KEY and MEM0_API_KEY 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 surreal-memory run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on npm as surrealmemory at 3.12.0.

How current is this page?

The grade is for one exact copy of the source (000ceea71883), read on 2026-10-10. The repository is watched and re-audited when it changes.

Advertisement