Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

wisdomGraph

@cklam12345Run by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Neo4j-native DIKW memory for Claude Code — knowledge that compounds across sessions

AI memoryv0.2.0MITPython
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: creates or changes data: records, files, settings.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npmwisdomgraphv0.2.0

Run

npx -y wisdomgraph

MCP client config

{
  "mcpServers": {
    "wisdomgraph": {
      "command": "npx",
      "args": [
        "-y",
        "wisdomgraph"
      ]
    }
  }
}
README11 min read

English | 简体中文

PyPI License: MIT Neo4j Claude Code Codex OpenClaw

Graph-native persistent cognition for AI agents.

graphify gives you a snapshot. wisdomGraph gives you memory that compounds.

Use wisdomGraph from Claude Code, Codex, OpenClaw, or any MCP host. Feed it your codebases, notes, papers, conversations — every run merges into a persistent graph — embedded Relate by Neo4j locally, or Neo4j Aura in the cloud. The graph doesn't reset. It accumulates. Facts become patterns. Patterns become insights. Insights become wisdom.

/wisdom .                      # absorb this project into the wisdom graph
/wisdom ask "what patterns repeat across all my projects?"
/wisdom reflect                # promote insights → wisdom, close the feedback loop

The step function over graphify

graphify is excellent at what it does: turn a folder into a knowledge graph snapshot. One run, one graph.json, one GRAPH_REPORT.md. Read it. Next session, start over.

wisdomGraph does something fundamentally different.

graphifywisdomGraph
Storagegraph.json file (per-project)Relate or Neo4j (persistent, all projects)
Node typesflat (code entities, concepts)typed DIKW: Knowledge / Experience / Insight / Wisdom
Runssnapshot, overwritesMERGE — each run grows the graph
Queryread GRAPH_REPORT.mdlive Cypher traversal at inference time
Memoryresets each sessionaccumulates across sessions, projects, months
Reasoningcommunity detection (topology)graph path traversal + DIKW hierarchy
Feedback loopnoneWisdom → Knowledge (neuroplasticity)
Databasenone requiredEmbedded Relate (no Docker) or Neo4j Aura

The difference is not incremental. It's architectural. graphify compresses a codebase into a readable report. wisdomGraph builds an artificial epistemology — one that remembers, connects, and grows.


The DIKW pyramid, operationalized

Human experts don't store flat facts. They organize experience into layers:

Wisdom    ← actionable principles derived from patterns
  ↑
Insight   ← patterns detected across multiple experiences
  ↑
Experience ← events, decisions, outcomes with context
  ↑
Knowledge ← verified facts, documented behaviors, extracted structure

Every node in the wisdomGraph carries a tier label. The graph topology is the cognitive architecture. When you ask a question, Cypher traverses upward through the tiers — not keyword-matching flat text, but reasoning across lived experience.

The feedback loop is critical: when a Wisdom node is queried and found useful, it reinforces connected Knowledge nodes. The graph learns what matters.


Install

Requires: Python 3.10+ and one of: Claude Code, Codex, OpenClaw, or another MCP host

No Docker, Java, database server, or cloud account required. The Python package includes Relate by Neo4j, an embedded graph engine. Aura and existing Neo4j servers remain supported.

bash
pip install 'wisdomgraph[mcp]'
wisdom quickstart

wisdom quickstart is the end-to-end first-time setup. It prepares storage, verifies graph storage, and registers wisdomGraph with detected MCP hosts.

bash
# Embedded persistent graph + detected MCP hosts
wisdom quickstart

# Local backend + Codex only
wisdom quickstart --host codex

# Existing Neo4j or DozerDB instance
wisdom quickstart --storage existing --uri bolt://localhost:7689 --user neo4j --password <password>

# Neo4j Aura
wisdom quickstart --storage aura --uri bolt+s://xxxxxxxx.databases.neo4j.io --user neo4j --password <password>

New installations default to ~/.wisdom/graph.rl. Existing saved Neo4j/Aura connections remain selected until you explicitly run local quickstart or connect to another backend. Switching storage does not migrate existing data.

Option A — Embedded Relate (default)

bash
wisdom quickstart --host codex
# Choose a different graph file, with no MCP registration:
wisdom quickstart --path ./my-memory.rl --host none
wisdom doctor

Relate runs inside Python and persists the graph locally. No credentials or background service are needed. Sessions release the store when finished, including on errors. The MCP server never starts Docker or replaces a failed Aura connection with a local graph.

The graph must fit in RAM, and only one process can open the store for writing at a time. Concurrent agent processes can encounter a storage-lock error; close the other writer and retry, or use Aura for shared access. Back up the graph file while no session has it open. See Relate's documented limits.

For an optional managed Docker server, use wisdom quickstart --storage docker; existing wisdom local up|status|logs|down commands still manage Docker.

Switch storage through MCP (0.3.4)

Ask your agent: “Show my WisdomGraph storage”, “Switch WisdomGraph back to Docker”, or “Use embedded Relate again”. The wisdom_storage tool supports:

json
{"action": "status"}
{"action": "switch", "backend": "relate"}
{"action": "switch", "backend": "docker", "engine": "neo4j"}
{"action": "switch", "backend": "docker", "engine": "dozerdb"}
{"action": "switch", "backend": "neo4j"}
{"action": "switch", "backend": "aura", "uri": "neo4j+s://YOUR-HOST", "password_env": "WISDOM_NEO4J_PASSWORD"}

For remote storage, set the password environment variable in the MCP server's environment before starting it. Do not send passwords in chat/tool arguments. Omitting the URI reuses the saved remote connection. Docker uses its managed password file and reuses an existing container; choosing an engine does not replace that container.

The target must pass connectivity and schema checks before the saved selection changes. Subsequent calls use the new backend without restarting MCP. Each backend retains its own data: switching does not migrate graphs, delete files, or stop containers. Legacy manually created DozerDB containers remain accessible through backend: "neo4j" and their URI. Managed Docker expects ports 7474/7687 to be available.

Option B — Neo4j Aura (zero local database)

  1. Create a free account at neo4j.com/cloud/aura
  2. Create a free AuraDB instance — copy the connection URI and password
  3. Run:
bash
wisdom connect bolt+s://xxxxxxxx.databases.neo4j.io --user neo4j --password <your-password>

Free tier: 200,000 nodes. Enough for years of accumulated wisdom.

Option C — Optional/manual DozerDB Docker (full control, APOC included)

bash
wisdom docker up        # pulls graphstack/dozerdb:5.26.3.0 and starts it
wisdom connect bolt://localhost:7687 --user neo4j --password password

Or manually:

bash
docker run -d \
  -p 7474:7474 -p 7687:7687 \
  -v $HOME/neo4j-wisdom/data:/data \
  -v $HOME/neo4j-wisdom/logs:/logs \
  --env NEO4J_AUTH=neo4j/password \
  --env NEO4J_PLUGINS='["apoc"]' \
  graphstack/dozerdb:5.26.3.0

Open localhost:7474 — Neo4j Browser is your visual window into the wisdom graph.


Platform support

PlatformInstall command
Claude Code (Linux/Mac)wisdom install
Claude Code MCPwisdom mcp-install
Codex MCPwisdom mcp-install --host codex
Claude Code (Windows)wisdom install --platform windows
OpenClawwisdom install --platform claw

Then open your AI coding assistant and type:

/wisdom .

MCP integration (v0.2.0+)

wisdomGraph ships as a native Model Context Protocol (MCP) server. Once registered, Claude, Codex, or another MCP host can call wisdomGraph tools directly — no /wisdom slash command needed.

Claude Code setup

bash
wisdom mcp-install

This writes the MCP server entry to .claude/settings.json in your current project:

json
{
  "mcpServers": {
    "wisdomGraph": {
      "command": "wisdom",
      "args": ["mcp"]
    }
  }
}

Restart Claude Code. wisdomGraph is now live in that project.

Codex setup (v0.3.0+)

bash
wisdom mcp-install --host codex

This runs the Codex MCP registration:

bash
codex mcp add wisdomGraph -- wisdom mcp

Start a new Codex session. Codex can now launch wisdom mcp and use the same Neo4j-backed DIKW graph as Claude Code.

MCP tools

ToolWhat agents use it for
wisdom_ingestAbsorb a file, directory, or URL into Neo4j
wisdom_rememberStore a fact, decision, or insight explicitly
wisdom_learnRecord an attempt, outcome, and lesson learned
wisdom_storageInspect or switch embedded, Neo4j/Aura, and Docker storage
wisdom_statusRead DIKW tier counts and edge/source totals
wisdom_listList nodes by DIKW tier, project, and connectivity
wisdom_traceTrace why an insight or wisdom node exists
wisdom_explainExplain a node with its DIKW chain and sources
wisdom_queryRun a read-only Cypher traversal
wisdom_reflectTrigger DIKW promotion pipeline
wisdom_reportGet tier counts + top Wisdom nodes as markdown

Example — Claude remembering across sessions

Session 1:

Claude calls wisdom_remember with label "DozerDB ignores NEO4J_AUTH if data dir exists", tier experience.

Session 2 (days later, fresh terminal):

You ask "how do I reset DozerDB credentials?" Claude calls wisdom_query → finds the Experience node → answers from your own history.

The graph remembered. Claude didn't forget.

Global vs project MCP install

bash
# Register for the current project only
wisdom mcp-install

# Register globally (all projects on this machine)
wisdom mcp-install --project ~

# Register globally with Codex
wisdom mcp-install --host codex

Usage

/wisdom                              # absorb current directory
/wisdom ./raw                        # absorb a specific folder
/wisdom ./raw --mode deep            # aggressive INFERRED edge extraction
/wisdom ./raw --update               # re-absorb only changed files, MERGE into graph
/wisdom ./raw --tier knowledge       # force all extractions into Knowledge tier only

/wisdom add https://arxiv.org/abs/1706.03762   # absorb a paper
/wisdom add https://x.com/...                  # absorb a tweet thread
/wisdom add https://...  --author "Name"        # tag the source author

/wisdom ask "what patterns repeat across all my projects?"
/wisdom ask "what do I know about authentication flows?"
/wisdom ask "trace the path from attention to optimizer"
/wisdom ask "..." --tier wisdom      # only traverse Wisdom-tier nodes in answer

/wisdom reflect                      # LLM promotion pass: Knowledge→Experience→Insight→Wisdom
/wisdom reflect --project ./raw      # reflect only on nodes from this corpus

/wisdom path "DigestAuth" "OAuth"    # shortest path between two concepts
/wisdom explain "CausalSelfAttention"  # full DIKW context for a node
/wisdom god-nodes                    # highest-degree concepts across all projects

/wisdom export --cypher              # dump all nodes/edges as Cypher CREATE statements
/wisdom export --json                # export to graph.json (graphify-compatible)
/wisdom export --obsidian            # export to Obsidian vault

/wisdom status                       # graph stats: node counts by tier, edge counts, last update
/wisdom purge --project ./raw        # remove nodes from one corpus, touch nothing else

How wisdom accumulates

Run 1 — absorb your auth library:

Knowledge: JWT, session tokens, cookie flags, PKCE flow
Experience: (none yet — single source)

Run 2 — absorb a different project's auth:

Knowledge: JWT, PKCE — MERGE deduplicates, adds a source link
Experience: two implementations, same pattern detected
Insight: JWT + PKCE is the converged pattern in your work

Run 3 — /wisdom reflect:

Wisdom: "Use stateless JWT for APIs, PKCE for browser flows.
         Shipped this pattern across 3 projects without incident."

Run 4 — /wisdom ask "how should I handle auth in this new service?":

Traversal: Knowledge → Experience → Insight → Wisdom
Answer: your own battle-tested principle, grounded in your actual history

This is not RAG. This is not summarization. This is the graph traversing your accumulated experience to return your own wisdom back to you.


Graph schema

cypher
// DIKW node labels
(:Knowledge  {id, label, content, source_file, confidence, timestamp, project})
(:Experience {id, label, content, context, outcome, timestamp, project})
(:Insight    {id, label, content, pattern_strength, source_count, timestamp})
(:Wisdom     {id, label, principle, confidence, reinforcement_count, timestamp})

// Relationships
(Knowledge)-[:GROUNDS]->(Experience)
(Experience)-[:REVEALS]->(Insight)
(Insight)-[:CRYSTALLIZES_INTO]->(Wisdom)
(Wisdom)-[:REINFORCES]->(Knowledge)           // feedback loop — the graph learns

(Knowledge)-[:SEMANTICALLY_SIMILAR_TO]->(Knowledge)
(Insight)-[:CONTRADICTS]->(Insight)           // tension surfaces, needs reflection
(any)-[:SOURCED_FROM]->(Source {uri, author, ingested_at})

// Cross-agent composite index
CREATE INDEX wisdom_composite IF NOT EXISTS
FOR (n:Knowledge|Experience|Insight|Wisdom)
ON (n.id, n.timestamp, n.confidence)

Confidence flows through the graph. An Insight grounded in 8 Experiences has higher pattern_strength than one from 2. Wisdom nodes track reinforcement_count — how many traversals confirmed the principle.


What you get

Cross-project god nodes — concepts central across all your projects and corpora, not just one repo.

Contradiction detection — two Insights pointing in opposite directions surface as CONTRADICTS edges. The graph shows the conflict; you resolve it into better Wisdom.

Temporal decay — nodes carry timestamps. Old Knowledge not reinforced by recent Experience gets flagged. The graph ages gracefully, like expert memory.

Full provenance chain — every node links back to its Source. /wisdom explain "node" returns the full DIKW path: fact → context → pattern → principle.

The "why" chain — not just what but why it matters, extracted from docstrings, # NOTE: comments, design rationale in docs, and the DIKW promotion reasoning.


Deployment options

Embedded RelateNeo4j AuraDocker (optional)
Setupwisdom quickstartwisdom connect <uri> ...wisdom quickstart --storage docker
Data locationLocal graph fileNeo4j cloudLocal container volume
Server requiredNoManaged by Neo4jYes
Best forPersonal agent memory, local developmentShared access and larger deploymentsExisting server workflows

Relate is a separate engine from Neo4j Server. WisdomGraph uses its Python API and Cypher; server-specific procedures and arbitrary user Cypher may differ. The integration is pinned to Relate 1.2.0 and tested against real persistent stores.


Privacy

wisdomGraph sends file contents to your AI coding assistant's model API for semantic extraction — Anthropic (Claude Code) or whichever provider your platform uses. Code files are processed locally via tree-sitter AST. All graph data lives in your local Relate store or your selected Neo4j instance (Aura or Docker). No telemetry, no usage tracking, no analytics.


Tech stack

Neo4j (Aura or DozerDB) + tree-sitter + APOC. Semantic extraction via Claude (Claude Code) or your platform's model. The graph database is the intelligence layer — traversal, path-finding, and community detection run natively in Cypher via Neo4j GDS (Graph Data Science library). MCP integration via the Model Context Protocol Python SDK.


Contributing

Worked examples are the highest-trust contribution. Run /wisdom on a real multi-project corpus, let it reflect a few times, document what Wisdom nodes emerged and whether they match your intuition. Submit to worked/{slug}/.

Schema proposals — have a relationship type that captures something the current schema misses? Open an issue with the Cypher pattern and a worked example.

DIKW promotion heuristics — better prompts or rules for when to promote Knowledge → Experience → Insight → Wisdom. The promotion logic is the heart of the system.

See ARCHITECTURE.md for the full pipeline design, Cypher schemas, and how to extend the tiers.

Similar modules

Browse AI memory