Dreamd logo

Dreamd

Local-first MCP memory for coding agents, with searchable episodes, traceable lessons, Git-backed review, and removable records.

Install Dreamd

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

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

Claude Code command
claude mcp add --transport stdio dreamd -- npx -y dreamd-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 dreamd-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

dreamd MCP server gives AI coding agents a local, Git-backed memory store shared across harnesses. Agents use the `search_nodes` and `append_node` MCP tools to recall context and record episodes, while CLI commands handle dreaming, inspection, provenance checks, and removal. Memory is stored as JSONL and Markdown under `.agent/`, with lessons linked to their source events. Reach for dreamd when you need cross-session memory that can be reviewed, traced, and reverted like code.

Use cases

  • Share learned coding context across agent harnesses
  • Trace an incorrect answer back to its source memory
  • Review agent lessons in Git diffs and pull requests
  • Remove a bad event with a recorded receipt
  • Validate memory provenance after a dream cycle

Key features

  • Local project memory stored as JSONL and Markdown
  • MCP tools for appending and searching memory
  • Git-committed lessons with event citations
  • BM25 and salience-ranked recall
  • Provenance inspection and Merkle-root checks
  • Dry-run forgetting with proof receipts

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.

18/18 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · dreamd-mcp (npm)

Adoption & maintenance

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

GitHub stars9Stargazers on the source repository.
npm downloads2.8kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Dreamd works

What dreamd does

dreamd provides long-term, project-scoped memory for AI coding agents. It stores episodic events as JSONL and promoted lessons in Markdown under the project’s .agent/ directory. Because that directory is intended to be committed with the codebase, teams can inspect memory changes in diffs and pull requests, or undo a dream cycle with Git.

The MCP interface exposes two agent-facing tools: append_node records an episode, and search_nodes searches stored episodes and lessons. Search results include the source harness. The command-line interface adds operations for setup, recall, dreaming, status checks, provenance validation, and forgetting records.

How it works

Agents append episodes describing what happened, including factors such as pain and importance. A dream cycle groups related episodes by skill_action and can promote recurring patterns into LESSONS.md. Each lesson cites the events that contributed to it, while a provenance ledger records links between events, lessons, and index entries.

Recall uses lexical BM25 matching combined with salience. Salience considers age decay, pain, importance, and recurrence; vector search is not part of the shipped recall system. A cycle can use an LLM to compose lessons when an API key is available, subject to a per-cycle spend cap. Without a key, dreamd creates a deterministic lesson locally and makes no network call.

Cycle output is staged and committed through a redo write-ahead log, allowing a crash to leave the store unchanged or complete the cycle. The project’s local index, daemon state, and provenance data live in .agent/.dreamd/ and are excluded from Git.

Setup and configuration

From a project containing .git/, Cargo.toml, package.json, or pyproject.toml, run:

Terminal
npx -y dreamd-mcp setup
npx -y dreamd-mcp

setup initializes the .agent/ store and writes harness MCP configuration. It is idempotent and can prompt interactively. For scripts, use --yes with --harness claude, --harness cursor, or --harness both; --harness none and --no-write-mcp avoid changing MCP configuration.

The default transport is stdio. Source builds can optionally expose Streamable HTTP at /mcp with dreamd mcp --bind 127.0.0.1:<port> and the mcp-http feature. That endpoint is unauthenticated. A shared watch daemon is available when several agents write to the same project.

The npm shim forwards only part of the CLI. Commands such as recall, score, status, archive, and migrate require the installed dreamd binary, which can be built with Cargo.

Tools and capabilities

  • Search episodic and semantic memory with search_nodes or recall.
  • Record agent experiences through append_node.
  • Preview and generate lessons with dream --dry and dream cycles.
  • Trace recall results and their salience using blame and recall --explain.
  • Validate provenance with doctor --provenance and repair the recall index with doctor --repair.
  • Remove an event with forget, previewing changes with --dry-run and writing a receipt with --proof.
  • Review memory through JSONL, Markdown, git diff, and Git history.

Limitations and notes

dreamd makes memory traceable and removable, but it does not detect or block poisoned writes or filter injected lesson content. The caller asserts source_harness; dreamd does not verify it. Provenance ledgers and forget receipts are unsigned, and trust labels are not available.

Stop the watch daemon before using forget; the command refuses to run while the daemon is active. After forgetting an event, provenance checks report the old ledger edges as orphans because the ledger is append-only. The HTTP transport is unauthenticated, and recall is lexical rather than vector-based.

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 Dreamd

dreamd is an MCP server that connects AI coding agents to a local, project-scoped memory store. Its main tools, `append_node` and `search_nodes`, let agents record episodes and retrieve prior context. CLI commands add lesson generation, provenance inspection, recall explanations, and removal of unwanted memories.

Install it with `npx -y dreamd-mcp setup`, then run `npx -y dreamd-mcp`. Setup initializes `.agent/` and writes MCP configuration for the selected harness. The project must contain a recognized root sentinel such as `.git/`, `Cargo.toml`, `package.json`, or `pyproject.toml`.

Yes, dreamd supports Cursor through its setup flow and adapter. Use `npx -y dreamd-mcp setup --yes --harness cursor` in a supported project, then reload Cursor so it can spawn the stdio MCP server.

Yes, `dreamd forget <event-id>` removes the event and lesson state that names it. Add `--dry-run` to preview the changes or `--proof <path>` to write a forget receipt. Stop the `watch` daemon before running the command.

No, dreamd uses lexical BM25 search combined with salience factors such as age decay, pain, importance, and recurrence. Vector recall is not included in the shipped system, so `search_nodes` and `recall` rank matching stored text rather than embeddings.

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