Persistent knowledge-graph memory for AI agents, with local semantic search. No API keys.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Graph Mem.
add_entitiesBatch-create entities with optional observations; auto-merges on name conflict; returns quality screening hints
add_relationshipsCreate typed, directed edges between entities; merges duplicates by max weight
add_observationsAttach factual statements to entities with optional source provenance
update_entityModify entity name, description, properties, or type in-place (rename with collision check)
update_relationshipChange weight, type, or properties of an existing edge without delete+re-create
update_observationEdit observation text content in-place with automatic embedding recompute
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:
Or run it without installing β uvx fetches and isolates it the way npx
does for Node:
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:
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:
With full customization:
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:
uvx downloads the package into an isolated environment and runs it in one command. Nothing to pre-install beyond uv.
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 |
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/graph-mem)<a href="https://allmcps.com/mcp/graph-mem"><img src="https://allmcps.com/api/badge/graph-mem?style=directory" alt="Graph Mem on AllMCPs" /></a>