# stevepridemore/graph-memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/stevepridemore/graph-memory  
**GitHub Stars:** 3  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/stevepridemore-graph-memory

## Description
Personal knowledge graph for Claude on Neo4j. Typed entities (Person/Project/Decision/Preference/Concept), bi-temporal edge validity (validat/invalidat), per-type weighted decay, contradiction detection, and a nightly "dream" extraction process. Local bge-small-en embeddings, no API keys. Optional OAuth 2.1 + Cloudflare Tunnel for cross-device use across Claude Code, Desktop, web, and iOS.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/stevepridemore/graph-memory), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/stevepridemore/graph-memory/v0.6.0/scripts/install-primary.sh \
  | bash -s v0.6.0
```

2. Start the server:

```sh
cd ~/graph-memory && docker compose up -d
```

3. Configure:

```sh
$v = 'v0.6.0'
```

4. Install:

```sh
iwr "https://raw.githubusercontent.com/stevepridemore/graph-memory/$v/scripts/install-primary.ps1" -UseBasicParsing -OutFile $env:TEMP\gm-install.ps1
```

5. Start the server:

```sh
cd $HOME\graph-memory; docker compose up -d
```

6. Install:

```sh
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
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/stevepridemore-graph-memory/readme_

