Sessionmem logo

Sessionmem

by catfish-1234

Local-first MCP memory for coding sessions, using SQLite to retain project context and surface relevant notes across sessions.

Install Sessionmem

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": {
    "catfish-1234-sessionmem": {
      "command": "npx",
      "args": [
        "-y",
        "sessionmem"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio catfish-1234-sessionmem -- npx -y sessionmem

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 sessionmem

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

catfish-1234/sessionmem stores coding-session decisions, warnings, and project facts in a local SQLite database, then exposes them through MCP memory and lifecycle tools. Claude Code can use installed hooks to capture events and load relevant memories automatically; Cursor and Codex use the background watcher, while other hosts rely on MCP calls and installed instructions. Retrieval combines SQLite FTS5 BM25 with entity overlap, with optional local MiniLM semantic candidates. Reach for it when coding assistants repeatedly lose project context between sessions and you want storage that works offline without an account.

Use cases

  • Carry project decisions between coding sessions
  • Recall warnings and unfinished migrations automatically
  • Search local coding memories from an MCP host
  • Capture supported CLI and editor transcripts offline

Key features

  • Local SQLite memory storage
  • BM25 and entity-overlap retrieval
  • Optional local MiniLM semantic search
  • Secret redaction enabled by default
  • Session hooks and background transcript watcher
  • Scoped memories with token-budget trimming

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.

16/16 checks healthy over the last 118d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · sessionmem (npm)

Adoption & maintenance

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

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

How Sessionmem works

What catfish-1234/sessionmem does

catfish-1234/sessionmem keeps short, searchable project memories between AI-assisted coding sessions. It records decisions, warnings, and useful facts such as a technology stack, an unfinished migration, or a known implementation constraint. At a later session start, it selects relevant entries and presents them within a small token budget rather than replaying an entire transcript.

The default storage location is a SQLite database at ~/.sessionmem/memories.db. Storage is local by default, with no account or cloud service required. Secret redaction is enabled during setup and removes common credential patterns, tokens, password assignments, and private keys before saving. Redaction uses pattern matching, so it should not be treated as a complete security boundary.

How it works

Session capture and memory injection depend on the host. Claude Code receives SessionStart, SessionEnd, and PostToolUse hooks during installation. These hooks capture supported events, summarize useful information at session end, and load prior memories when a new session begins.

Codex and Cursor use the automatically started watcher to read supported local histories. The watcher handles Claude Code, Codex CLI, and Cursor transcripts without API keys. Other MCP hosts can call the memory and lifecycle tools and use the instructions installed for the host, but automatic transcript reading requires a supported transcript reader.

Search starts with SQLite FTS5 BM25 ranking and entity overlap. An optional local MiniLM model can add semantic candidates; its weights are installed separately. Queries do not make network calls and fall back to BM25 if local inference is unavailable. Scope labels, entity information, relevance, recency, and importance can affect retrieval.

Setup and configuration

Install the package globally with Node.js 22.13 or newer:

Terminal
npm install -g sessionmem

Run sessionmem install from a configured project directory. The command detects supported hosts where possible, registers the MCP server, creates initial configuration under ~/.sessionmem/config.json, adds host instructions, and enables a per-user login service for sessionmem watch. Use --adapter to select a host explicitly, such as claude-code, cursor, cline, codex, windsurf, or generic. The SESSIONMEM_ADAPTER environment override is also supported, with the command-line flag taking precedence.

Restart the AI tool after installation so it loads the MCP registration. Use sessionmem doctor to check setup offline. A generic installation writes a project-local .mcp.json; hosts with different configuration formats may require copying the server entry into their MCP configuration.

Tools and capabilities

  • Store and retrieve decisions, warnings, and project context through MCP memory operations.
  • Use lifecycle operations for session-oriented capture and recall.
  • Search stored memories with BM25, entity overlap, and optional local semantic candidates.
  • Apply local scopes to sessions, memories, and entity associations.
  • Run a background watcher for supported Claude Code, Codex CLI, and Cursor histories.
  • Trim injected memories to a small fixed token budget.
  • Redact common secrets before persistence by default.

Limitations and notes

Automatic lifecycle capture is not uniform across hosts. Claude Code receives installed lifecycle hooks, while Codex and Cursor use the watcher without those hooks. Other hosts can use MCP tools, but automated transcript capture depends on reader support.

The watcher runs as a per-user login service: LaunchAgent on macOS, a user systemd service on Linux, or a Scheduled Task on Windows. Linux requires systemd and an available user service manager; macOS requires a GUI login session. If the service cannot start, setup can remain partially complete and may require running sessionmem autostart enable after fixing the operating-system error.

Running sessionmem run directly starts a stdio MCP server that waits for MCP messages, so it may appear idle in a terminal. Data remains local unless sharing or cloud summarization is enabled. Semantic search also depends on separately installed local model weights and falls back to BM25 when local inference is unavailable.

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 Sessionmem

catfish-1234/sessionmem is an MCP server that connects AI coding hosts to a local SQLite memory store. Its main tools save and retrieve project decisions, warnings, and context, while lifecycle tools support session capture and recall. Claude Code can automate these actions with hooks; other hosts use MCP operations and installed instructions.

Install it with Node.js 22.13 or newer using `npm install -g sessionmem`, then run `sessionmem install` in your project directory. The installer registers the MCP server, creates local configuration, adds host instructions, and enables background capture where supported.

Yes, catfish-1234/sessionmem works with Cursor. Its watcher captures Cursor history offline, and Cursor can use the MCP memory tools and installed instructions. Installation does not add Claude Code-style lifecycle hooks to Cursor.

No, catfish-1234/sessionmem does not require an account or cloud service for its default operation. Memories are stored in a local SQLite file, and retrieval makes no network calls. Data leaves the computer only when optional sharing or cloud summarization is enabled.

It searches with SQLite FTS5 BM25 ranking and entity overlap by default. An optional local MiniLM model can add semantic candidates using separately installed weights. If local inference is unavailable, queries fall back to BM25.

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