Persistent memory for Claude through a local knowledge graph, with a configurable storage location.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add knowledge-graph-itseasy21 --env MEMORY_FILE_PATH='<MEMORY_FILE_PATH>' -- npx -y @itseasy21/mcp-knowledge-graph~/.codex/config.toml
[mcp_servers.knowledge-graph-itseasy21]
command = "npx"
args = ["-y", "@itseasy21/mcp-knowledge-graph"]
env = { MEMORY_FILE_PATH = "<MEMORY_FILE_PATH>" }
# codex mcp add knowledge-graph-itseasy21 --env MEMORY_FILE_PATH='<MEMORY_FILE_PATH>' -- npx -y @itseasy21/mcp-knowledge-graph~/.cursor/mcp.json
{
"mcpServers": {
"knowledge-graph-itseasy21": {
"command": "npx",
"args": [
"-y",
"@itseasy21/mcp-knowledge-graph"
],
"env": {
"MEMORY_FILE_PATH": "<MEMORY_FILE_PATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"knowledge-graph-itseasy21": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@itseasy21/mcp-knowledge-graph"
],
"env": {
"MEMORY_FILE_PATH": "<MEMORY_FILE_PATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"knowledge-graph-itseasy21": {
"command": "npx",
"args": [
"-y",
"@itseasy21/mcp-knowledge-graph"
],
"env": {
"MEMORY_FILE_PATH": "<MEMORY_FILE_PATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"knowledge-graph-itseasy21": {
"command": "npx",
"args": [
"-y",
"@itseasy21/mcp-knowledge-graph"
],
"env": {
"MEMORY_FILE_PATH": "<MEMORY_FILE_PATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"knowledge-graph-itseasy21": {
"command": "npx",
"args": [
"-y",
"@itseasy21/mcp-knowledge-graph"
],
"env": {
"MEMORY_FILE_PATH": "<MEMORY_FILE_PATH>"
}
}
}
}Environment variables
MEMORY_FILE_PATH
Replace the placeholders with your own credentials and keep them out of version control.