EvolvMem
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EvolvMemsearch my memories for the deployment process"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
EvolvMem
A fully-local, three-layer memory plugin for Claude Code with Chinese language support — FTS5/trigram + HNSW vector hybrid search.
Features
L0 Active Memory: SessionStart injection — a project digest layer (recent per-project session summaries from
:progress:log:memories,digest_*config), then pinned memories always injected, normal memories ranked by importance+recency+frequency score, the rest listed as a searchable index (progressive disclosure)L1 Full History: SQLite + FTS5/trigram exact search, supports Chinese substring matching
L2 Semantic Index: USearch HNSW vector search for finding related memories expressed differently
Self-Iteration: Auto-extraction, conflict detection, access-decay forgetting
Consolidation:
memory_consolidatefinds and merges near-duplicate memories via vector similarity (dry-run by default)Semantic Merge: Write-time semantic merge — new values automatically supersede near-identical memories instead of duplicating them (
add_merge_threshold) — plus weekly auto-consolidation at SessionStart (consolidate_auto_run_hours)Expiry: Memories can carry an
expires_atdate; expired memories stop being injected/searched and are archived automaticallyProject Relevance: SessionStart scoring boosts memories whose key matches the current project directory (configurable aliases)
Quality Gate:
memory_add/memory_replacereject values shorter thanvalue_min_chars(default 10) and low-information placeholder phrases (e.g. "等待用户确认", "no action required"), keeping trivial auto-summary noise out of the store
Related MCP server: mcp-memory-graph
Quick Start
./install.shThe script will automatically:
Create
~/.claude/evolvmem/directory andmodels/subdirectoryInstall pip dependencies usearch and llama-cpp-python
Download bge-small-zh-Q5_K_M.gguf (~50MB, skipped if already present)
Generate default
config.jsonVerify the Config module can be imported
Manual Configuration
Add the MCP Server config to ~/.claude/settings.json:
{
"mcpServers": {
"evolvmem": {
"command": "python",
"args": ["-m", "evolvmem.mcp_server"],
"env": {
"PYTHONPATH": "/path/to/evolvmem-plugin"
}
}
}
}Optional: add a SessionStart hook for automatic active memory injection:
{
"hooks": {
"SessionStart": [
{
"matcher": "",
"hook": "python -c \"from evolvmem.hooks import get_session_start_block; print(get_session_start_block())\"",
"env": {
"PYTHONPATH": "/path/to/evolvmem-plugin"
}
}
]
}
}Tools
Tool Name | Description |
| FTS5 + HNSW hybrid search, supports Chinese |
| View memory system status and statistics |
| Manually write a memory (optional |
| Replace a memory (old value marked as superseded) |
| Soft-delete a memory |
| Find and merge near-duplicate memories by vector similarity; |
Deletion is two-staged: memory_remove soft-deletes (recoverable via restore), while the Web Console's POST /api/memory/<id>/hard_delete permanently removes the row — irreversible, intended for confirmed junk. The quality gate above applies to every live memory_add/memory_replace call, so rejected values never enter the store in the first place.
Web Console
python -m evolvmem.web_server --host 0.0.0.0 --port 9377 serves a local console for browsing, filtering, editing and deleting memories (/api/stats, /api/memories, /api/memory/<id>/<action> with actions update|archive|restore|delete|hard_delete).
The stats "hot list" (top_accessed) ranks by composite heat — importance × (access_count + 1) — instead of raw hit count, so a high-importance memory with few hits outranks a trivial one that was matched often; each entry carries both access_count and importance so the two signals stay visible. Raw access_count still counts every retrieval hit and remains available as a pure frequency signal elsewhere in the console.
Data Directory
All data is stored under ~/.claude/evolvmem/:
File/Directory | Description |
| SQLite database with FTS5/trigram indexes |
| USearch HNSW vector index |
| BGE-small-zh Q5_K_M GGUF model file |
| Retrieval, forgetting, and other parameters |
Configuration
Edit ~/.claude/evolvmem/config.json to adjust the following parameters:
fts_top_k/vector_top_k: FTS5 and vector search recall counts, default 20 eachfts_weight/vector_weight: Hybrid search weight allocation, default 0.6 / 0.4forget_days_threshold: Days since last access before a memory can be archived, default 90forget_access_count_threshold: Max access count below which memories may be downgraded, default 2embedding_dim: Vector dimension, must match model, default 768embedding_query_prefix/embedding_doc_prefix: Task prefixes applied when embedding queries/documents (nomic defaultssearch_query:/search_document:, set to""to disable)inject_max_count: Max memories injected on SessionStart, default 50inject_max_chars: Total character budget for SessionStart injection, default 8000inject_pinned_max_count/inject_pinned_max_chars: Max count and character budget for the pinned layer, default 10 / 2000inject_index_max_chars: Character budget for the index layer, default 1000 (0 disables the index layer)inject_key_prefix_quota: Max injected memories sharing the same key prefix (first two segments), default 3inject_w_importance/inject_w_recency/inject_w_frequency: Scoring weights for importance/10, recency decay, and log1p(access_count), default 0.5 / 0.3 / 0.2inject_recency_tau_days: Recency decay time constant in days, default 14.0inject_freq_norm_cap: Access-count normalization cap for frequency scoring, default 20inject_w_relevance: Weight of the project-relevance bonus in SessionStart scoring (memories whose key contains the current directory name — or its alias — as a substring), default 0.3inject_project_aliases: Map of directory name → memory key segment for project matching (e.g.{"my-project": "myproj"}), default{}consolidate_similarity_threshold: Similarity threshold above which two memories are near-duplicate merge candidates formemory_consolidate, default 0.92. Note the metric issimilarity = (1+cos)/2(not raw cosine): 0.92 corresponds to a true cosine of ≈ 0.84; for real merges a threshold ≥ 0.97 (≈ cosine 0.94) is recommendedconsolidate_auto_run_hours: Minimum interval between auto-consolidation runs at SessionStart (merges near-identical pairs at a conservative 0.97 threshold; failures never block session start), default 168 (weekly); 0 disablesadd_merge_threshold: Write-time semantic merge threshold — when a new value's similarity to an existing memory meets or exceeds it, the existing memory is superseded instead of adding a near-duplicate, default 0.95expires_at(per-memory field, not config): Optional expiry date set viamemory_add(e.g.2026-12-31); expired memories are excluded from injection and search, and are auto-archivedforget_auto_run_hours: Minimum interval between auto-forgetting runs at SessionStart, default 24forget_rate_limit_days: Minimum interval between two downgrades of the same memory, default 7stop_hook_safe: Prevent Stop Hook infinite loops, default truevalue_max_chars: Hard length cap onmemory_add/memory_replacevalues, default 500value_min_chars: Minimum length formemory_add/memory_replacevalues — shorter values are rejected as having no information content, default 10
Dependencies
Python dependencies (auto-installed by install.sh):
pip install usearch llama-cpp-pythonEmbedding model: BGE-small-zh Q5_K_M GGUF (~50MB), auto-downloaded by install.sh. For manual download, place bge-small-zh-Q5_K_M.gguf in ~/.claude/evolvmem/models/.
Architecture
Three-layer memory structure: active memory (L0, SessionStart system prompt injection) -> exact retrieval (L1, SQLite + FTS5/trigram) -> semantic retrieval (L2, USearch HNSW). Memories self-iterate through auto-extraction, conflict detection, and access-decay forgetting. All data is stored locally, no external services required.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceA full-featured long-term memory system for Claude Code that persistently stores and retrieves preferences, decisions, and project context across sessions using hybrid search and LLM-powered extraction.Last updated1411MIT
- AlicenseAqualityAmaintenanceLocal-first memory for Claude Code and any MCP client: hybrid vector + keyword search and a bi-temporal knowledge graph in one SQLite file. Local embeddings, no API key, $0/token.Last updated512011PolyForm Noncommercial 1.0.0
- Alicense-qualityDmaintenanceProvides persistent, searchable memory for Claude Code using local SQLite, semantic embeddings, and full-text search, enabling Claude to recall and retrieve context across sessions and projects without external services.Last updated163MIT
- Alicense-qualityBmaintenanceLocal-first memory for Claude & AI agents with hybrid search, Graph-RAG, and time-travel, runs entirely on your machine.Last updated651Apache 2.0
Related MCP Connectors
One memory, every AI: Claude, ChatGPT, Perplexity, Gemini, Cursor, OpenClaw, Hermes, any MCP client.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/1942293420/Evolvmem_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server