Graph-Mem
What it does
Persistent knowledge-graph memory for AI agents, with local semantic search. No API keys.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
{ "mcpServers": { "graphmem": { "command": "uvx", "args": [ "graphmem-mcp" ] } } }退出 Claude 再重新打开
试一试
用 Graph-Mem 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Graph-Mem,或回答中出现 Graph-Mem 的工具名称,就表示连接成功
4 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
GRAPHMEM_DB_PATHPath to the SQLite database file. Defaults to .graphmem/graph.db relative to the working directory.GRAPHMEM_EMBEDDING_MODELsentence-transformers model ID used for semantic search. Defaults to all-MiniLM-L6-v2, downloaded on first use.GRAPHMEM_TRAVERSAL_NODE_BUDGETMaximum entities visited by a single graph traversal. Defaults to 5000.GRAPHMEM_LOG_LEVELLogging verbosity: DEBUG, INFO, WARNING, ERROR, or CRITICAL. Defaults to WARNING.
说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Graph-Mem
Graph-Mem 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user graphmem -- uvx graphmem-mcp在 Claude Code 中输入 /mcp
应能看到 Graph-Mem 在列表中并显示已连接
试一试
用 Graph-Mem 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Graph-Mem,或回答中出现 Graph-Mem 的工具名称,就表示连接成功
4 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
GRAPHMEM_DB_PATHPath to the SQLite database file. Defaults to .graphmem/graph.db relative to the working directory.GRAPHMEM_EMBEDDING_MODELsentence-transformers model ID used for semantic search. Defaults to all-MiniLM-L6-v2, downloaded on first use.GRAPHMEM_TRAVERSAL_NODE_BUDGETMaximum entities visited by a single graph traversal. Defaults to 5000.GRAPHMEM_LOG_LEVELLogging verbosity: DEBUG, INFO, WARNING, ERROR, or CRITICAL. Defaults to WARNING.
说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Graph-Mem 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Graph-Mem,或回答中出现 Graph-Mem 的工具名称,就表示连接成功
4 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
GRAPHMEM_DB_PATHPath to the SQLite database file. Defaults to .graphmem/graph.db relative to the working directory.GRAPHMEM_EMBEDDING_MODELsentence-transformers model ID used for semantic search. Defaults to all-MiniLM-L6-v2, downloaded on first use.GRAPHMEM_TRAVERSAL_NODE_BUDGETMaximum entities visited by a single graph traversal. Defaults to 5000.GRAPHMEM_LOG_LEVELLogging verbosity: DEBUG, INFO, WARNING, ERROR, or CRITICAL. Defaults to WARNING.
说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Python (uv)(只需一次)
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Graph-Mem 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Graph-Mem,或回答中出现 Graph-Mem 的工具名称,就表示连接成功
4 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
GRAPHMEM_DB_PATHPath to the SQLite database file. Defaults to .graphmem/graph.db relative to the working directory.GRAPHMEM_EMBEDDING_MODELsentence-transformers model ID used for semantic search. Defaults to all-MiniLM-L6-v2, downloaded on first use.GRAPHMEM_TRAVERSAL_NODE_BUDGETMaximum entities visited by a single graph traversal. Defaults to 5000.GRAPHMEM_LOG_LEVELLogging verbosity: DEBUG, INFO, WARNING, ERROR, or CRITICAL. Defaults to WARNING.
说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user graphmem -- uvx graphmem-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"graphmem": {
"command": "uvx",
"args": [
"graphmem-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"graphmem": {
"command": "uvx",
"args": [
"graphmem-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"graphmem": {
"type": "stdio",
"command": "uvx",
"args": [
"graphmem-mcp"
]
}
}
}需要你填写的值
GRAPHMEM_DB_PATHenvPath to the SQLite database file. Defaults to .graphmem/graph.db relative to the working directory.GRAPHMEM_EMBEDDING_MODELenvsentence-transformers model ID used for semantic search. Defaults to all-MiniLM-L6-v2, downloaded on first use.GRAPHMEM_TRAVERSAL_NODE_BUDGETenvMaximum entities visited by a single graph traversal. Defaults to 5000.GRAPHMEM_LOG_LEVELenvLogging verbosity: DEBUG, INFO, WARNING, ERROR, or CRITICAL. Defaults to WARNING.
说明仍为英文原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 Sathvik-1007 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于4个月前
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 6118 个服务器的 76%
- 发布到注册中心的时间比此分类中其他 6118 个服务器的 22% 更新
- 基础检查结果等于或优于此分类中其他 6118 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Graph-Mem 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于4个月前,最新版本(1.0.0)于4个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, OpenSEO
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
OpenSEO
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Graph-Mem MCP
Persistent knowledge graph memory for AI agents and IDEs
Graph-Mem MCP is a universal MCP server that gives any agent or IDE persistent, structured memory through a knowledge graph. It combines graph storage, semantic vector search, and multi-hop traversal in a single package — install it, add it to your MCP config, and your agent gains memory that survives across sessions. It works everywhere MCP does.
Built To Be Trusted With Your Data
| 1055 tests | Property-based against a brute-force reference, plus fuzzing on every parser |
| mypy strict | Clean, enforced in CI — not just configured |
| Authenticated UI | Host + Origin allow-lists and a session token; a cross-origin write is a 403, verified against a running server |
| Bounded | Every traversal, search, and list response has a named, configurable cap and reports truncation |
| Honest docs | Performance claims come with measurements and a reproducible benchmark; known gaps are written down |
Works With
graph-mem is a standard MCP server, so it works with any MCP-compatible agent, IDE, or framework. graph-mem install additionally writes the skill file straight into the right place for these 13, each at a path cited against the vendor's own documentation:
Claude Code OpenCode Cursor Windsurf Codex CLI
Gemini CLI GitHub Copilot Amp Kiro Roo Code
Continue Antigravity Droid (Factory) add yours →
Using something else? The MCP config below is all you need; the skill file is a convenience, not a requirement. Adding your agent to the installer takes a documented path and about ten lines — see Adding an Agent.
What is this?
AI agents forget everything between sessions. They re-read files, re-discover architecture, and repeat mistakes. Graph-Mem MCP solves this by providing persistent, per-project knowledge graphs that any MCP-compatible agent can read and write to. The graph builds organically as the agent works — extracting entities, decisions, and relationships from every conversation. It runs as a standard MCP server with 28 tools that plug into any agent, IDE, or framework that supports the Model Context Protocol.
Why a graph, not just a vector store?
Vector search finds _similar_ things. Graphs find _connected_ things. When an agent asks "what depends on the auth service?", a vector store returns text that mentions auth. A knowledge graph traverses the actual dependency edges and returns every upstream consumer — even ones that never mention "auth" in their description. Graph-Mem gives you both: vector similarity for fuzzy discovery, graph traversal for structural queries.
Use Cases
- Agent memory — Give any AI coding agent persistent context across sessions
- IDE integration — Add knowledge graph tools to Cursor, Windsurf, Copilot, or any MCP-enabled IDE
- Agent building — Use as the memory layer when building custom AI agents and workflows
- Research & knowledge management — Build structured knowledge bases with semantic search
- Multi-project context — Maintain separate knowledge graphs per project with multi-graph support
Quick Start
1. Install:
pip install graphmem-mcp
Or run it without installing — uvx fetches and isolates it the way npx does for Node:
uvx --from graphmem-mcp graph-mem server
Listed in the official MCP Registry as io.github.Sathvik-1007/graphmem-mcp, so MCP-aware clients can discover and install it directly.
2. Install the skill for your agent:
graph-mem install claude # Claude Code
graph-mem install opencode # OpenCode graph-mem install codex # Codex CLI graph-mem install gemini # Gemini CLI graph-mem install cursor # Cursor graph-mem install windsurf # Windsurf graph-mem install amp # Amp graph-mem install antigravity # Antigravity graph-mem install copilot # GitHub Copilot graph-mem install kiro # Kiro graph-mem install roocode # Roo Code graph-mem install continue # Continue graph-mem install droid # Droid (Factory)
This writes a skill file that teaches your agent how to use all 28 MCP tools — when to search, when to add entities, naming conventions, and common workflows.
3. Configure MCP by adding this to your agent's MCP config:
{
"mcpServers": { "graph-mem": { "command": "graph-mem", "args": ["server"] } } }
With full customization:
{
"mcpServers": { "graph-mem": { "command": "graph-mem", "args": [ "server", "--project-dir", "/path/to/my/project", "--embedding-model", "sentence-transformers/all-mpnet-base-v2", "--use-onnx", "--cache-size", "20000", "--log-level", "INFO" ] } } }
That's it. Your agent now has persistent memory. Verify by asking it to run read_graph().
One-Prompt Setup
Paste this into your agent's chat to get started immediately:
I want you to give yourself persistent memory using graph-mem. Run the following:
pip install graphmem-mcp graph-mem install claude # or: opencode, codex, gemini, cursor, windsurf, amp,
antigravity, copilot, kiro, roocode, continue, droid
This installs a skill file that teaches you how to use all 28 MCP tools. The server should already be configured in your MCP config. If not, add it:
{ "mcpServers": { "graph-mem": { "command": "graph-mem", "args": ["server", "--project-dir", "/path/to/your/project"] } } }
Now start using the knowledge graph:
- read_graph() to see current state
- search_nodes("relevant topic") to find existing knowledge
- add_entities, add_relationships, add_observations as you learn things
- update_observation / update_relationship to fix mistakes in-place
- open_dashboard() to explore the graph visually in your browser
- At session end, capture anything important you discovered
Your goal: build a rich knowledge graph of this project so future sessions start with full context instead of from zero. Search before adding to avoid duplicates. Be specific with entity names and types.
Installation
Option 1: pip (Recommended)
pip install graphmem-mcp
graph-mem server
Option 2: uvx (zero pre-install)
uvx --from graphmem-mcp graph-mem server
uvx downloads the package into an isolated environment and runs it in one command. Nothing to pre-install beyond uv.
Option 3: From source
git clone https://github.com/Sathvik-1007/GraphMem-MCP
cd graph-mem pip install -e ".[full,dev]" graph-mem server
Optional extras
pip install "graphmem-mcp[embeddings]" # sentence-transformers for local embeddings
pip install "graphmem-mcp[onnx]" # ONNX runtime for embedding inference pip install "graphmem-mcp[ui]" # aiohttp for interactive graph visualisation pip install "graphmem-mcp[full]" # all of the above
Tools
Graph-Mem exposes 28 MCP tools — ten for writing, nine for reading, four for maintenance, four for multi-graph management, and one utility. Full CRUD on every primitive: entities, relationships, and observations can all be created, read, updated, and deleted.
Write Tools (10)
| Tool | Description |
|---|---|
add_entities | Batch-create entities with optional observations; auto-merges on name conflict; returns quality screening hints |
add_relationships | Create typed, directed edges between entities; merges duplicates by max weight |
add_observations | Attach factual statements to entities with optional source provenance |
update_entity | Modify entity name, description, properties, or type in-place (rename with collision check) |
update_relationship | Change weight, type, or properties of an existing edge without delete+re-create |
update_observation | Edit observation text content in-place with automatic embedding recompute |
delete_entities | Remove entities with cascade to relationships, observations, and embeddings |
delete_relationships | Remove specific edges between entities, optionally filtered by type |
delete_observations | Remove specific observations by ID with ownership validation |
merge_entities | Combine duplicate entities: moves observations and relationships, deduplicates edges |
Read Tools (9)
| Tool | Description |
|---|---|
search_nodes | Hybrid semantic + full-text search with RRF fusion ranking |
search_observations | Semantic search directly over observation text content |
find_connections | Multi-hop BFS graph traversal with direction and type filters |
get_entity | Full entity details with all observations and relationships |
list_entities | Browse/paginate all entities with optional type filter |
list_relationships | Browse/paginate relationships with entity, type, or combined filters |
read_graph | Graph statistics: counts, type distributions, most-connected entities |
get_subgraph | Extract neighborhood subgraph around seed entities |
find_paths | Find shortest paths between two entities via BFS |
Maintenance Tools (4)
| Tool | Description |
|---|---|
graph_health | Health stats: counts, hotspots, missing descriptions, suggested actions |
compact_observations | Atomic observation compaction — delete old and add merged summaries in one step |
suggest_connections | Find semantically similar entities for a node to connect to |
audit_graph | Full quality screening — disconnected nodes, missing data, weak links. Returns structured findings plus a rendered report field |
Visualization (1)
| Tool | Description |
|---|---|
open_dashboard | Launch interactive graph visualisation UI and return its URL |
Multi-Graph Tools (4)
| Tool | Description |
|---|---|
list_graphs | List all named graphs in the .graphmem/ directory with entity/relationship/observation counts |
create_graph | Create a new named graph (.graphmem/ .db) |
switch_graph | Switch the active graph — hot-swaps storage, search, and graph engines |
delete_graph | Delete a named graph (cannot delete the currently active graph) |
Multi-graph storage: Each named graph is a separate SQLite database in
.graphmem/. The default graph isgraph.db. Use--graphon CLI commands to target a specific graph.
Architecture
graph TD
Agent[Any MCP-Compatible Agent or IDE] --> Transport
subgraph Transport STDIO[stdio] SSE[SSE] HTTP[streamable-http] end
Transport --> Tools
subgraph Tools[Graph-Mem MCP Server — 28 MCP Tools] Write[Write · 10 tools] Read[Read · 9 tools] Maint[Maintenance · 4 tools] Graph[Multi-Graph · 4 to