Stackmemory logo

Stackmemory

by @stackmemoryai

Project-scoped MCP memory with persistent context, FTS5 retrieval, Linear sync, task tools, hooks, and coding-tool wrappers.

Install Stackmemory

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": {
    "stackmemoryai-stackmemory": {
      "command": "npx",
      "args": [
        "-y",
        "croissant-ai"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio stackmemoryai-stackmemory -- npx -y croissant-ai

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 didn't complete successfully in our automated test.

npx -y croissant-ai

npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/croissant-ai - Not found npm error 404 npm error 404 'croissant-ai@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-14T13_30_40_432Z-debug-0.log

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

@stackmemoryai/stackmemory provides project-scoped memory for AI coding workflows through an MCP server. It stores events, decisions, tool calls, frames, and anchors, then builds task-specific context using FTS5 search, BM25 scoring, and hybrid retrieval. Claude Code users can add persistent context, skills, hooks, snapshots, task tracking, Linear synchronization, and orchestration commands to their workflow. Reach for it when coding agents need to retain project knowledge across sessions or coordinate work across tasks and agents.

Use cases

  • Persist coding decisions across Claude Code sessions
  • Search project history with ranked full-text retrieval
  • Synchronize AI task work with Linear
  • Coordinate parallel agents with worktrees and overlap checks
  • Capture session handoffs after coding runs

Key features

  • Project-scoped persistent memory
  • FTS5, BM25, and hybrid retrieval
  • Linear synchronization with API key or OAuth
  • Claude Code skills, hooks, and command packs
  • Snapshots, pre-flight checks, and agent orchestration
  • Codex and OpenCode context wrappers

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.

5/5 checks healthy over the last 22d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · croissant-ai (npm)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads1kPackage downloads in the last 30 days.
Last commit5mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.

How Stackmemory works

What @stackmemoryai/stackmemory does

@stackmemoryai/stackmemory gives AI coding tools durable, project-scoped context instead of relying on a single chat history. It records events, tool calls, decisions, constraints, and other project facts, then organizes them into nested frames representing scoped work. Active frames form a call-stack-like structure, while anchors preserve important facts such as decisions, interfaces, and constraints.

The server exposes MCP tools for context retrieval, task management, planning, traces, discovery, team coordination, providers, and Linear workflows. It is primarily integrated with Claude Code, but also includes wrappers for Codex and OpenCode that preload StackMemory context. Claude Code command packs and skills add session lifecycle commands, specification generation, and task execution workflows.

How it works

Editors call StackMemory through MCP during an interaction. The editor remains responsible for the coding session, while StackMemory stores project memory and returns a compiled context bundle for the active work. Frames can continue across chat turns, tool calls, and separate sessions, and persisted context remains available after a /clear operation.

Retrieval uses FTS5 full-text search with BM25 scoring, hybrid retrieval, and relevance thresholds. Automatic hooks can save context, track tasks, synchronize Linear work, update prompt plans, and record cord traces. Snapshot capture records post-run changes, commits, and decisions for session handoff. The pre-flight command checks for likely file overlap before parallel task dispatch.

Setup and configuration

StackMemory requires Node.js 20 or newer. Install the package globally, initialize it from the target project, configure the MCP connection, and run the diagnostic command:

Terminal
npm install -g @stackmemoryai/stackmemory
cd your-project
stackmemory init
stackmemory setup-mcp
stackmemory doctor

After restarting Claude Code, its StackMemory MCP tools become available. The command-pack installer can add session commands to ~/.claude/commands/; it supports listing packs, previewing changes, reinstalling, and removing installed commands.

Linear support accepts either an API key or OAuth. The package also ships with the claude-sm, codex-sm, and opencode-sm wrappers, plus variants that launch Claude Code with permissions bypassed.

Tools and capabilities

  • Persistent project context using frames, anchors, decisions, events, and retrieval.
  • FTS5 search with BM25 ranking and hybrid retrieval.
  • MCP tools covering context, tasks, Linear, traces, planning, discovery, cord, team, and related workflows.
  • Claude Code skills for progressive specification generation and Linear-backed task execution.
  • Hooks for context saving, task tracking, Linear synchronization, prompt-plan updates, and trace capture.
  • Snapshot and pre-flight commands for handoffs and parallel-work conflict checks.
  • Conductor orchestration that polls Linear, creates worktrees, and starts agents with bounded concurrency and automatic team detection.
  • Loop/watch polling for CI, deployment, log, or other shell-command conditions.
  • Memory monitoring and periodic auto-save services.
  • Integrations with Linear, DiffMem, Browser MCP, and log-mcp.

Limitations and notes

The initial project model is one GitHub repository. Claude Code receives the deepest workflow integration through its command packs, skills, and hooks. StackMemory also provides wrappers for Codex and OpenCode, while the MCP interface is used by editors to request context rather than storing that memory inside the editor itself.

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 Stackmemory

@stackmemoryai/stackmemory is an MCP server that connects AI coding tools with project-scoped persistent memory. Its main tools cover context, tasks, Linear, traces, planning, discovery, team coordination, and retrieval, preserving decisions, events, and work context across sessions, including Claude Code workflows.

Install it globally with npm, initialize the target project, and run its MCP setup command. Use Node.js 20 or newer: `npm install -g @stackmemoryai/stackmemory`, `stackmemory init`, then `stackmemory setup-mcp`. Run `stackmemory doctor` to verify the setup.

It stores project events, tool calls, decisions, anchors, and nested work frames, then compiles relevant context for the active task. Persisted frames and retrieval allow context to survive separate sessions and Claude Code `/clear` operations.

Run `stackmemory setup-mcp` in the initialized project, then restart Claude Code. The server exposes its MCP tools to Claude Code, and `stackmemory setup-commands` can install session lifecycle commands into `~/.claude/commands/`.

It supports Linear synchronization in both directions and accepts either an API key or OAuth. Linear-related MCP tools, automatic hooks, and the Conductor workflow can connect project task execution with Linear work.

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