Mcp Knowledge Graph
MCP server enabling persistent memory for Claude through a local knowledge graph - fork focused on local development
Overview
The Knowledge Graph Memory Server (MCP) enables persistent memory for the Claude AI by utilizing a local knowledge graph that allows customization of memory paths.
To use it, you need to set up the Clara desktop configuration, specify a memory path if desired, and utilize the designated API functions for managing entities and relations within the knowledge graph.
- Persistent memory through a customizable local knowledge graph - Ability to create, read, update, and delete entities and relations - Supports comprehensive search capabilities across nodes - Interaction management through customizable prompts for Claude AI integration
- Storing user information for personalized AI interactions
- Managing relationships and observations relevant to the user
- Enhancing AI memory functionality to improve user experiences over multiple sessions
Add to your AI client
Use these steps to connect Mcp Knowledge Graph in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-knowledge-graph-shaneholloman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-knowledge-graph-shaneholloman"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-knowledge-graph-shaneholloman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-knowledge-graph-shaneholloman"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-knowledge-graph-shaneholloman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-knowledge-graph-shaneholloman"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-knowledge-graph-shaneholloman": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-knowledge-graph-shaneholloman"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-knowledge-graph-shaneholloman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-knowledge-graph-shaneholloman"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-knowledge-graph-shaneholloman": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-knowledge-graph-shaneholloman"
]
}
}
}FAQ
How does the server store information?
Information is stored as entities, each with a unique identifier and a list of observations in a directed relationship format.
Can I specify where the memory data is saved?
Yes, you can customize the memory path in the configuration settings.
Is it necessary to include all details when creating an entity?
No, only a unique name and entity type are required; observations can be added later.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":247,"uuid":"8069e594-ded2-4d35-9657-3ac7b0fb0ed4","name":"mcp-knowledge-graph","title":"Mcp Knowledge Graph","description":"MCP server enabling persistent memory for Claude through a local knowledge graph - fork focused on local development","avatar_url":"https://avatars.githubusercontent.com/u/1563909?v=4","created_at":"2024-12-13T10:43:36.382+00:00","updated_at":"2024-12-13T12:28:11.538+00:00","status":"created","author_name":"shaneholloman","author_avatar_url":"https://avatars.githubusercontent.com/u/1563909?v=4","tags":"typescript,mcp,knowledge-graph,claude-ai,ai-memory,memory-server","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/shaneholloman/mcp-knowledge-graph","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/shaneholloman/mcp-knowledge-graph/raw/main/img/server-name.png","type":null,"metadata":"{\"star\":\"182\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-05-07 19:23:50\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]