
Mnemograph
io.github.tm42Published by GitHub account tm42v0.5.1Updated Oct 24, 2026
Event-sourced knowledge graph memory for AI coding agents with semantic search
Overview
Gives coding agents a persistent, event-sourced knowledge graph memory with semantic search, branching, and git-style history.
- What you can do
- Mnemograph stores entities, relations, and observations in a local knowledge graph so an assistant can remember decisions, patterns, and learnings across sessions. Tools include remember and recall for storage and retrieval, session lifecycle helpers, branch and merge operations, graph maintenance such as duplicate detection and merging, and time-travel tools for viewing, diffing, rewinding, and restoring past states. Recall returns human-readable prose by default, with shallow, medium, and deep retrieval depths.
- When to use it
- Use it when an assistant should carry project knowledge between coding sessions, for example architecture decisions, recurring patterns, and gotchas. It suits multi-project or team setups where memory is shared through a repository, and workflows that need isolated branches or an audit trail of what was learned.
- Requirements
- Runs locally over stdio as a PyPI package, typically launched with uvx, so Python tooling is needed. Set MEMORY_PATH to the memory directory; project-local, global, and custom paths are supported. No authentication is declared. Git is used for version history.
Installation
In SourceWeft
- Open Mnemograph in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Mnemograph
A persistent, event-sourced knowledge graph for AI coding agents. Unlike simple key-value memory, Mnemograph captures entities, relations, and observations — enabling semantic search, tiered context retrieval, and git-based version control of your AI's memory.
Works with: Claude Code, opencode, codex CLI, Zed, Continue.dev, and any MCP-compatible agent.
Why Mnemograph?
AI coding sessions are ephemeral. Mnemograph gives your AI partner persistent memory that:
- Survives across sessions — decisions, patterns, learnings persist
- Supports semantic search — find relevant context by meaning, not just keywords
- Provides tiered retrieval — shallow summaries to deep subgraphs based on need
- Versions like code — branch, commit, diff, revert your knowledge graph
- Enables collaboration — share memory repos across users or projects
Memory Scope: Local vs Global
Before using mnemograph, decide where to store memory:
Important: Agents should ask the user which scope to use when first setting up mnemograph for a project. This affects where knowledge is stored and whether it's shared across projects.
Quick Start
Option 1: Let Claude Code install it
Give Claude Code this repo URL and ask it to set up mnemograph:
Or point Claude to the setup instructions directly:
Option 2: Manual installation
Option 3: Other MCP Clients
Each MCP client has a different configuration format. See UNIVERSAL_MCP_COMPATIBILITY.md for copy-paste configs for:
- opencode —
~/.config/opencode/opencode.json - Codex CLI —
~/.codex/config.yaml - Zed —
~/.config/zed/settings.json - Continue.dev —
~/.continue/config.json
The key environment variable is MEMORY_PATH — set it to where you want the knowledge graph stored.
Option 4: Install from source
Usage
MCP Tools (used by any agent)
Mnemograph exposes these tools via MCP:
Core Operations:
Session Lifecycle:
Branching (Parallel Workstreams):
Graph Maintenance:
Time Travel:
Edge Weights:
Recall: Prose vs Graph Format
The recall tool returns context in prose format by default — human-readable text that agents can consume directly without parsing JSON:
Depth levels:
shallow— Quick summary: entity counts, recent activity, gotchasmedium— Semantic search + 1-hop neighbors (~2000 tokens)deep— Multi-hop traversal from focus entities (~5000 tokens)
Gotcha extraction: Observations prefixed with Gotcha:, Warning:, Note:, or Important: are automatically extracted into a dedicated section.
CLI Tools
mnemograph — Unified CLI for all memory operations:
Running from anywhere (without activating the venv):
Graph Visualization — Interactive D3.js viewer:
- Layout algorithms: Force-directed, Radial (hubs at center), Clustered (by component)
- Color modes: By entity type, connected component, or degree centrality
- Edge weight slider: Filter connections by strength
- Live refresh:
--watchmode with Refresh button for real-time updates
Architecture
Event sourcing means all changes are recorded as immutable events in SQLite. The current state is computed by replaying events. This enables:
- Full history of all changes
- Revert any operation
- Branch/merge knowledge graphs
- Audit trail of what Claude learned and when
Two-layer versioning:
mnemograph vcs revert— fine-grained, undo specific events via compensating eventsmnemograph rewind/mnemograph restore— coarse-grained, git-level or timestamp-based restore
Branching
Branches let you work on isolated knowledge without affecting the main graph. Perfect for:
- Exploratory work — try approaches without polluting shared knowledge
- Feature-specific context — "feature/auth-refactor" keeps auth decisions separate
- Multiple projects — switch context between different codebases
Creating and Using Branches
How Branching Works
- Main branch always exists, contains shared knowledge
- Feature branches inherit from main but additions stay isolated
- Automatic filtering —
recall,search, etc. only see current branch + main - Merge copies branch entities/relations into target branch
- Delete cleans up after merge (or abandons exploratory work)
Branch Naming Conventions
Entity Types
Topic Convention
Use topic entities as entry points for browsing related knowledge:
Standard topics:
topic/projects— Project entitiestopic/decisions— Architectural decisionstopic/patterns— Patterns and practicestopic/learnings— Key discoveriestopic/questions— Open questions
This makes it easy to query "what decisions have we made?" by exploring topic/decisions.
Development
Based On
Mnemograph builds on MCP server-memory — Anthropic's official memory server
License
MIT
Source: README.md at commit 4136ad7
Tools
0Version history
1- v0.5.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts