Graph Memory logo

Graph Memory

by stevepridemore

Neo4j-backed personal knowledge graph for Claude with semantic search, temporal validity, decay, and contradiction detection.

Install Graph Memory

Run the project’s own setup commands, in order.

Setup steps from the project

stevepridemore/graph-memory installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/stevepridemore/graph-memory/v0.6.0/scripts/install-primary.sh \
      | bash -s v0.6.0
    
  2. 2. Start the server
    cd ~/graph-memory && docker compose up -d
    
  3. 3. Configure
    $v = 'v0.6.0'
    
  4. 4. Install
    iwr "https://raw.githubusercontent.com/stevepridemore/graph-memory/$v/scripts/install-primary.ps1" -UseBasicParsing -OutFile $env:TEMP\gm-install.ps1
    
  5. 5. Start the server
    cd $HOME\graph-memory; docker compose up -d
    
  6. 6. Install
    curl -fsSL https://raw.githubusercontent.com/stevepridemore/graph-memory/v0.6.0/scripts/install-secondary.sh \
      | bash -s v0.6.0 your-tunnel-host.example.com
    

Overview

stevepridemore/graph-memory connects Claude to a Neo4j knowledge graph that persists entities, relationships, decisions, and facts across sessions and devices. It combines semantic embeddings from local bge-small-en with graph traversal, weighted decay, bi-temporal validity, provenance, and contradiction detection. The MCP interface provides 24 query, write, maintenance, and operational tools, while an optional nightly Claude session extracts knowledge from transcripts and applies maintenance. Reach for it when flat conversation notes are insufficient and you need relationship-aware retrieval with history preserved.

Use cases

  • Retrieve decisions and their source context across Claude sessions
  • Search personal knowledge by meaning and graph relationships
  • Track facts that change without deleting historical versions
  • Flag contradictory preferences, plans, or project information
  • Capture Claude web and Desktop conversations into a shared graph

Key features

  • Neo4j-backed typed knowledge graph
  • Semantic search with local bge-small-en embeddings
  • Bi-temporal relationship validity and weighted decay
  • Contradiction detection and provenance tracking
  • OAuth 2.1 support for cross-device access
  • Scheduled transcript extraction and maintenance

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/17 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Graph Memory works

What stevepridemore/graph-memory does

stevepridemore/graph-memory gives Claude a persistent personal knowledge graph built on Neo4j. It stores typed entities such as people, projects, decisions, preferences, concepts, events, technologies, and tasks, along with relationships between them. The graph supports 19 node types and a controlled vocabulary of relationship verbs, with RELATED_TO available as a fallback.

Knowledge is more than a collection of text snippets. Nodes and edges carry weights, confidence, tenant identifiers, and provenance-related information. Relationships also track when a fact became valid, when it was superseded, and when it was ingested. Older knowledge can lose weight without being deleted, allowing historical facts to remain available.

How it works

The server combines local vector embeddings with graph structure. A semantic search can find conceptually related entities, after which graph relationships expand the result through connected nodes. Project context can influence which related entities appear first. Contradictory facts are flagged instead of being silently treated as compatible.

Embeddings use the local bge-small-en model and are 384-dimensional. Entity extraction runs within Claude sessions by default, so the standard setup does not require external API keys or per-token extraction costs. A scheduled “dream” session can read recent Claude Code transcripts and ingest documents, extract knowledge, apply decay, and record a changelog. The same MCP tools are used for this process rather than a separate extraction service.

Setup and configuration

The architecture uses Docker Compose with an MCP service and a Neo4j service. The MCP process runs on Node.js 22 and communicates with Neo4j over the internal Compose network; Neo4j is not exposed through an external listener in the documented architecture. Docker Compose v2 is required, along with Node.js 22+ and npm.

Claude Code and/or Claude Desktop are listed as prerequisites, together with a Claude plan that includes Claude Code access. The server can also be exposed for Claude web use through OAuth 2.1 and an optional Cloudflare Tunnel. Its OAuth implementation supports bearer-token validation, RS256 JWTs, public clients with PKCE-S256, dynamic client registration, and token revocation. Cross-device use requires choosing to expose the service rather than keeping it local.

A scheduled dream process normally runs as a Claude Code task. An optional runner can instead use an Anthropic API key, with a per-run cost cap and email cost summaries. Optional Jev-based features can select more specific relationship verbs or produce duplicate-merge suggestions; both are disabled by default, and duplicate suggestions are logged for review rather than merged automatically.

Tools and capabilities

The 24 MCP tools cover:

  • Querying with graph_query, semantic graph_search, entity lookup, contradiction checks, community discovery, and context building.
  • Writing relationships, boosting or weakening knowledge, deleting, merging, unmerging, and adding aliases.
  • Maintenance through decay, pruning, validation, re-embedding, and merge-suggestion generation.
  • Operations including statistics, export, audit, ingestion, transcript reading, and administrator-only Cypher access.

Claude skill wrappers include commands for graph queries, finding information, statistics, briefings, capture, ingestion, backups, bootstrapping, and the dream process. /graph-capture is useful for manually saving information from Claude web or Desktop conversations, which the transcript-based dream process cannot directly read.

Limitations and notes

The nightly transcript workflow reads Claude Code transcript locations, but Claude web and Claude Desktop conversations require manual capture. Cloud sessions use a separate collector prompt that queues their text for later ingestion.

Graph writes are checked against the relationship vocabulary. The SCHEMA_ENFORCEMENT setting controls whether unknown verbs are coerced to an allowed form or rejected. Historical relationships are marked invalid when superseded rather than removed, so callers should account for validity windows when interpreting results. The free Claude.ai plan does not include Claude Code access, and unattended transcript-heavy dream runs may require more Claude usage capacity than light interactive work.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Graph Memory

stevepridemore/graph-memory is an MCP server that connects Claude to a Neo4j personal knowledge graph. Its main tools search, query, relate, ingest, maintain, and export typed entities and relationships, including semantic search, contradiction checks, graph context building, decay, validation, and audit operations.

Install it with Node.js 22+, npm, Docker, and Docker Compose v2, then run the MCP and Neo4j services through the project’s Docker Compose architecture. Claude Code and/or Claude Desktop are also required for the documented workflow.

No, the default setup does not require external API keys or per-token extraction costs. Embeddings run locally with bge-small-en and extraction occurs in Claude sessions. An optional dream runner can use an Anthropic API key instead of a Claude Code scheduled task.

Use the `/graph-capture` skill after a substantive Claude web or Desktop conversation. The nightly transcript process cannot directly read those chats, so capture commits new entities, decisions, or facts to the graph manually.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGraph Memory AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/stevepridemore-graph-memory?style=directory)](https://allmcps.com/mcp/stevepridemore-graph-memory)
HTML Embed
<a href="https://allmcps.com/mcp/stevepridemore-graph-memory"><img src="https://allmcps.com/api/badge/stevepridemore-graph-memory?style=directory" alt="Graph Memory on AllMCPs" /></a>