Local-first memory for Claude Code and any MCP client: hybrid search + knowledge graph in one SQLite file, $0/token, no cloud.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add memory-graph -- npx -y mcp-memory-graph~/.codex/config.toml
[mcp_servers.memory-graph]
command = "npx"
args = ["-y", "mcp-memory-graph"]
# codex mcp add memory-graph -- npx -y mcp-memory-graph~/.cursor/mcp.json
{
"mcpServers": {
"memory-graph": {
"command": "npx",
"args": [
"-y",
"mcp-memory-graph"
]
}
}
}.vscode/mcp.json
{
"servers": {
"memory-graph": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-memory-graph"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"memory-graph": {
"command": "npx",
"args": [
"-y",
"mcp-memory-graph"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"memory-graph": {
"command": "npx",
"args": [
"-y",
"mcp-memory-graph"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"memory-graph": {
"command": "npx",
"args": [
"-y",
"mcp-memory-graph"
]
}
}
}