Easy Memory MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Easy Memory MCP
English | 中文
A lightweight, local-first personal memory center for AI agents, powered by LanceDB and the Model Context Protocol (MCP).
Multiple agents (Claude Code, OpenClaw, Cursor, etc.) connect to this single MCP server to store and retrieve long-term memories via semantic vector search — no external database process required.
Features
Semantic Search — vector similarity search powered by LanceDB, not just keyword matching
Zero Infrastructure — LanceDB is embedded, no separate DB server to run
Multi-Agent Shared Memory — one memory store, many agents
Namespace Isolation — memories are scoped per project or agent to prevent bleed-through
Chinese & English — uses
BAAI/bge-m3for high-quality bilingual embeddingsLocal-First & Private — all data stays on your machine at
~/memory-mcp/Deduplication — automatic similarity check on save to avoid redundant memories
Memory Consolidation — merge similar memories to keep the store clean
Related MCP server: Memory MCP
Architecture
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Claude Code │ │ OpenClaw │ │ Cursor ... │
└──────┬───────┘ └──────┬──────┘ └──────┬───────┘
│ MCP (stdio/SSE)│ │
└─────────┬─────────┘───────────────┘
│
┌─────────▼──────────┐
│ Easy Memory MCP │
│ (Python + FastMCP) │
├────────────────────┤
│ Memory Manager │ ← dedup / consolidate / decay
│ Embedding Engine │ ← local model or API
│ Namespace Router │ ← multi-project isolation
└─────────┬──────────┘
│
┌─────────▼──────────┐
│ LanceDB │
│ ~/memory-mcp/ │
│ (embedded, local) │
└────────────────────┘Use Cases
Easy Memory MCP is designed for AI agents that need persistent, searchable memory. Here are some common scenarios:
Personal Dev Assistant — Claude Code remembers your coding preferences, project decisions, and technical context across sessions. No more repeating yourself.
Multi-Agent Knowledge Sharing — Multiple agents (Claude Code, Cursor, custom bots) share one memory store. Knowledge learned by one agent is available to all via namespace isolation.
Project Context Persistence — Architecture decisions, API contracts, and deployment notes survive beyond a single session. Come back weeks later and your agent already knows the project.
Feedback Loop — The agent saves corrections ("don't use
anyin TypeScript") and avoids repeating mistakes in future sessions.Reference Library — Build a searchable knowledge base of solutions, snippets, and debugging tips discovered during development.
See Use Cases for detailed walkthroughs with code examples.
Quick Start
One-Click Install (Recommended)
git clone https://github.com/ibb-net/easy_memory_mcp.git
cd easy_memory_mcp
bash install.shThe interactive installer handles: package install, Claude Code MCP registration, systemd service setup, and embedding model download.
Non-interactive:
bash install.sh --install # full install
bash install.sh --download-model # download embedding model
bash install.sh --status # show statusManual Install
pip install easy-memory-mcpOr from source:
git clone https://github.com/ibb-net/easy_memory_mcp.git
cd easy_memory_mcp
pip install -e ".[dev]"Run
# stdio transport (default, for Claude Code / Cursor)
python -m easy_memory_mcp
# SSE transport (persistent service, recommended)
python -m easy_memory_mcp --transport sse --port 8135
# Streamable HTTP transport (newest, recommended for remote)
python -m easy_memory_mcp --transport streamable-http --port 8135The SSE/HTTP transports preload the embedding model at startup, so the first tool call responds immediately.
Register in MCP Clients
Claude Code (SSE, recommended — via claude CLI):
claude mcp add memory -s user --transport sse http://localhost:8135/sseClaude Code (stdio — via config file ~/.claude.json or .mcp.json):
{
"mcpServers": {
"memory": {
"command": "python",
"args": ["-m", "easy_memory_mcp"],
"env": {
"MEMORY_MCP_PATH": "/home/you/memory-mcp"
}
}
}
}Cursor / Windsurf (.cursor/mcp.json):
{
"mcpServers": {
"memory": {
"url": "http://localhost:8135/sse"
}
}
}Remote access (via HTTPS with reverse proxy):
{
"mcpServers": {
"memory": {
"url": "https://your-domain.com/sse"
}
}
}Health Check
curl http://localhost:8135/health
# {"status":"ok","uptime_seconds":123.4,"namespace":"default","storage_path":"/home/you/memory-mcp"}Agent Prompt Templates
To get the best results, configure your AI agent's system prompt / rules so it automatically retrieves and stores memories. Ready-to-use templates are in the prompts/ folder:
Claude Code
Copy the content from prompts/claude-code-memory.md into your project's CLAUDE.md (or ~/.claude/CLAUDE.md for global effect).
Cursor
Cursor uses Rules — project-level prompt files that are injected into every conversation.
Copy the .mdc file into your project's .cursor/rules/ directory:
File | Description |
Lightweight — search before answering, save when valuable | |
Strict SOP — mandatory search, explicit save conditions | |
轻量版(中文) | |
严格版(中文) |
# Example: install the light version
mkdir -p .cursor/rules
cp prompts/cursor-memory-light.mdc .cursor/rules/memory-workflow.mdcThe alwaysApply: true frontmatter ensures the rule is active in every conversation.
Other Agents
For any agent that supports system prompts, the key instructions are:
Before answering — call
memory_search(query=<user request>, top_k=5)When saving — call
memory_save(content=..., type=..., tags=[...], importance=...)Never save credentials, one-time info, or unconfirmed assumptions
MCP Tools
Tool | Description |
| Store a new memory with auto-embedding and dedup check |
| Semantic similarity search with optional type/tag/namespace filters |
| Retrieve a memory by ID |
| Update content or tags (re-embeds automatically) |
| Remove a memory by ID |
| List memories with filtering by type, tags, or namespace |
| Merge similar memories to reduce redundancy |
Example Usage (from an agent)
# Save a memory
memory_save(content="User prefers concise responses without emoji", type="feedback", tags=["style"], namespace="default")
# Search memories
memory_search(query="user communication preferences", top_k=5)
# List all feedback memories
memory_list(type="feedback", limit=20)Data Model
Each memory record contains:
Field | Type | Description |
| string | UUID, auto-generated |
| string | The memory text |
| string |
|
| list[string] | Searchable tags |
| string | Project or agent scope (default: |
| string | Which agent created it (e.g. |
| float | 0–1 score, used for ranking and decay |
| int | Tracks how often this memory is retrieved |
| datetime | Creation timestamp |
| datetime | Last modification timestamp |
| datetime | Last retrieval timestamp |
Configuration
All configuration is via environment variables:
Variable | Default | Description |
|
| Directory for LanceDB data files |
|
| Sentence-transformers model name |
|
| Embedding vector dimension |
|
| Similarity threshold for dedup (0–1) |
|
| Default namespace for memories |
|
|
|
| (unset) | Set to use OpenAI embeddings instead of local model |
|
| OpenAI embedding model (if using API) |
| (unset) | Set to |
Tech Stack
MCP Python SDK — Model Context Protocol server framework
LanceDB — Embedded vector database (no server process)
sentence-transformers — Local embedding models (default: BGE-M3)
PyArrow — LanceDB schema and data handling
Comparison with Alternatives
Feature | Easy Memory MCP | Official MCP Memory | mcp-memory-service | Mem0 |
Vector semantic search | Yes | No (keyword only) | Yes | Yes |
Zero external deps | Yes (embedded DB) | Yes (JSON file) | No (ChromaDB) | No (Qdrant) |
Chinese support | Yes (BGE-M3) | N/A | No | No |
Namespace isolation | Yes | No | No | Weak |
Memory consolidation | Yes | No | Yes | Yes |
Local-first | Yes | Yes | Yes | Optional |
Roadmap
Phase 1 — Core: LanceDB store, embedding engine, 7 MCP tools, tests
Phase 2 — Enhanced: namespace isolation, dedup, consolidation, health endpoint
Phase 3 — Ecosystem: auth & multi-user, Web UI, import/export, importance decay
Demo
A standalone demo script shows the core API in action — save, search, dedup, update, delete:
pip install -e ".[dev]"
python examples/demo.pySee examples/demo.py for the full source.
Contributing
Contributions are welcome! See CONTRIBUTING.md for:
Development setup and code style
How to add new MCP tools or embedding backends
Commit message conventions and PR guidelines
Issue reporting guidelines
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Memory system for AI agents with semantic search. Store and recall memories with ease.
Persistent memory for AI agents. Semantic search, memory graph, W3C DID identity.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides local vector-based semantic memory storage for AI assistants to persist context and decisions across sessions using local embeddings and LanceDB. It enables private semantic search and session handoff capabilities to maintain long-term project context.98 npm4MIT
- FlicenseNot gradedqualityDmaintenanceProvides persistent AI agent memory using a local vector database for long-term semantic storage and short-term session scratchpads. It enables low-latency memory operations including search, storage, and bulk management without external cloud dependencies.-
- FlicenseBqualityDmaintenanceEnables storing and retrieving semantic memories using LanceDB vector database, with tools to add memories and search by similarity.29-
- AlicenseAqualityCmaintenanceEnables AI agents to store and recall persistent long-term memories across sessions using LanceDB, with semantic search, automatic linking, conflict detection, and maintenance tools.743 npmMIT