ZeroMem
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ZEROMEM_DB | No | Override the default database path (~/.zeromem/memory.db). | |
| ZEROMEM_MODEL | No | Override the model name. | |
| ZEROMEM_NUM_CTX | No | Override the context window size. | |
| ZEROMEM_OLLAMA_URL | No | Override the Ollama server URL. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
ZeroMem (零忆) local evidence-grounded memory powered by Qwen3.5-4B-Memory-V2. Use memory_remember to store verified notes and memory_recall to retrieve facts with bound original evidence. Retrieval discipline: (1) Single-topic question -> 1 focused keyword memory_recall call; (2) Multi-topic / cross-document question -> issue 2 concise keyword memory_recall calls in parallel; (3) Answer directly once evidence is retrieved; if nothing matches, retry at most once with alternate terms then report no record.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| memory_rememberC | Extract evidence-grounded facts from text using local Qwen3.5-4B-Memory-V2, run 1-round pre-write fact admission/revision, and save to local SQLite. |
| memory_recallA | Search local SQLite memory by keywords across both facts and bound original evidence segments (supports Chinese/English without an embedding model). For compound questions spanning multiple modules or metrics (e.g. API rate limit AND database connection pool), split into 2 concise keyword queries and call this tool in parallel instead of passing one long sentence. |
| memory_statsA | Return local ZeroMem database counts (documents, segments, facts, revised facts, and available namespaces) without invoking an LLM. |
| memory_deleteA | Delete an incorrect or outdated memory by fact_id or delete an entire source document by doc_id from local SQLite. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
The four tools map cleanly onto write (remember), read (recall), inspect (stats), and remove (delete), with no resource/action overlap. The descriptions even clarify the parallel-call pattern for recall versus a single-query usage, leaving little room for misselection.
Every tool uses the same memory_<verb> convention (remember, recall, stats, delete), all snake_case and all verb-driven. The shared prefix also groups the toolset under one obvious domain.
Four tools is a tight, well-scoped surface for a local memory store — each tool covers a distinct lifecycle stage and none feels redundant. Nothing is padded or conspicuously absent at this scope.
Create, search, inspect, and delete are all present, and revision of facts is folded into memory_remember, so the core lifecycle is covered. However, there is no explicit update/edit path for a fact other than delete-and-re-add, and no enumeration/list tool beyond aggregate stats.