Dark Memory MCP logo

Dark Memory MCP

SQLite-backed MCP memory for persistent agent notes, session management, research recall, and spec-versus-artifact drift checks.

Install Dark Memory MCP

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": {
    "dark-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@opitacode/dark-memory-mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio dark-memory-mcp -- npx -y @opitacode/dark-memory-mcp

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

Automated check passed— started and listed 57 tools correctly ().

Overview

dark-memory-mcp provides persistent agent memory through a single Go binary, a local SQLite database, and the stdio MCP transport. It organizes work into projects and sessions, lets agents save and search scoped memories, and supports recovery when idle sessions are automatically closed. Its vibe-loop tools compare published artifacts with structured specifications and record drift decisions. Reach for it when an agent needs durable context across sessions or a recorded validation flow for delivered work.

Use cases

  • Persist agent decisions across work sessions
  • Search project-scoped notes with lexical ranking
  • Recover interrupted sessions after idle closure
  • Validate delivered artifacts against structured specifications

Key features

  • SQLite-backed persistent agent memory
  • Project and session lifecycle management
  • BM25-ranked FTS5 memory recall
  • Research query and thread resumption
  • Vibe-loop artifact drift detection
  • Stdio MCP with agent bootstrap and environment inspection

Tools57

What Dark Memory MCP lets your agent do. Expand a tool for its parameters.

Verified live~10.1k tokens of context

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.

25/27 checks healthy over the last 117d

What it can do

From the 57 tools this server returned when we ran it; 57 declare their own safety hints.

Runs commands · 4Can delete or modify data · 3Handles credentials · 2Makes network requests · 2Read-only tools · 50
Network at startup3 connections
Files written at startup1
Install scriptspostinstall
npm provenanceSigned build
Package age109 days
Maintainers1

Observed 2026-11-15 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @opitacode/dark-memory-mcp (npm)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed57Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Dark Memory MCP works

What dark-memory-mcp does

dark-memory-mcp gives MCP clients a local memory and workflow layer for AI agents. It stores agent memories in SQLite and scopes recall to a project, session, or global context. Memories can be saved, listed, searched, updated, archived, and retrieved by ID; the search tool uses BM25 ranking over content, titles, and tags through SQLite FTS5.

Projects and operational sessions provide the tenancy and lifecycle model around that memory. Sessions can be started, resumed, inspected, kept alive with heartbeats, closed, or recovered after an idle timeout. A resurrected session inherits the original constitution binding and active modifications while leaving the closed session unchanged.

The server also implements a vibe-loop for checking work against an explicit promise. An agent creates a structured specification, publishes an artifact, and receives a verdict such as aligned, drift detected, or needs human review. Drift reports can be inspected and accepted or rejected by an operator.

How it works

The process communicates over stdio using MCP and keeps its primary data in a local SQLite database. A project is selected when work begins, and most session-dependent operations require an active session. Memory rows normally survive session closure; callers can bind a memory to the active session when that lifecycle is desired.

Research tools query registered ResearchBackend implementations, return deduplicated confidence-ranked items, recall stored research within a token budget, and continue a multi-turn thread with the same thread ID. Context projection tools expose concise views of artifacts, specifications, and sessions for agents that need structured state.

Agent bootstrap content can be returned by surface and target, while environment detection reports negotiated protocol details, client identity, capabilities, and transport. Companion recommendations use the connecting client's clientInfo and do not install anything automatically.

Setup and configuration

The repository supports Go 1.25 or newer when building from source. The npm wrapper supports Node.js 18 or newer and downloads the platform binary on first use, so a client can launch it with:

config.json
{
  "mcpServers": {
    "dark-memory": {
      "command": "npx",
      "args": ["-y", "@opitacode/dark-memory-mcp"]
    }
  }
}

The same MCP entry can be placed in Claude Desktop's claude_desktop_config.json, Claude Code's .claude.json, or Cursor's .cursor/mcp.json. From source, build the executable with go build -o bin/dark-mem-mcp ./cmd/dark-mem-mcp.

After configuration, restart the host if necessary and call the health check to confirm that the database is live and the schema is available. The DARK_MEMORY_V280=1 setting gates the sub-agent memory delegation tool. DARK_FEDERATION_PEER_DSN enables a peer probe for pipeline status when the local lookup has no result.

Tools and capabilities

  • Create idempotent projects and manage session start, resume, status, heartbeat, close, recovery, and resurrection.
  • Save and manage project-scoped agent memories, including updates, soft deletion, archived-memory listing, BM25 recall, and entity retrieval.
  • Produce scoped context and incremental recall deltas for global, project, or session state.
  • Run research queries, recall stored research, and resume research threads.
  • Define structured specs, publish artifacts, inspect drift, and accept or reject drift reports.
  • Bootstrap agents, recommend companion MCPs, and inspect client negotiation details.

Delegation prepares a markdown context block containing session metadata, selected pinned memories, and open todos for a sub-agent. It is gated by DARK_MEMORY_V280=1.

Limitations and notes

The project is an alpha pre-release and its tool surface and schema may change. SQLite is the production path; PostgreSQL support is not ready for production use. The agent-memory recall operation is lexical BM25/FTS5 search rather than vector search. Most operations require an active session, and memory scope must be considered when a note cannot be found after changing projects or sessions.

Idle sessions can be closed automatically. During long pauses, the caller should send heartbeats roughly every 30 seconds; otherwise a session with an extended period between writes can be demoted to closed_aborted. Recovery only identifies a candidate and requires consent before resurrection creates a new session.

The vibe-loop judge records a comparison between an artifact and its specification, but the broader engine is still under development. Operators should review the project's status before relying on it for production workflows.

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 Dark Memory MCP

dark-memory-mcp is an MCP server that connects AI agents to a local SQLite-backed memory store over stdio. Its main tools manage projects and sessions, save and recall agent memories, run research queries, bootstrap agent context, and compare published artifacts with structured specifications for drift.

Install it through an MCP client's stdio configuration with `npx -y @opitacode/dark-memory-mcp`. The npm wrapper requires Node.js 18 or newer and downloads the platform binary on first use. From source, build it with Go 1.25 or newer.

Yes, dark-memory-mcp works with Cursor through its `.cursor/mcp.json` configuration. Add the stdio command using `npx` and the package name, then restart Cursor if the tools do not appear.

Agent memories are stored in the local SQLite database and normally remain after a session closes. Memories are scoped to the active project by default, while callers can use global, project, or session context and explicitly bind a memory to a session when needed.

Create a structured specification with `dark_memory_vibe_spec`, then submit the result with `dark_memory_vibe_publish`. The publish flow compares the artifact with the specification, records a drift report, and returns a verdict and next action; operators can accept or reject the report.

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