Codemem logo

Codemem

by kunickiaj

Stores and recalls project-specific coding decisions across sessions, machines, and teammates through local memory and optional sync.

Install Codemem

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": {
    "kunickiaj-codemem": {
      "command": "npx",
      "args": [
        "-y",
        "codemem"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio kunickiaj-codemem -- npx -y codemem

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

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y codemem

No response to initialize.

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

kunickiaj/codemem provides persistent coding memory for OpenCode, Claude Code, Codex, and Pi, storing captured project context in SQLite. Hybrid retrieval combines FTS5 BM25 keyword search with sqlite-vec semantic search, while automatic integrations can inject relevant memories into later prompts. Optional peer-to-peer sync and project sharing extend selected memories across machines and teammates. Reach for it when agents need continuity about decisions, dead ends, fixes, and repository-specific constraints.

Use cases

  • Recall decisions from earlier coding sessions
  • Share selected project knowledge across machines
  • Inject repository-specific context into OpenCode prompts
  • Search captured session history with an MCP client

Key features

  • Persistent SQLite-backed coding memory
  • Hybrid BM25 and semantic retrieval
  • Automatic OpenCode context injection
  • Optional peer-to-peer sync and project sharing
  • Shared project store across multiple coding agents
  • OAuth-protected remote MCP access

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.

20/20 checks healthy over the last 48d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11h ago via OSV.dev · codemem (npm)

Adoption & maintenance

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

GitHub stars84Stargazers on the source repository.
npm downloads5.9kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Codemem works

What kunickiaj/codemem MCP server does

kunickiaj/codemem gives coding agents access to persistent project memory. It records decisions, discoveries, failed approaches, fixes, and repository-specific pitfalls so later sessions can recover useful context instead of starting from scratch. The broader codemem system supports OpenCode, Claude Code, Codex, and the Pi coding agent, with multiple agents sharing a project-scoped store.

Memory is local-first: data is kept in SQLite on the developer's machine. Selected project memories can also be synchronized between machines or shared with a teammate or Team. A local viewer at http://localhost:38888 provides access to stored memories, sessions, and observer output.

How it works

Captured coding activity is processed by an observer that turns session context into memories. The observer can use an OpenCode account, an API key, or a local Claude/Codex session selected in Settings. Retrieval uses both FTS5 BM25 lexical search and sqlite-vec semantic search, then merges and reranks the results.

For OpenCode, the plugin can inject relevant context into prompts automatically. It avoids repeating unchanged memories already present in the OpenCode context. Claude Code has plugin support, while Codex and Pi participate in the shared project store. Pi also has native memory tools and does not require MCP for its codemem integration. The MCP interface exposes memory_session_search.

Setup and configuration

The documented quick start requires Node.js 24.15 or newer and npm or pnpm. Native database support covers macOS x64 and arm64, Linux x64 and arm64, and Windows x64; Linux requires glibc 2.34+ or musl. On Linux, set ONNXRUNTIME_NODE_INSTALL=skip before the first package installation to avoid downloading the unused GPU provider while retaining CPU inference.

For OpenCode, run npx -y codemem setup --opencode-only, then restart OpenCode. The setup configures one plugin entry that works with both supported OpenCode host generations. Verification can use npx -y codemem memory stats and npx -y codemem diagnostics capture status.

Advanced single-user deployments can expose an OAuth-protected Streamable HTTP MCP endpoint to configured remote clients. The local viewer should remain private.

Tools and capabilities

  • Search session memory through the memory_session_search MCP tool.
  • Capture coding activity and build reusable memories through supported host integrations.
  • Inject relevant memory into OpenCode prompts automatically.
  • Share one project-scoped store across OpenCode, Claude Code, Codex, and Pi.
  • Browse memories, sessions, and observer output in the local web viewer.
  • Synchronize selected project memories across machines and share project knowledge with teammates or Teams.

Limitations and notes

The OpenCode 2 integration is beta. Automatic capture and recall depend on the host integration and available ownership checks. Local storage does not guarantee local-only processing: captured context is sent to the configured observer model, and model calls may incur charges or consume plan usage.

The package does not support 32-bit targets, including Linux armv7. A global CLI installation is optional for setup, but is used for manual commands and semantic retrieval. Remote MCP access is intended for advanced single-user self-hosting and uses OAuth-protected Streamable HTTP rather than an unrestricted public endpoint.

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 Codemem

kunickiaj/codemem is an MCP server that connects coding agents to persistent project memory stored in local SQLite, with optional sync and sharing. Its documented MCP tool includes memory_session_search, while supported host integrations capture coding activity, retrieve relevant memories, and inject context into later prompts.

Install the OpenCode integration with `npx -y codemem setup --opencode-only`, then restart OpenCode. Node.js 24.15+ and npm or pnpm are required. Advanced deployments can expose the MCP endpoint through OAuth-protected Streamable HTTP to configured remote clients.

Yes, kunickiaj/codemem supports Claude Code through a plugin installed from the codemem marketplace source. Claude Code can share the project-scoped memory store with OpenCode, Codex, and Pi.

Yes, memories are stored in SQLite on the local machine by default. Processing can still send captured context to the observer's configured model provider, and optional synchronization or project sharing can move selected memories to other machines or teammates.

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 PreviewCodemem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kunickiaj-codemem?style=directory)](https://allmcps.com/mcp/kunickiaj-codemem)
HTML Embed
<a href="https://allmcps.com/mcp/kunickiaj-codemem"><img src="https://allmcps.com/api/badge/kunickiaj-codemem?style=directory" alt="Codemem on AllMCPs" /></a>