Atlas / MCP servers / shaneholloman / Knowledge Graph Memory

Knowledge Graph MemorySAFE

mcp/shaneholloman/knowledge-graph-memory

MCP server enabling persistent memory for Claude through a local knowledge graph - fork focused on local development

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
9 7r · 0w · 2d
Transport
stdio
License
MIT
Stars
890
01

Overview

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

Persistent memory for AI models through a local knowledge graph.

Store and retrieve information across conversations using entities, relations, and observations. Works with Claude Code/Desktop and any MCP-compatible AI platform.

Why ".aim" and "aim_" prefixes?

AIM stands for AI Memory - the core concept of this system. The three AIM elements provide clear organization and safety:

  • `.aim` directories: Keep AI memory files organized and easily identifiable
  • `aim_` tool prefixes: Group related memory functions together in multi-tool setups
  • `_aim` safety markers: Each memory file starts with {"type":"_aim","source":"mcp-knowledge-graph"} to prevent accidental overwrites of unrelated JSONL files

This consistent AIM naming makes it obvious which directories, tools, and files belong to the AI memory system.

CRITICAL: Understanding .aim dir vs _aim file marker

Two different things with similar names:

  • .aim = Project-local directory name (MUST be named exactly .aim for project detection to work)
  • _aim = File safety marker (appears inside JSONL files: {"type":"_aim","source":"mcp-knowledge-graph"})

For project-local storage:

  • Directory MUST be named .aim in your project root
  • Example: my-project/.aim/memory.jsonl
  • The system specifically looks for this exact name

For global storage (--memory-path):

  • Can be ANY directory you want
  • Examples: ~/yourusername/.aim/, ~/memories/, ~/Dropbox/ai-memory/, ~/Documents/ai-data/
  • Complete flexibility - choose whatever location works for you

Storage Logic

File Location Priority:

  1. Project with `.aim` - Uses .aim/memory.jsonl (project-local)
  2. No project/no .aim - Uses configured global directory
  3. Contexts - Adds suffix: memory-work.jsonl, memory-personal.jsonl

Safety System:

  • Every memory file starts with {"type":"_aim","source":"mcp-knowledge-graph"}
  • System refuses to write to fi
Read from source at commit 8c532b6a1e5fOBSERVED · 2026-09-26
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.

claude-code
claude mcp add mcp-knowledge-graph -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "mcp-knowledge-graph": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (9)

7 read · 0 write · 2 destructive. Blast radius: 2 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
aim_memory_forgetreadForget memories. Removes memories and their associated links. DATABASE SELECTION: Entities are deleted from the specified database
aim_memory_getreadRetrieve specific memories by exact name. Use this when you know exactly what you
aim_memory_linkreadLink two memories together with a relationship. Use this to connect related information. RELATION STRUCTURE: Each link has
aim_memory_list_storesreadList all available memory databases and show current storage location. DATABASE TYPES: -
aim_memory_read_allreadRead all memories in a database. Returns every stored memory and their links. FORMAT OPTIONS: -
aim_memory_remove_factsdestructiveRemove specific facts from a memory. Keeps the memory but removes selected observations. DATABASE SELECTION: Observations are deleted from entities within the specified database
aim_memory_searchreadSearch memories by keyword. Use this when you don
aim_memory_storereadStore new memories. Use this to remember people, projects, concepts, or any information worth persisting. AIM (AI Memory) provides persistent memory for AI assistants. The
aim_memory_unlinkdestructiveRemove links between memories. Keeps the memories but removes their connections. DATABASE SELECTION: Relations are deleted from the specified database
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

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

What the source does

Filesystem
declared (1 observation(s))
Network
none-observed
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (4)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
aim_memory_remove_facts, aim_memory_unlink
Why it matters. 2 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/path-safety.test.ts:25
for (const bad of ['a/b', 'a\\b', 'work/../../etc']) {
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
test/path-safety.test.ts:39
assert.throws(() => assertContextSafe('../../../../tmp/pwned'), /path separators/);
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
minimist, @types/minimist, @types/node, shx, typescript
Why it matters. 5 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-09-26 · audit v0.4.1 · source sha 8c532b6a1e5ffull audit observations/trust-audit/mcp-server/shaneholloman__knowledge-graph-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-09-268c532b6a1e5fSAFEB89first audit
06

Questions

What is the Knowledge Graph Memory MCP server?

MCP server enabling persistent memory for Claude through a local knowledge graph - fork focused on local development

What tools does Knowledge Graph Memory expose?

9 in total: 7 read-only, 0 that write, and 2 that can delete or overwrite (aim_memory_remove_facts, aim_memory_unlink). Every one is listed on this page with its risk.

Is Knowledge Graph Memory safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Knowledge Graph Memory need?

No credential environment variables were found in its source, so it appears to need none.

How does Knowledge Graph Memory run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-knowledge-graph at 1.4.0.

How current is this page?

The grade is for one exact copy of the source (8c532b6a1e5f), read on 2026-09-26. The repository is watched and re-audited when it changes.

Advertisement