# Remem

> Remem is an open-source MCP server for knowledge and memory. Local-first memory for Claude Code and Codex: capture, distill and recall from SQLite. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, self-hosted
- **Website:** https://majiayu000.github.io/remem/
- **Repository:** https://github.com/majiayu000/remem
- **MCP Registry name:** io.github.majiayu000/remem
- **Categories:** knowledge and memory, developer tools
- **Listing updated:** 2026-11-16

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `save_memory`: Records a decision or note immediately as a memory.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/remem
