Remem Mcp — Local First MCP Memory + CodeGraph + Wiki logo

Remem Mcp — Local First MCP Memory + CodeGraph + Wiki

Local SQLite memory, code indexing, and wiki tools for AI coding agents, with automatic context capture and recall.

Install Remem Mcp — Local First MCP Memory + CodeGraph + Wiki

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "remem-mcp-local-first-mcp-memory-codegraph-wiki": {
      "command": "npx",
      "args": [
        "-y",
        "remem-mcp"
      ],
      "env": {
        "REMEM_DB_PATH": "YOUR_VALUE_HERE",
        "REMEM_GLOBAL_SESSION_KEY": "YOUR_VALUE_HERE",
        "REMEM_FLOW": "YOUR_VALUE_HERE",
        "REMEM_QUIET": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env REMEM_DB_PATH=YOUR_VALUE_HERE --env REMEM_GLOBAL_SESSION_KEY=YOUR_VALUE_HERE --env REMEM_FLOW=YOUR_VALUE_HERE --env REMEM_QUIET=YOUR_VALUE_HERE --transport stdio remem-mcp-local-first-mcp-memory-codegraph-wiki -- npx -y remem-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y remem-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

remem-mcp — Local-first MCP Memory + CodeGraph + Wiki MCP server gives coding agents persistent memory, structural code navigation, and wiki tools backed by one local SQLite file. It uses MCP tools and lifecycle hooks to recall context, capture errors and decisions, and re-inject memory after context compaction. CodeGraph indexes symbols, imports, and calls across nine programming languages. Reach for it when an agent needs project-local memory without an API key, cloud service, or separate database server.

Use cases

  • Retain coding-agent decisions and error fixes across sessions
  • Index a repository and search symbols by structure
  • Find callers and estimate a function's impact area
  • Share selected memory through a Git repository
  • Reinject context after agent compaction

Key features

  • Local SQLite memory storage
  • Automatic capture and recall hooks
  • CodeGraph indexing for nine languages
  • Hybrid memory retrieval with co-retrieval links
  • Wiki and feedback MCP tools
  • Git-based memory export

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 82d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 18d ago via OSV.dev · remem-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars9Stargazers on the source repository.
npm downloads599Package downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Remem Mcp — Local First MCP Memory + CodeGraph + Wiki works

What remem-mcp does

remem-mcp — Local-first MCP Memory + CodeGraph + Wiki combines agent memory, code structure indexing, and wiki capabilities in a local SQLite database. It is intended for AI coding agents that need to retain useful context across sessions and recover information after context compaction.

The memory system records errors, decisions, facts, summaries, and persona information. It can automatically capture failed commands and session information, then make relevant memories available during later prompts. Memory is organized through multiple levels, from raw captures to extracted facts, scenario summaries, and preferences.

CodeGraph provides structural navigation over indexed source code. It records symbols, calls, and imports, allowing an agent to search for symbols, identify callers, and inspect an affected area rather than relying only on text search. Supported languages are TypeScript, JavaScript, Python, Go, Rust, Java, C, C++, and C#.

How it works

The agent communicates through MCP tools including recall, capture, CodeGraph tools, wiki tools, and feedback. Hooks can run at session start, prompt submission, after tool use, after context compaction, and session end. These events support context injection, error capture, memory re-injection, and background extraction or consolidation.

Memory retrieval uses hybrid BM25, vector, and entity search. Frequently co-retrieved memories receive stronger links through Hebbian co-retrieval. Extraction and keyword grouping are rule-based, so an external LLM API key is not needed.

CodeGraph indexing uses tree-sitter and six call-resolution strategies: import maps, same-module matches, unique names, suffixes, fuzzy matching, and filtering of standard-library calls. The command-line interface includes directory indexing, symbol search, caller lookup, and impact analysis.

Setup and configuration

Run npx remem-mcp setup to install the server and hooks. The setup command detects ZCode, Claude Code, Cursor, Devin, and Codex. After installation, restart the agent and ask what it remembers to check whether memory is available.

The optional configuration file is ~/.config/remem-mcp/config.json. By default, the database is stored at ~/.local/share/remem-mcp/memory.db. REMEM_DB_PATH changes that location. REMEM_GLOBAL_SESSION_KEY enables automatic reading of cross-project memory, while captures remain project-local unless explicitly saved with the global session key. REMEM_FLOW=full enables the unified flow, and REMEM_QUIET=1 suppresses hook feedback.

Run npx remem-mcp sync-export to write .remem-mcp/memory-export.jsonl, which can be committed to a Git repository for team sharing. A .remem.toml file can exclude paths such as node_modules, dist, .git, or minified JavaScript files from capture.

Tools and capabilities

  • Recall and capture project memory through MCP.
  • Index source directories and search indexed symbols.
  • Find callers and inspect a symbol's potential impact area.
  • Use wiki-related MCP tools.
  • Provide feedback to the memory system.
  • Check health, hooks, database state, and CodeGraph status with status.
  • Open the local viewer on port 7331 and inspect captured errors or recent entries.

Limitations and notes

remem-mcp — Local-first MCP Memory + CodeGraph + Wiki is local-first: the documented storage is a SQLite file, and no cloud database or API key is required. Cross-project reads require REMEM_GLOBAL_SESSION_KEY, and global capture requires an explicit global session request. Team sharing is file-based through the generated JSONL export and Git.

CodeGraph must be indexed before its structural searches can use repository symbols. Its call resolution uses heuristics, so results depend on the indexed code and the six supported resolution strategies. Configuration settings have defaults, making the configuration file optional.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Remem Mcp — Local First MCP Memory + CodeGraph + Wiki

remem-mcp — Local-first MCP Memory + CodeGraph + Wiki is an MCP server that gives AI coding agents local memory, CodeGraph indexing, and wiki capabilities backed by a SQLite file. It connects to project repositories and supported coding-agent clients, exposing recall, capture, codegraph, wiki, and feedback tools without an API key or cloud database.

Run `npx remem-mcp setup`, then restart your coding agent. The setup command registers the MCP server and hooks and auto-detects ZCode, Claude Code, Cursor, Devin, and Codex.

No, it does not require an LLM API key. Memory extraction and keyword grouping are rule-based, and the documented storage is a local SQLite file rather than a cloud database.

Run `npx remem-mcp index --path src` to index a directory. You can then search symbols, find callers, and inspect impact with the corresponding CodeGraph commands or MCP tools.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRemem Mcp — Local First MCP Memory + CodeGraph + Wiki AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/remem-mcp-local-first-mcp-memory-codegraph-wiki?style=directory)](https://allmcps.com/mcp/remem-mcp-local-first-mcp-memory-codegraph-wiki)
HTML Embed
<a href="https://allmcps.com/mcp/remem-mcp-local-first-mcp-memory-codegraph-wiki"><img src="https://allmcps.com/api/badge/remem-mcp-local-first-mcp-memory-codegraph-wiki?style=directory" alt="Remem Mcp — Local First MCP Memory + CodeGraph + Wiki on AllMCPs" /></a>