Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Persistent knowledge-graph memory for AI agents, with local semantic search. No API keys.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
GRAPHMEM_DB_PATH, GRAPHMEM_EMBEDDING_MODEL, GRAPHMEM_TRAVERSAL_NODE_BUDGET, GRAPHMEM_LOG_LEVEL你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"graphmem": {
"command": "uvx",
"args": [
"graphmem-mcp"
],
"env": {
"GRAPHMEM_DB_PATH": "your-value",
"GRAPHMEM_EMBEDDING_MODEL": "your-value",
"GRAPHMEM_TRAVERSAL_NODE_BUDGET": "your-value",
"GRAPHMEM_LOG_LEVEL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add graphmem --env GRAPHMEM_DB_PATH=your-value --env GRAPHMEM_EMBEDDING_MODEL=your-value --env GRAPHMEM_TRAVERSAL_NODE_BUDGET=your-value --env GRAPHMEM_LOG_LEVEL=your-value -- uvx graphmem-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"graphmem": {
"command": "uvx",
"args": [
"graphmem-mcp"
],
"env": {
"GRAPHMEM_DB_PATH": "your-value",
"GRAPHMEM_EMBEDDING_MODEL": "your-value",
"GRAPHMEM_TRAVERSAL_NODE_BUDGET": "your-value",
"GRAPHMEM_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"graphmem": {
"type": "stdio",
"command": "uvx",
"args": [
"graphmem-mcp"
],
"env": {
"GRAPHMEM_DB_PATH": "your-value",
"GRAPHMEM_EMBEDDING_MODEL": "your-value",
"GRAPHMEM_TRAVERSAL_NODE_BUDGET": "your-value",
"GRAPHMEM_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
GRAPHMEM_DB_PATH envGRAPHMEM_EMBEDDING_MODEL envGRAPHMEM_TRAVERSAL_NODE_BUDGET envGRAPHMEM_LOG_LEVEL env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Sathvik-1007 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.0)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况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、图片和脚本已被移除。链接会离开本站。
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.
| 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 |
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.
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.
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.
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().
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,
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:
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.
pip install graphmem-mcp
graph-mem server
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.
git clone https://github.com/Sathvik-1007/GraphMem-MCP
cd graph-mem pip install -e ".[full,dev]" graph-mem server
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
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.
| 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 |
| 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 |
| 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 |
| Tool | Description |
|---|---|
open_dashboard | Launch interactive graph visualisation UI and return its URL |
| 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.
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
只显示了开头部分;其余内容请在仓库中阅读