Skip to content
MCP server

Remem

Local-first memory for Claude Code and Codex: capture, distill and recall from SQLite

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.6.104
Listing updated
1 day ago

About Remem

Remem is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

remem gives coding agents memory that survives new sessions. It records raw session evidence through hooks, distills it in the background into decisions, bug-fix rationale and preferences, and serves compact memory back through hooks, MCP, a CLI and a localhost REST API. Everything lives in a local SQLite store, with SQLCipher encryption by default on fresh installs, a 0700 data directory, and a REST API bound to 127.0.0.1 that needs a local token.

Search fuses four channels, BM25, entities, temporal parsing and a LIKE fallback, merged with Reciprocal Rank Fusion, and is project-scoped to avoid leakage across projects. Memories carry source attribution, staleness labels, suppression and review queues. Background extraction uses an LLM and the CLI reports estimated token use and cost; the author's own 8-week ledger was $6.18 for one repository. The site says no state-of-the-art claim is made until its public benchmark gate passes.

It is a single Rust binary, MIT licensed, installed via Homebrew, npm, Cargo or a release installer, with an optional DeepSeek Harness adapter.

Install

Run in a terminal

claude mcp add remem -- npx -y @remem-ai/remem

Add to claude_desktop_config.json

{
  "mcpServers": {
    "remem": {
      "command": "npx",
      "args": [
        "-y",
        "@remem-ai/remem"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "remem": {
      "command": "npx",
      "args": [
        "-y",
        "@remem-ai/remem"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "remem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@remem-ai/remem"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "remem": {
      "command": "npx",
      "args": [
        "-y",
        "@remem-ai/remem"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "remem": {
      "command": "npx",
      "args": [
        "-y",
        "@remem-ai/remem"
      ]
    }
  }
}

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

save_memory
Records a decision or note immediately as a memory.

What it does

Automatic capture
Hooks record session evidence without manual saves.
Background distillation
An LLM summarizes evidence into durable memories.
Fused search
Combines BM25, entities, temporal parsing and a fallback.
Encrypted local store
SQLite with SQLCipher by default; REST bound to localhost.
Audit and review
Source attribution, staleness labels and injection audits.
Cost reporting
Reports estimated token usage and USD cost of its own calls.

Good for

  • Carry design decisions and bug root causes into a new coding session
  • Resume long work after context compaction
  • Search past session evidence for a project
  • Audit what memory was injected into a session

Pricing

Open source

Free, MIT licensed

Prices change. Check majiayu000.github.io before you buy.

Remem FAQ

Where is my memory stored?

Locally in SQLite, with SQLCipher encryption by default for fresh installs.

Which agents does it support?

Claude Code, OpenAI Codex and Codex CLI, with Cursor where supported.

Does it call an LLM?

Yes, for background extraction and summaries; it reports estimated usage and cost.

What licence is it?

MIT.

Is Remem free?

Yes. Remem is open source, so you can use and self-host it for free.

How do I add Remem to Claude Code?

Run this command in your terminal: claude mcp add remem -- npx -y @remem-ai/remem

What are the best alternatives to Remem?

The closest alternatives to Remem are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Remem

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools