# 记忆梦境引擎 · AI 的睡眠系统

> 记忆梦境引擎 · AI 的睡眠系统 is an open-source MCP server for knowledge and memory. Offline memory consolidation engine giving AI agents decay, scoring and a dream cycle. It is available on CLI, self-hosted, API, Linux, macOS and Windows.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, API, Linux, macOS, Windows
- **Website:** https://savantcat.cn/mcp/
- **Repository:** https://github.com/savantcat/memory-dream-engine
- **MCP Registry name:** cn.savantcat/memory-dream-engine
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-18

## About

The README describes memory-dream-engine as a pluggable pipeline that runs on a schedule (every 180 minutes in the author's Hermes Agent setup) and moves through collection, scoring, writing, optimization and content sprouting. Facts are pulled out with regular expressions instead of an LLM call, so the pipeline itself spends no model tokens.

Memory strength follows an Ebbinghaus-style curve with a 30-day half-life, where frequently accessed items are reinforced and low-strength items are archived. Signals are scored on three dimensions with weights that depend on signal type, so decisions, corrections and tool notes are not judged by one scale.

The project is a Python standard-library package with no third-party runtime dependencies, and it does not bind to a specific agent framework: the host supplies search, memory-write and usage functions as plain Python callables. It also ships as an MCP server over stdio or streamable HTTP, and its README says the server stores no caller data, with simulate_dream using a temporary database that is deleted after the run.

## Features

- **Regex-based fact extraction:** Extracts facts from Chinese and English text without calling a language model.
- **Ebbinghaus memory decay:** Weakens memories over a 30-day half-life, reinforces frequently accessed items and archives weak ones.
- **Three-dimensional signal scoring:** Scores decision, correction and tool signals with type-specific weighting.
- **Five-stage dream cycle:** Runs collection, scoring, writing, optimization and sprouting in sequence on a schedule.
- **Content sprouting prompts:** Suggests drafting a post or article once enough related memories accumulate.
- **Framework-agnostic adapters:** Plugs into any agent through three user-supplied search, memory and usage functions.

## Good for

- Keeping an agent's long-term memory from filling up with stale notes
- Scoring whether a conversation fact deserves to be saved to persistent memory
- Testing a memory consolidation cycle on sample text before deploying it
- Turning accumulated agent notes into draft content ideas

## Tools

- `extract_facts`: Zero-LLM fact extraction using regular expressions.
- `score_signal`: Three-dimensional dynamic scoring with a keep-or-discard verdict.
- `decay_report`: Ebbinghaus decay report covering strength, reinforcement, archive status and curve.
- `simulate_dream`: Runs a full five-stage dream cycle on supplied text using a temporary database.
- `list_signal_types`: Lists signal types, weights and scoring keywords.
- `engine_info`: Overview of capabilities, trade-offs against similar approaches and service boundaries.

## FAQ

### Does the engine call an LLM?

No. The README says fact extraction is pure regular expression matching, so it does not use model tokens.

### What dependencies does it need?

The README states it has zero third-party runtime dependencies and uses only the Python standard library; pytest is needed only for running tests.

### Does the MCP server store my data?

The README says the server is pure computation and read-only, keeps no caller data, and that simulate_dream uses a temporary database that is deleted after the run.

### Is 记忆梦境引擎 · AI 的睡眠系统 free?

Yes. 记忆梦境引擎 · AI 的睡眠系统 is open source, so you can use and self-host it for free.

### What are the best alternatives to 记忆梦境引擎 · AI 的睡眠系统?

The closest alternatives to 记忆梦境引擎 · AI 的睡眠系统 are Dreamd, agentmem, Total Agent Memory, Holographic Memory and Brain Memory.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.

## Alternatives

- [Dreamd](https://ai-powered.com/mcp/dreamd): Dreamd is an open-source MCP server for knowledge and memory.
- [agentmem](https://ai-powered.com/mcp/agentmem): agentmem is an open-source MCP server for knowledge and memory.
- [Total Agent Memory](https://ai-powered.com/mcp/total-agent-memory): Total Agent Memory is an open-source MCP server for knowledge and memory.
- [Holographic Memory](https://ai-powered.com/mcp/holographic-memory): Holographic Memory is an open-source MCP server for knowledge and memory.
- [Brain Memory](https://ai-powered.com/mcp/brain-memory): Brain Memory is an open-source MCP server for knowledge and memory.
- [MemoryPilot](https://ai-powered.com/mcp/memorypilot): MemoryPilot is an MCP server for knowledge and memory.
- [cogvault](https://ai-powered.com/mcp/cogvault): cogvault is an open-source MCP server for knowledge and memory.
- [Memoria — Deterministic AI Memory & Code Intelligence MCP](https://ai-powered.com/mcp/memoria-deterministic-ai-memory-and-code-intelligence-mcp): Memoria — Deterministic AI Memory & Code Intelligence MCP is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/ai-2
