Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Event-sourced knowledge graph memory for AI coding agents with semantic search
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
MEMORY_PATH必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"mnemograph": {
"command": "uvx",
"args": [
"mnemograph"
],
"env": {
"MEMORY_PATH": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add mnemograph --env MEMORY_PATH=your-value -- uvx mnemograph動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"mnemograph": {
"command": "uvx",
"args": [
"mnemograph"
],
"env": {
"MEMORY_PATH": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"mnemograph": {
"type": "stdio",
"command": "uvx",
"args": [
"mnemograph"
],
"env": {
"MEMORY_PATH": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
MEMORY_PATH envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント tm42 で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.5.1)がレジストリに届いたのは9 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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.
AI coding sessions are ephemeral. Mnemograph gives your AI partner persistent memory that:
Before using mnemograph, decide where to store memory:
| Scope | Path | Use When |
|---|---|---|
| Project-local | ./.claude/memory | Knowledge specific to this repo (architecture, decisions, patterns) |
| Global | ~/.claude/memory | Cross-project knowledge (personal learnings, universal patterns, preferences) |
| Custom | Any path via MEMORY_PATH | Shared team memory, org-wide knowledge bases |
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.
# Project-local (default)
MEMORY_PATH=".claude/memory"
MEMORY_PATH="$HOME/.claude/memory"
mnemograph --global status mnemograph --global graph
Give Claude Code this repo URL and ask it to set up mnemograph:
https://github.com/tm42/mnemograph
Or point Claude to the setup instructions directly:
Read https://raw.githubusercontent.com/tm42/mnemograph/main/SETUP_CLAUDE_CODE.md and follow them
# Install from PyPI
pip install mnemograph
claude mcp add --scope user mnemograph \ -e MEMORY_PATH="$HOME/.claude/memory" \ -- uvx mnemograph
mkdir -p ~/.claude/memory
Each MCP client has a different configuration format. See UNIVERSAL_MCP_COMPATIBILITY.md for copy-paste configs for:
~/.config/opencode/opencode.json~/.codex/config.yaml~/.config/zed/settings.json~/.continue/config.jsonThe key environment variable is MEMORY_PATH — set it to where you want the knowledge graph stored.
git clone https://github.com/tm42/mnemograph.git
cd mnemograph uv sync
claude mcp add --scope user mnemograph \ -e MEMORY_PATH="$HOME/.claude/memory" \ -- uv run --directory /path/to/mnemograph mnemograph
Mnemograph exposes these tools via MCP:
Core Operations:
| Tool | Description |
|---|---|
remember | Primary storage: Store knowledge atomically (entity + observations + relations in one call) |
recall | Primary retrieval: Get relevant context with auto token management. Use focus=['Entity'] for full details. Default output is human-readable prose. |
create_entities | Create entities (auto-blocks duplicates >80% match) |
create_relations | Link entities with typed edges (implements, uses, decided_for, etc.) |
add_observations | Add facts/notes to existing entities |
read_graph | Get the full knowledge graph (warning: may be large) |
delete_entities | Remove entities (cascades to relations) |
delete_relations | Remove specific relations |
delete_observations | Remove specific observations |
Session Lifecycle:
| Tool | Description |
|---|---|
session_start | Signal session start, get initial context. Returns quick_start guide. |
session_end | Signal session end, optionally save summary |
get_primer | Get oriented with the knowledge graph (call at session start) |
Branching (Parallel Workstreams):
| Tool | Description |
|---|---|
create_branch | Create a named branch for isolated work (e.g., "feature/auth-refactor") |
switch_branch | Switch to a different branch |
list_branches | List all branches |
merge_branch | Merge a branch into main |
delete_branch | Delete a branch |
get_current_branch | Get the current branch name |
Graph Maintenance:
| Tool | Description |
|---|---|
find_similar | Find entities with similar names (duplicate detection) |
find_orphans | Find entities with no relations |
merge_entities | Merge duplicate entities (consolidates observations, redirects relations) |
get_graph_health | Assess graph quality: orphans, duplicates, overloaded entities |
suggest_relations | Suggest potential relations based on semantic similarity |
create_entities_force | Create entities bypassing duplicate check |
clear_graph | Clear all entities/relations (event-sourced, can rewind) |
Time Travel:
| Tool | Description |
|---|---|
get_state_at | View graph state at any point in history |
diff_timerange | Show what changed between two points in time |
get_entity_history | Full changelog for a specific entity |
rewind | Rewind graph to a previous state using git |
restore_state_at | Restore graph to state at timestamp (audit-preserving) |
reload | Reload graph state from disk (after git operations) |
Edge Weights:
| Tool | Description |
|---|---|
get_relation_weight | Get weight breakdown (recency, co-access, explicit) |
set_relation_importance | Set explicit importance weight (0.0-1.0) |
get_strongest_connections | Find entity's most important connections |
get_weak_relations | Find pruning candidates (low-weight relations) |
The recall tool returns context in prose format by default — human-readable text that agents can consume directly without parsing JSON:
# Default: prose format (human-readable)
recall(depth="medium", query="authentication")
#
#
recall(depth="medium", query="authentication", format="graph")
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.
`mnemograph` — Unified CLI for all memory operations:
# Basic operations
mnemograph status # Show entity/relation counts, recent events mnemograph log # View event history mnemograph log --session X # Filter by session mnemograph sessions # List all sessions mnemograph export # Export graph as JSON
mnemograph vcs init # Initialize memory as git repo mnemograph vcs commit -m "msg" # Commit current state mnemograph vcs log # View commit history mnemograph vcs revert --event ID # Undo specific events (compensating events) mnemograph vcs revert --session X # Undo entire session
mnemograph graph # Open interactive graph viewer mnemograph graph --watch # Live reload mode (refresh button)
mnemograph show --at "2 days ago" # View state at a point in time mnemograph diff "1 week ago" # Show changes since then mnemograph history "EntityName" # Full changelog for an entity mnemograph rewind -n 1 # Git-based rewind by N commits mnemograph restore --to "yesterday" # Event-based restore (audit-preserving)
mnemograph health # Show graph health report (orphans, duplicates, etc.) mnemograph health --fix # Interactive cleanup mode mnemograph similar "React" # Find entities similar to "React" (duplicate check) mnemograph orphans # List entities with no relations mnemograph suggest "FastAPI" # Suggest relations for an entity mnemograph clear # Clear all entities and relations (with confirmation)
mnemograph --global status # Use global memory (~/.claude/memory) mnemograph --memory-path /path graph # Custom memory location
Running from anywhere (without activating the venv):
# Using uv (recommended)
uv run --directory /path/to/mnemograph mnemograph graph
uvx --from mnemograph mnemograph status
Graph Visualization — Interactive D3.js viewer:
--watch mode with Refresh button for real-time updates~/.mnemograph/memory/ # or ~/.claude/memory, ~/.opencode/memory, etc.
├── mnemograph.db # SQLite database (events + vectors) ├── state.json # Cached materialized state (derived) └── .git/ # Version history
Event sourcing means all changes are recorded as immutable events in SQLite. The current state is computed by replaying events. This enables:
Two-layer versioning:
mnemograph vcs revert — fine-grained, undo specific events via compensating eventsmnemograph rewind / mnemograph restore — coarse-grained, git-level or timestamp-based restoreBranches let you work on isolated knowledge without affecting the main graph. Perfect for:
# Create a branch for your feature
create_branch(name="feature/auth-refactor")
remember(name="OAuth2", entity_type="concept", observations=["Implementing OAuth2 flow"])
switch_branch(name="main")
merge_branch(source="feature/auth-refactor", target="main")
recall, search, etc. only see current branch + main| Pattern | Use Case |
|---|---|
feature/xyz | Feature-specific knowledge |
explore/xyz | Exploratory/experimental work |
project/xyz | Project-specific context |
| user/name | Pers
冒頭だけを表示しています。続きはリポジトリで読めます