remem-mcp — Local-first MCP Memory + CodeGraph + Wiki MCP server
Local-first memory for AI coding agents. Memory + CodeGraph + Wiki in one SQLite file.
8 stars299 downloads/wk
Reviews
Write oneNobody has reviewed remem-mcp — Local-first MCP Memory + CodeGraph + Wiki yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
remem-mcp — Local-first MCP Memory + CodeGraph + Wiki tools (28, 5 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
adrRecord an Architecture Decision Record (ADR). Use this tool when you make a technical decision that future agents should know about. The ADR is stored as a structured capture and can be recalled by any agent working on the same project.
captureSave a decision, a learning, or a task outcome to memory. Call this tool after you complete a non-trivial task, make a decision, or fix a bug with a known root cause. You can capture a single text string, or a list of role-based conversation messages.
codegraph_calleesFind all callees of a symbol \u2014 what does this function call? Returns the called functions with file paths and line numbers. Requires the symbol ID from codegraph_search.
codegraph_callersFind all callers of a symbol \u2014 who calls this function? Returns the calling functions with file paths and line numbers. Requires the symbol ID from codegraph_search.
codegraph_impactPerform impact analysis: if I change this symbol, what else might be affected? Traverses the call graph upward (callers of callers) to find all potentially impacted code. Requires the symbol ID from codegraph_search.
codegraph_indexIndex a file or directory into the code graph. Extracts symbols (functions, classes, methods), call relationships, and imports. Supports TypeScript, JavaScript, Python, Go, Rust, Java, C, C++, C#. Run this before using codegraph_search, codegraph_callers, codegraph_callees, or codegraph_impact.
codegraph_listList all symbols in a file or directory. Returns symbols sorted by line number. Use this to get an overview of what a file contains.
codegraph_searchSearch for code symbols by name. Returns matching functions, classes, methods, etc. with file paths and line numbers. Use this to find where a function or class is defined.
consolidateFind and merge duplicate or near-duplicate memories. Use this when you suspect redundant captures (e.g. same decision captured twice). Returns groups of similar captures. Set confirm=true to merge them.
explain_recallExplain WHY a memory was recalled for a given query. Shows the BM25 score, vector score, RRF fused score, rank, and matching keywords for each result. Use this to debug unexpected recall results or to understand the retrieval pipeline. If you provide a capture_id, the tool explains why that specific capture was or was not retrieved.
forgetwrite actionDelete specific memory entries. Use this tool only when the user requests a deletion. Do not auto-forget.
handoffwrite actionWrite a structured handoff packet for the next agent session. Call this tool at the end of a session, or before you switch to a different agent. The next agent calls recall to load this packet and continue without re-reading files. This saves 60-85% of tokens compared to re-discovering context.
knowledge_createwrite actionRegister a knowledge asset (wiki or code-graph) for the team. The asset metadata is stored locally. The actual content is processed by an external knowledge service.
knowledge_deletewrite actionDelete one or more knowledge assets by ID.
knowledge_getGet a single knowledge asset by ID.
knowledge_listList knowledge assets for a team. Optionally filter by type.
recallRetrieve relevant past memory. Call this tool before you answer the user. Use it when the user references past work or when the task needs project context.
relatedFind memories connected to a given memory by shared tags, project, or co-occurrence. Use this after recall or search to discover related context you might have missed. Inspired by graph spreading-activation (Mnema pattern).
resolveResolve a conflict between two captures. Mark one as the winner and the other as stale. Call this tool when capture reports a conflict between two memories.
searchSearch memory by keyword or by semantic similarity. Use this tool when recall is too broad and you need specific facts.
skill_getGet a single skill by ID, including its full content and version.
skill_listList skills bound to a team. Optionally filter by agent.
skill_searchSearch skills by keyword. Returns matching skills with descriptions.
updatewrite actionUpdate an existing memory entry. Use this when a capture needs corrections (wrong info, missing tags, needs rewording). Preserves the original ID and created_at.
wiki_getGet a wiki page by ID, including its links and backlinks. Use this to read a specific page and see what it links to and what links to it.
wiki_ingestIngest markdown documentation files into the wiki. Parses frontmatter, headings, [[wikilinks]], and [text](url) links to build a structured page graph. Supports .md and .markdown files.
wiki_outdatedFind wiki pages whose source file has changed since the last ingest. Returns pages that need re-ingesting because the source markdown was modified or deleted.
wiki_searchSearch wiki pages by content. Returns matching pages with title, file path, and a snippet. Use this to find documentation relevant to a topic.
Public scan report
scanner v0.1.9 · 2026-09-23 · same rubric, same numbers if you re-run it
- Code scan6 source files scanned15/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 5 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Findings (2)
- mediumnpm install lifecycle script present
install.script - mediumnpm install lifecycle script present
install.scriptpackage.json: … "start": "node dist/index.js", "postinstall": "node scripts/postinstall.js", "pre…
What the publisher says
From the remem-mcp — Local-first MCP Memory + CodeGraph + Wiki repository's README, as published. We do not edit it. Read it on GitHub
remem-mcp
Your coding agent stops repeating the same mistakes.
Local-first memory that survives context compaction. Learns from every error, injects fixes before the next attempt, and syncs to your git repo so your whole team shares it.
No API key. No cloud. No database server. Just a SQLite file.
Install
npx remem-mcp setupAuto-detects ZCode, Claude Code, Cursor, Devin, Codex. Registers MCP server + hooks.
Quick start
- Restart your agent (quit and reopen)
- Ask: "what do you remember?"
- If agent recalls past context = memory working
In your agent, you can say:
- "index the code in src" → CodeGraph indexes symbols
- "find who calls function X" → caller analysis
- "what do you remember?" → recall past context
What happens automatically
You don't run any commands. The agent calls recall() before answering and capture() after work — the skill tells it to.
How it works
AI Agent (ZCode / Claude Code / Devin / Cursor / Codex)
│
├── MCP tools ──▶ recall, capture, codegraph_*, wiki_*, feedback
│
└── Hooks ──▶ SessionStart, UserPromptSubmit,
PostToolUse, PostCompaction, SessionEnd
│
▼
SQLite (memory.db)
L0 captures → L1 atoms → L2 scenarios → L3 persona
(raw) (facts) (summaries) (preferences)
CodeGraph: symbols + calls + imports (tree-sitter, 9 languages)
Memory links: Hebbian co-retrieval (frequently co-retrieved = stronger)No LLM API key needed — rule-based extraction + keyword grouping.
CodeGraph
Structural code indexing via tree-sitter. The agent uses codegraph_search instead of grep to find symbols.
npx remem-mcp index --path src # index a directory
npx remem-mcp search-code --query "parseTar" # find symbols
npx remem-mcp callers <id> # who calls this?
npx remem-mcp impact <id> # blast radius9 languages: TS/JS/Python/Go/Rust/Java/C/C++/C#. 6-strategy call resolution (import-map → same-module → unique-name → suffix → fuzzy). Stdlib calls filtered out.
Why it's different
Useful commands
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
Runs npx -y remem-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add remem-mcp -- npx -y remem-mcp
remem-mcp — Local-first MCP Memory + CodeGraph + Wiki: common questions
- Is remem-mcp — Local-first MCP Memory + CodeGraph + Wiki MCP server safe?
- Mostly: it is graded B (77/100). Read the remem-mcp — Local-first MCP Memory + CodeGraph + Wiki safety report
- How do I install remem-mcp — Local-first MCP Memory + CodeGraph + Wiki?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does remem-mcp — Local-first MCP Memory + CodeGraph + Wiki need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is remem-mcp — Local-first MCP Memory + CodeGraph + Wiki maintained?
- The last commit was 7 days ago (2026-09-18). The latest release is v0.5.18.
- What can I use instead of remem-mcp — Local-first MCP Memory + CodeGraph + Wiki?
- Servers from other publishers that do the same job: Remem MCP server, Myc MCP server and skillmem MCP server. Compare all remem-mcp — Local-first MCP Memory + CodeGraph + Wiki alternatives.
Alternatives to remem-mcp — Local-first MCP Memory + CodeGraph + Wiki
Same job from other publishers: the closest match first, then the best rated.
- RememLocal-first automatic memory for Claude Code and Codex: capture, distill, recall from SQLite.not reviewedEstablishedB
- MycTask queue, decisions and memory for coding agents. Local SQLite, no network. Requires Bun.not reviewedGrowingC
- skillmemSkill memory for coding agents: learn, recall, reinforce, decay. Local SQLite, no API key.not reviewedGrowingA
- KEPTA — Agent MemoryLocal memory for AI agents. One SQLite file on your machine — no cloud, no account.not reviewedGrowingA
- Th MemoryLocal long-term memory MCP server (SQLite) for AI coding agents — OpenCode, Claude Code, Cursornot reviewedGrowingA