Long-term memory MCP server for AI coding agents. SQLite + FTS5 + vector search, CodeGraph, error learning, compaction survival. Beats Mem0 on benchmarks. No cloud, no API key.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add remem-local-first-mcp-memory-codegraph-w -- npx -y remem-mcp~/.codex/config.toml
[mcp_servers.remem-local-first-mcp-memory-codegraph-w]
command = "npx"
args = ["-y", "remem-mcp"]
# codex mcp add remem-local-first-mcp-memory-codegraph-w -- npx -y remem-mcp~/.cursor/mcp.json
{
"mcpServers": {
"remem-local-first-mcp-memory-codegraph-w": {
"command": "npx",
"args": [
"-y",
"remem-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"remem-local-first-mcp-memory-codegraph-w": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"remem-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"remem-local-first-mcp-memory-codegraph-w": {
"command": "npx",
"args": [
"-y",
"remem-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"remem-local-first-mcp-memory-codegraph-w": {
"command": "npx",
"args": [
"-y",
"remem-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"remem-local-first-mcp-memory-codegraph-w": {
"command": "npx",
"args": [
"-y",
"remem-mcp"
]
}
}
}