Remem MCP Server

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

Remote serverstreamable-httpPython

What is the Remem MCP server?

Local-first automatic memory for Claude Code and Codex: capture, distill, recall from SQLite. That is what the remem mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

remem is a single Rust binary that automatically captures, distills, searches, and injects project memory across Claude Code, OpenAI Codex, and Codex CLI sessions. It keeps decisions, bug-fix rationale, project patterns, and preferences available through hooks, MCP, CLI, and REST without requiring an external database.

  • Search past decisions, bug fixes, and rationale with remem search
  • Inspect why a memory was injected with remem why
  • Keep memory local with SQLite and SQLCipher
  • Use MCP and REST APIs from coding agents and local tools
  • Track usage and background memory cost
  • Avoid hand-maintaining large MEMORY.md or CLAUDE.md files

The tools it exposes

The server publishes 13 tools. What each one is for:

  • Bug — fix rationale, preferences, and project patterns are searchable
  • Current — memory contracts expose staleness, temporal/as-of truth, citation
  • User — context controls keep personal claims, profile summaries, suppression
  • Homebrew — brew install majiayu000/tap/remem
  • crates.io — cargo install remem-ai --bin remem
  • Failure — loop learning**: raw transcripts that contain both concrete
  • Capability — Claude Code / Codex CLI
  • Windows — Supported
  • Capture — Automatic hooks + LLM distillation
  • Agents — Claude Code + Codex, one shared store
  • Storage — Local SQLite, optional SQLCipher encryption
  • Retrieval — FTS + optional embeddings via CLI, MCP, REST

Getting it running

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

What it needs from you

Configuration is passed through the environment: OPENAI_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Plenty of knowledge and memory servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Remem's toolset — Bug, Current, User and 10 more — is a fair guide to whether it matches your workflow. It is maintained by majiayu000; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 13 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Remem.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
Bugfix rationale, preferences, and project patterns are searchable.
Currentmemory contracts expose staleness, temporal/as-of truth, citation
Usercontext controls keep personal claims, profile summaries, suppression
Homebrewbrew install majiayu000/tap/remem
crates.iocargo install remem-ai --bin remem
Failureloop learning**: raw transcripts that contain both concrete
CapabilityClaude Code / Codex CLI
WindowsSupported
CaptureAutomatic hooks + LLM distillation
AgentsClaude Code + Codex, one shared store
StorageLocal SQLite, optional SQLCipher encryption
RetrievalFTS + optional embeddings via CLI, MCP, REST
RuntimeSingle Rust binary

How to install the Remem MCP server

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

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Remem to Bug.
  • Use Remem to Current.
  • Use Remem to User.

Frequently asked questions

It connects Remem to MCP-compatible AI assistants such as Claude and Cursor, exposing 13 tools (Bug, Current, User, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Remem directly.