Minimem
FreeNot checked๐ง AI Agent ็ไธญๅคฎ่ฎฐๅฟๆๅก โ L1โL4ๅๅฑ่ฎฐๅฟ้ๅญๅก + Dream Engine + Karpathy Compile + MCPๅ่ฎฎ
About
๐ง AI Agent ็ไธญๅคฎ่ฎฐๅฟๆๅก โ L1โL4ๅๅฑ่ฎฐๅฟ้ๅญๅก + Dream Engine + Karpathy Compile + MCPๅ่ฎฎ
README
๐ง MiniMem
A Self-Hosted Personal Memory System โ The Central Memory for AI Agents
MiniMem gives AI agents persistent, structured, and retrievable memory. Built for single-machine self-hosting (sqlite + 127.0.0.1 + single API token), it uses a L1โL4 four-layer memory pyramid and a Dream Engine to automatically distill raw experiences into structured knowledge during nightly sleep cycles. Multi-tenant / JWT / domain isolation is deferred to v0.3+ โ see roadmap.
โจ Features
- ๐งฉ L1โL4 Memory Pyramid โ From raw experiences to mental models, layered compression with increasing abstraction
- ๐ Dream Engine โ 4-phase nightly pipeline: Audit โ Compile (Knowledge Compile) โ Dream โ Cleanup
- ๐ Knowledge Compile โ LLM-driven knowledge synthesis: generates bi-directionally linked knowledge pages with version history
- ๐ MCP Protocol โ Native Model Context Protocol support (stdio + Streamable HTTP)
- ๐งญ Vector Retrieval โ In-memory HNSW index + FTS5 full-text search + conditional indexing
- ๐ฆ Surface Files โ Agent-readable Markdown files (me/soul/work/social/life profiles)
- ๐ก Inspiration Engine (experimental) โ Cross-domain memory collision for creative sparks
- ๐ Version Control โ Snapshots + branching + rollback for safe memory evolution
- ๐ก๏ธ Temperature Decay โ Tiered compression with configurable decay models (linear/logarithmic/ebbinghaus)
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MiniMem โ
โ โ
โ โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโ โ
โ โ L1 โโโ L2 โโโ L3 โโโ L4 โ โ
โ โ Experiences โ Facts โ โ Observations/ โ Mentalโ โ
โ โ โ โ (triples)โ โ Knowl.Pagesโ โModels โ โ
โ โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Dream Engine (nightly) โ โ
โ โ P1: Audit โ P2: Compile โ โ โ
โ โ P3: Dream โ P4: Cleanup โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ REST API โ โ MCP Srv โ โ MiniMem Console โ โ
โ โ (Hono) โ โ (stdio/ โ โ (React SPA) โ โ
โ โ โ โ HTTP) โ โ โ โ
โ โโโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Quick Start
Prerequisites
- Node.js >= 20.0.0
- pnpm (recommended)
Install & Run
git clone https://github.com/lelin1997/minimem.git
cd minimem/minimem
# Install dependencies
pnpm install
# Configure
cp .env.example .env
# Edit .env with your LLM API key and JWT secret
# Build & start
pnpm build
pnpm start
Run Modes
# REST API mode (default, port 6677)
pnpm start
# MCP Server mode (stdio โ for Claude Desktop, etc.)
node dist/index.js --mcp
# MCP HTTP mode (port 6678)
MINIMEM_MCP_PORT=6678 node dist/index.js --mcp-http
Claude Desktop Integration
{
"mcpServers": {
"minimem": {
"command": "node",
"args": ["/path/to/minimem/dist/index.js", "--mcp"]
}
}
}
๐ฎ Console
MiniMem Console is a standalone web dashboard providing:
- ๐ Dashboard โ system overview & stats
- ๐ง Memory Browser โ search, browse, edit memories
- ๐ Knowledge Pages โ view Knowledge Compile results
- ๐ค Owner Profile โ manage your agent's identity
- ๐ Pipeline Editor โ visual data pipeline orchestration
cd minimem-console
pnpm install
cp .env.example .env
pnpm dev
๐ Project Structure
minimem/
โโโ minimem/ # Core engine (31.5K lines)
โ โโโ src/
โ โ โโโ core/ # Memory processing core
โ โ โโโ gateway/ # REST API + MCP Server
โ โ โโโ llm/ # LLM client (multi-model tiers)
โ โ โโโ modules/dream/ # Dream Engine
โ โ โโโ recall/ # Retrieval & ranking
โ โ โโโ store/ # Database & indexes
โ โ โโโ surface/ # Surface Files
โ โ โโโ version/ # Version control
โ โโโ tests/ # 44 test files
โโโ minimem-console/ # Web management console
โโโ src/ # React frontend
โโโ server/ # Console backend
๐งช Tests
cd minimem
pnpm test # Run all tests
pnpm test:watch # Watch mode
pnpm typecheck # Type checking
๐ก API
MCP tools exposed via protocol: add_memory, search_memory, get_relevant_context, recall_about, list_memories, generate_daily_summary, trigger_dream, and more.
๐ License
MIT ยฉ MiniMem Contributors
๐ Acknowledgements
- Andrej Karpathy โ inspiration for LLM-driven knowledge compilation (Note: MiniMem's "Knowledge Compile" is an independent implementation inspired by Karpathy's LLM Wiki concept; not affiliated with or endorsed by Karpathy)
- Hono โ lightweight web framework
- Model Context Protocol โ AI agent interoperability standard
Installing Minimem
This server has no published package โ it is built from source. Open the repository and follow its README.
โธ github.com/lelin1997/minimemFAQ
Is Minimem MCP free?
Yes, Minimem MCP is free โ one-click install via Unyly at no cost.
Does Minimem need an API key?
No, Minimem runs without API keys or environment variables.
Is Minimem hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Minimem in Claude Desktop, Claude Code or Cursor?
Open Minimem on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install โ the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Minimem with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
