Local-first memory for coding agents. Stores scoped memories and an entity graph in SQLite, then recalls with local embeddings + Personalized PageRank (HippoRAG 2-style). Single Rust binary, MCP over stdio for Claude Code, Codex, OpenCode and pi.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add graphmem -- npx -y @sonic182/graphmem~/.codex/config.toml
[mcp_servers.graphmem]
command = "npx"
args = ["-y", "@sonic182/graphmem"]
# codex mcp add graphmem -- npx -y @sonic182/graphmem~/.cursor/mcp.json
{
"mcpServers": {
"graphmem": {
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}.vscode/mcp.json
{
"servers": {
"graphmem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"graphmem": {
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"graphmem": {
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"graphmem": {
"command": "npx",
"args": [
"-y",
"@sonic182/graphmem"
]
}
}
}