Dsh Memory logo

Dsh Memory

Stores traceable, reviewable long-term agent memory in local Markdown files and retrieves it with evidence over MCP.

Install Dsh Memory

Run the project’s own setup commands, in order.

Setup steps from the project

dsh-memory installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Add to your MCP client
    dsh plugin --profile web add @furongjun1999/dsh-memory@0.11.3
    

Overview

dsh-memory MCP server gives AI agents local, persistent memory stored as Markdown files. It supports layered reads and writes, evidence-backed recall, and a separately managed self-description for identity and behavioral conventions. The server is designed for DeepSeek Harness and other MCP hosts, with contextual memories available for direct writing while higher-trust layers pass through review and authorization gates. Reach for it when an agent needs continuity across conversations without putting its memory in a remote service.

Use cases

  • Persist conversation preferences across sessions
  • Recall earlier facts with supporting evidence
  • Store structured agent knowledge in local Markdown
  • Maintain a reviewed agent identity and behavioral profile

Key features

  • Local Markdown memory storage
  • Layered memory reads and writes
  • Evidence-backed recall
  • Write gates for reviewed memory
  • Separate self and anchor memory
  • Read-only fallback when credentials are unavailable

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.

Adoption & maintenance

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

GitHub stars772Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.

How Dsh Memory works

What dsh-memory does

dsh-memory provides local long-term memory for AI agents through the Model Context Protocol. It saves memories as Markdown on the user's computer, making the stored content readable, inspectable, and independently backuppable. Agents can record details from a conversation, then retrieve them in a later session with supporting evidence.

The memory model separates information into layers. The contextual layer is intended for ordinary conversation-specific facts and is normally readable and writable. Knowledge, structural, and self or anchor layers receive stricter treatment. The self layer can hold information about who the agent is, how it communicates, and persistent agreements, but saving or changing it requires user authorization.

How it works

The main memory interface uses cg operations. A read operation can retrieve stored content, while a write operation accepts a layer and Markdown-formatted content. mdcg_recall provides a recall path for searching across prior memories; DeepSeek Harness also automatically recalls recent memories for the current session by default.

Memory writes are governed by a write gate. The default is MDCG_WRITE_GATE=enforce. Contextual entries can be committed directly, while knowledge and higher layers require review evidence. Structural entries require reflection and verification, and self or anchor entries additionally require an authorization decision. A successful write returns committed; a rejected write has not been persisted.

On startup, the server attempts to issue write credentials. If credential issuance is unavailable, it falls back to a read-only guest mode, allowing existing memories to be queried without accepting new writes.

Setup and configuration

The package requires Node.js 22.19 or newer. DeepSeek Harness users can add the plugin to the web profile with:

bash
dsh plugin --profile web add @furongjun1999/dsh-memory@latest

After installation, test both sides of the workflow: ask the agent to save a clearly defined memory, confirm that the operation was committed, then start a new conversation and request that memory by describing the earlier fact. If startup produces a read-only state, configure the write permissions described by the deployment's operations guidance before trying to save data.

MDCG_REVIEW_CHANNELS can declare available review channels such as hive and subagent, but declaring a channel does not itself satisfy the write gate. Higher-layer writes still need verifiable proof, such as an accepted signature or qualifying decision record.

Tools and capabilities

  • Store Markdown memories with cg(op='write', layer=..., content=...).
  • Read memory through cg(op='read').
  • Recall prior content with mdcg_recall.
  • Keep memories organized across contextual, knowledge, structural, and self or anchor layers.
  • Return evidence-backed results for memory retrieval.
  • Preserve agent identity and long-term behavioral settings separately from ordinary context.

Memory content is expected to use a structured format covering the feature or fact, its activation conditions, subfeatures, execution, verification method, and exclusions. This structure supports later review and validation.

Limitations and notes

Local persistence makes the files inspectable, but it also means deployment permissions determine whether the process can write them. Read-only fallback is useful for retrieval but cannot create new memories. Review-channel configuration alone does not unlock protected layers; the write gate checks appropriate proof and authorization.

The server's documented compatibility baseline is DeepSeek Harness. Its broader design targets other MCP hosts, but host-specific setup may differ. The package is MIT licensed.

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 Dsh Memory

dsh-memory is an MCP server that connects AI agents to a local Markdown-based long-term memory store. Its main tools are `cg` for reading and writing layered memories and `mdcg_recall` for retrieving earlier content with evidence. It supports DeepSeek Harness and other MCP hosts, with review controls for higher-trust memory layers.

Install it in DeepSeek Harness with `dsh plugin --profile web add @furongjun1999/dsh-memory@latest`. The package requires Node.js 22.19 or newer. After installation, test a contextual write, confirm that the result is `committed`, and then verify retrieval from a new conversation.

dsh-memory enters read-only mode when startup cannot issue write credentials. Existing memories can still be queried, but new writes are rejected. Configure the deployment's write permissions and credential path, then restart the server before trying to save another memory.

dsh-memory writes contextual memories directly by default, while knowledge and higher layers require review evidence. Structural memory requires reflection and verification, and self or anchor memory also requires user authorization. `MDCG_REVIEW_CHANNELS` only declares available channels; it does not independently approve a write.

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