Living Memory
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.
dsh-living-memory-mcp
Zero-dependency SQLite Living Memory MCP bridge — share one WAL-safe memory.sqlite3 ledger (facts, lessons, decisions, todos) across DeepSeek Harness (DSH), Mistral Vibe CLI, Claude Code, Codex, and Cursor.
Zero dependencies: Python 3.9+ standard library only (optional
numpy+ OpenAI-compatible embeddings endpoint for hybrid vector retrieval).DSH native schema parity: Registers the
legion_bigramSQLite UDF somemories_ftstriggers,checksum,sourcetags, andmemories_vecstay 100% compatible with DSH'sdsh-living-memoryledger.Dual-ecosystem package: Ships both DSH plugin manifests (
package.json,cordis.patch.yml,dsh-plugin.json,index.js) and Agent Plugins 1.0 manifests (plugin.json,mcp.json,skills/living-memory/SKILL.md).
DeepSeek Harness (dsh-living-memory) ──┐
Mistral Vibe CLI (Agent Plugin / MCP) ─┼──► ~/.dsh/dsh-living-memory/memory.sqlite3
Claude Code / Codex / Cursor (MCP) ────┘ (SQLite WAL · FTS5 + LIKE RRF · Optional Vectors)Install
1. DeepSeek Harness (DSH Plugin)
dsh plugin --profile desktop add github:Potato-AI0815/dsh-living-memory-mcp
# or for web profile:
dsh plugin --profile web add github:Potato-AI0815/dsh-living-memory-mcpGenerate ready-to-paste configs for your external CLI clients (Vibe / Claude / Codex / Cursor):
node bin/dsh-living-memory-mcp.mjs --print-config2. Mistral Vibe CLI (Agent Plugins 1.0)
Clone or copy this repository into ~/.vibe/plugins/dsh-living-memory-mcp/, then run /reload. Tools appear under the livingMemory namespace.
Windows note:
mcp.jsonusespython3(POSIX default). On Windows, Microsoft Store'sWindowsApps/python3.exestub often interceptspython3— replacemcp.jsonwithmcp.windows.example.json(usespython), or launch vianode bin/dsh-living-memory-mcp.mjswhich auto-detects a real Python 3 interpreter.
3. Any MCP Client (Claude Code / Codex / Cursor)
{
"mcpServers": {
"living-memory": {
"command": "python3",
"args": ["/absolute/path/to/dsh-living-memory-mcp/server/mcp_living_memory.py"],
"env": {
"PYTHONUTF8": "1",
"PYTHONIOENCODING": "utf-8",
"DSH_LIVING_MEMORY_DB": "~/.dsh/dsh-living-memory/memory.sqlite3"
}
}
}
}Bootstrap a Fresh Ledger (No DSH Required)
python3 server/mcp_living_memory.py --init --db ~/memory.sqlite3
python3 server/mcp_living_memory.py --versionRelated MCP server: local-memory
Tools
Tool | Purpose |
| Hybrid FTS5 + raw-text |
| Most recent active memories (descending by ID) |
| Active (open) todos only |
| Write a |
| Mark an open todo |
| Read-only counts by type, space, FTS/vector index coverage |
Configuration
Variable | Default | Meaning |
|
| Ledger path ( |
|
| Set |
|
| UTC offset in hours written into |
|
|
|
|
| Always fuse a raw-text |
| (empty) | OpenAI-compatible embeddings endpoint; enables hybrid vector retrieval |
|
| Embedding HTTP timeout in seconds |
|
|
|
Vector search is off until DSH_EMBED_URL is configured. Everything else runs 100% offline.
CJK & Host Compatibility Note
DSH's built-in dsh-living-memory may index memories_fts using a host CJK word segmenter, whereas this zero-dependency server registers a deterministic CJK-bigram + word + date-normalizer legion_bigram UDF. To eliminate silent Chinese recall misses on mixed ledgers, memory_search always fuses a raw-text LIKE ranking pass with FTS5 (and optional vectors) via RRF (k=40), and degrades gracefully whenever numpy, memories_vec, memories_fts, or the embeddings endpoint is absent.
Test
python3 tests/smoke_test.py # 45/45 write + FTS + protocol checks (temp ledger)
python3 tests/smoke_test.py --db ~/memory.sqlite3 --read-only # 20/20 non-mutating checks against an existing ledgerLicense
MIT — see LICENSE.
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, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceCross-client AI memory hub for AI agents. Lets Claude Code, Cursor, Windsurf, and 20+ other clients share one physical SQLite memory database. Features bi-temporal time axes, source attribution, Q-Value usage-based ranking, and FTS5 full-text search with SQLite triggers.286 PyPI1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to keep durable long-term memory on the user's own machine, writing sessions and messages into a local SQLite database and retrieving them via keyword, exact, or optional semantic search with surrounding context. Runs entirely offline over stdio, so no cloud service or API key is required to give an agent recall across sessions.1MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to store, search, and recall persistent project-scoped and cross-project context — decisions, preferences, error patterns, file notes, and guidelines — using local SQLite with semantic or keyword search and no external API calls. An optional companion task server in the same package lets agents pick up queued work and execute it autonomously using that accumulated memory.-
- FlicenseNot gradedqualityAmaintenanceGives AI coding agents direct, local-first read/write access to persistent memory — project decisions, preferences, error patterns, research, and cross-project guidelines — retrieved by semantic search backed by SQLite with no API keys or network calls. A companion server also exposes optional autonomous task-queue execution.-