# understanding-graph [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/emergent-wisdom/understanding-graph  
**GitHub Stars:** 1  
**npm Downloads (last month):** 817  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/understanding-graph

## Description
Persistent understanding via workflow prompts, typed updates, graph-native code, and supersession.

## Tools
Capabilities this server exposes over MCP:

- **graph_batch** — Execute multiple operations as an **atomic commit** with a required `commit_message`. Wrapped in a SQLite transaction: if any operation fails, the entire batch is rolled back. The `commit_message` is preserved as the node's *Origin Story* — future agents reading those nodes see not just the content…
- **graph_add_understanding** — Add new concept with duplicate detection
- **graph_question** — Create question node for exploration
- **graph_revise** — Update concept understanding
- **graph_supersede** — Replace outdated concept
- **graph_add_reference** — Add external/cross-project references
- **graph_rename** — Rename node (updates soft references)
- **graph_archive** — Soft-delete preserving history
- **node_set_metadata** — Set arbitrary metadata on nodes
- **node_get_metadata** — Retrieve node metadata
- **node_set_trigger** — Change node classification
- **node_get_revisions** — Get understanding evolution history
- **graph_connect** — Create edges between concepts
- **graph_answer** — Record answer to a question node
- **graph_disconnect** — Remove/archive edges
- **edge_update** — Update edge type or explanation
- **edge_get_revisions** — Get relationship history
- **graph_understand** — Compose a workflow-specific re-entry packet with priors, resistance, evidence, and typed relations
- **graph_skeleton** — Structural overview (~150 tokens)
- **graph_context** — Full graph XML, optionally focused on one node; auto-compacts above 50 nodes
- **graph_context_region** — Full details for one numbered region returned by context, skeleton, or search
- **graph_semantic_search** — Find nodes by meaning
- **graph_similar** — Find conceptually similar nodes
- **graph_find_by_trigger** — Find nodes by type
- **graph_analyze** — Find structural gaps, cycles, bridges, open questions, and serendipity nodes
- **graph_semantic_gaps** — Find disconnected concepts
- **graph_score** — Structural proxy for chronology, revision, resolution, edge specificity, and connectivity—not semantic quality
- **graph_path** — Reasoning path between concepts
- **graph_centrality** — Most influential concepts
- **graph_thermostat** — Advisory entropy-style pulse for convergence, continuation, or divergence
- **graph_history** — Commit history and changes
- **graph_bisociate** — Surface candidate cross-context pairs with spreading activation and information gain
- **graph_discover_grounded** — Default bounded comparison of distant graph material; no connection is valid
- **graph_discover_grounded_chaos** — Optional dictionary perturbation after a genuine grounded bridge; requires a host-installed word list
- **graph_discover** — Explicitly speculative blind ANI over graph material
- **graph_random** — Concrete random provocations, including optional scrutinized Physics What-If forcing
- **graph_serendipity** — Batch-only: record a synthesis with source edges
- **graph_validate** — Batch-only: record an authored validation judgment for a scrutinized serendipity
- **graph_chaos** — Inject words from a machine-local dictionary or graph nodes into text
- **graph_decide** — Batch-only: record a typed decision over options
- **graph_evaluate_variations** — Rank alternatives with the experimental Novelty Score
- **doc_create** — Create document with content
- **doc_revise** — Modify document text
- **doc_insert_thinking** — synthetic_reader` only: insert a reconstructed Reader/CMP pretraining block
- **doc_append_thinking** — synthetic_reader` only: append a reconstructed Reader/CMP pretraining block
- **source_load** — Load text for staged reading
- **source_read** — Read next portion, auto-create nodes
- **source_position** — Get reading progress
- **source_list** — List loaded sources
- **source_export** — Reconstruct exact source text; `synthetic_reader` may additionally export its reserved Reader/CMP blocks
- **project_switch** — Switch active project
- **project_list** — List available projects
- **graph_lookup_external** — Look up node in another project
- **graph_list_external** — List accessible external projects
- **graph_find_by_reference** — Find nodes referencing a concept
- **graph_resolve_references** — Verify cross-project references
- **graph_global_lookup** — Search across all projects
- **solver_spawn** — Register specialized solver agent
- **solver_delegate** — Post task to solver queue
- **solver_claim_task** — Claim pending task (worker mode)
- **solver_complete_task** — Submit task results
- **solver_list** — List registered solvers
- **solver_queue_status** — Task queue statistics

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "understanding-graph": {
    "command": "npx",
    "args": ["-y","understanding-graph@0.2.1"]
  }
}
```

## Documentation

## What understanding-graph does

understanding-graph provides persistent graph memory for AI agents. Its nodes can represent understandings, questions, references, and other project concepts, while typed edges record relationships such as evidence or conceptual connections. The graph preserves authored updates, rationale, unresolved attention, and revisions so later work can inspect how a conclusion changed.

The design targets recursive, inspectable work across research, writing, coding, and decision-making. Multiple agents can read and extend the same project graph, leaving explicit records for subsequent sessions. It does not require storing private chain-of-thought; the intended records are externally useful understanding updates such as tensions, surprises, decisions, evidence, and remaining uncertainty.

## How it works

The server exposes MCP tools backed by a project-scoped graph. Write operations cover adding an understanding, creating a question, revising or superseding a concept, attaching references, renaming or archiving nodes, managing metadata, and connecting or disconnecting concepts. A batch operation groups multiple changes into one SQLite transaction. It requires a commit message, and a failed operation rolls the whole batch back; the message is retained as provenance for the committed nodes.

Read and analysis operations provide compact or full graph context, region-level detail, semantic search, similarity lookup, trigger-based filtering, paths, centrality, and structural diagnostics. `graph_understand` assembles a workflow-specific re-entry packet containing prior context, resistance, evidence, and typed relations. Full context can focus on a node and automatically compact larger graphs; numbered regions can then be retrieved in detail.

The package includes an initializer and optional workflow plugins for Codex and Claude Code. These can create project MCP configuration, shared instruction files, and a reading-mode skill. The model runs in the client; the graph server makes no model API calls.

## Setup and configuration

Node.js 22 or newer is required. For a project-scoped setup, run:

```bash
npx -y understanding-graph@latest init
```

The initializer creates Codex and Claude Code MCP configuration, workflow guidance, reading-mode skill files, and a `projects/` ignore entry. It does not create a starter graph. Sessions opened in the initialized directory share the selected project root and named graph.

For direct MCP setup, a stdio client can launch:

```bash
claude mcp add ug -- npx -y understanding-graph@latest mcp
```

Claude Code can also install the bundled plugin from the Emergent Wisdom marketplace or load a local checkout with `--plugin-dir`. The plugin adds workflow skills including orientation, quality checks, reading mode, serendipity, web visualization, graph workflows, code work, collaborative code, and creative work.

## Tools and capabilities

- Add, revise, supersede, rename, archive, and annotate graph nodes.
- Create questions, record answers, and attach external or cross-project references.
- Connect concepts with typed edges, update edge explanations, and inspect relationship history.
- Commit multiple graph changes atomically with a required provenance message.
- Retrieve skeletons, focused or full context, regional details, and revision histories.
- Search semantically, find similar or trigger-classified nodes, and analyze gaps, cycles, bridges, open questions, and influential concepts.
- Follow reasoning paths and consult the advisory thermostat for convergence, continuation, or divergence signals.

## Limitations and notes

Graph scores are structural proxies for chronology, revision, resolution, edge specificity, and connectivity; they are not measures of semantic quality. The raw MCP server can work with compatible MCP clients, but the bundled skills or generated project instructions are recommended for multi-step workflows because tool schemas alone may not activate the intended process. Automatic resurfacing depends on the appropriate visible-document relationship, and a provenance link by itself does not enable it.

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

