原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Mnemograph

作者:tm42版本 0.5.1i★ –i在你的电脑上运行
注册名称io.github.tm42/mnemograph

安装

概览

作者提供的说明(英文原文)

Event-sourced knowledge graph memory for AI coding agents with semantic search

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 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 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "mnemograph": {
      "command": "uvx",
      "args": [
        "mnemograph"
      ],
      "env": {
        "MEMORY_PATH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "mnemograph": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mnemograph"
      ],
      "env": {
        "MEMORY_PATH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MEMORY_PATH env
    Path to memory storage directory

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 tm42 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 7258 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 7258 个服务器的 2% 更新
  • 基础检查结果等于或优于此分类中其他 7258 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Mnemograph 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.5.1)于9个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT今天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT20天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT上个月更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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:

ScopePathUse When
Project-local./.claude/memoryKnowledge specific to this repo (architecture, decisions, patterns)
Global~/.claude/memoryCross-project knowledge (personal learnings, universal patterns, preferences)
CustomAny path via MEMORY_PATHShared 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"

Global (cross-project)

MEMORY_PATH="$HOME/.claude/memory"

CLI: use --global flag

mnemograph --global status mnemograph --global graph

Quick Start

Option 1: Let Claude Code install it

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
Option 2: Manual installation
# Install from PyPI

pip install mnemograph

Add to Claude Code (global, available in all projects)

claude mcp add --scope user mnemograph \ -e MEMORY_PATH="$HOME/.claude/memory" \ -- uvx mnemograph

Initialize memory directory

mkdir -p ~/.claude/memory

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
git clone https://github.com/tm42/mnemograph.git

cd mnemograph uv sync

Add to Claude Code (or adapt for your MCP client)

claude mcp add --scope user mnemograph \ -e MEMORY_PATH="$HOME/.claude/memory" \ -- uv run --directory /path/to/mnemograph mnemograph

Usage

MCP Tools (used by any agent)

Mnemograph exposes these tools via MCP:

Core Operations:

ToolDescription
rememberPrimary storage: Store knowledge atomically (entity + observations + relations in one call)
recallPrimary retrieval: Get relevant context with auto token management. Use focus=['Entity'] for full details. Default output is human-readable prose.
create_entitiesCreate entities (auto-blocks duplicates >80% match)
create_relationsLink entities with typed edges (implements, uses, decided_for, etc.)
add_observationsAdd facts/notes to existing entities
read_graphGet the full knowledge graph (warning: may be large)
delete_entitiesRemove entities (cascades to relations)
delete_relationsRemove specific relations
delete_observationsRemove specific observations

Session Lifecycle:

ToolDescription
session_startSignal session start, get initial context. Returns quick_start guide.
session_endSignal session end, optionally save summary
get_primerGet oriented with the knowledge graph (call at session start)

Branching (Parallel Workstreams):

ToolDescription
create_branchCreate a named branch for isolated work (e.g., "feature/auth-refactor")
switch_branchSwitch to a different branch
list_branchesList all branches
merge_branchMerge a branch into main
delete_branchDelete a branch
get_current_branchGet the current branch name

Graph Maintenance:

ToolDescription
find_similarFind entities with similar names (duplicate detection)
find_orphansFind entities with no relations
merge_entitiesMerge duplicate entities (consolidates observations, redirects relations)
get_graph_healthAssess graph quality: orphans, duplicates, overloaded entities
suggest_relationsSuggest potential relations based on semantic similarity
create_entities_forceCreate entities bypassing duplicate check
clear_graphClear all entities/relations (event-sourced, can rewind)

Time Travel:

ToolDescription
get_state_atView graph state at any point in history
diff_timerangeShow what changed between two points in time
get_entity_historyFull changelog for a specific entity
rewindRewind graph to a previous state using git
restore_state_atRestore graph to state at timestamp (audit-preserving)
reloadReload graph state from disk (after git operations)

Edge Weights:

ToolDescription
get_relation_weightGet weight breakdown (recency, co-access, explicit)
set_relation_importanceSet explicit importance weight (0.0-1.0)
get_strongest_connectionsFind entity's most important connections
get_weak_relationsFind pruning candidates (low-weight relations)
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:

# Default: prose format (human-readable)

recall(depth="medium", query="authentication")

Returns:

MyApp (project)

A Python web service. Uses OAuth2 for user auth.

Uses: PostgreSQL, Redis

#

Decisions:

• Decision: Use JWT — Stateless tokens for API authentication

#

Gotchas:

• Token expiry is 1 hour by default

• Refresh tokens stored in Redis

Optional: graph format (structured JSON)

recall(depth="medium", query="authentication", format="graph")

Depth levels:

  • shallow — Quick summary: entity counts, recent activity, gotchas
  • medium — 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:

# 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

VCS commands (git-based version control)

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

Graph visualization

mnemograph graph # Open interactive graph viewer mnemograph graph --watch # Live reload mode (refresh button)

Time travel

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)

Graph health and maintenance

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)

Global options (come *before* the subcommand)

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

Using uvx (if installed from PyPI)

uvx --from mnemograph mnemograph status

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: --watch mode with Refresh button for real-time updates

Architecture

~/.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:

  • 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 events
  • mnemograph 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
# Create a branch for your feature

create_branch(name="feature/auth-refactor")

Work normally — all operations happen on this branch

remember(name="OAuth2", entity_type="concept", observations=["Implementing OAuth2 flow"])

Switch back to main to see clean state

switch_branch(name="main")

Merge when ready

merge_branch(source="feature/auth-refactor", target="main")

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
PatternUse Case
feature/xyzFeature-specific knowledge
explore/xyzExploratory/experimental work
project/xyzProject-specific context

| user/name | Pers

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx