rsym-mcp
Click on "Deploy 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., "@rsym-mcp recall what we decided about the auth refactor and expand it verbatim"
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.
rsym-mcp
A model-independent progressive-disclosure memory layer (rsym_context → rsym_expand → rsym_store) for MCP-compatible LLMs.
rsym-mcp is not another chatbot or agent framework. It sits between any external LLM (Claude, ChatGPT Business/Enterprise/Responses API, Cursor, or local Ollama/VOID.NET agents) and your stored records so the LLM reasons over compact, verifiable symbolic cards first and pulls full canonical evidence only when needed.
External LLM (Claude / ChatGPT / Cursor / Ollama)
│ MCP (stdio or Streamable HTTP)
▼
rsym-mcp server
├── rsym_context (compact symbolic cards + SHA-256 drift check)
├── rsym_expand (on-demand verbatim canonical recovery)
└── rsym_store (PII scrub + durable/volatile tier enforcement)
│
├── Durable Canonical + Symbolic Store (SQLite WAL + FTS5)
└── Volatile RAM Store (strictly in-memory for biometric/ephemeral data)Why Two-Layer Memory?
Ordinary summarization silently loses evidence and drops caveats. Standard RAG chunks often retrieve a finding while leaving behind the warning two paragraphs away.
rsym-mcp separates:
Canonical Memory: verbatim original records, provenance IDs, and SHA-256 digests.
Symbolic Memory: concise, plain structured English cards linked back to canonical records—preserving explicit
CONSTRAINT:lines verbatim (e.g.,electrical activity != proof of awareness).
Related MCP server: mnemochain
Honest Engineering Risks (and How rsym-mcp Addresses Them)
Production Risk | How |
1. The Two-Hop Tax — Calling | Cards target ~180–280 tokens so 70–85% of turns finish in 1 hop. Optional |
2. Write-Time Extraction & Drift — Turning raw 50k-token chats into clean summaries is hard, and summaries drift from edited records. |
|
3. BPE Tokenization & Persistence Reality — Invented shorthand fragments in BPE tokenizers, and sensitive telemetry should never hit disk. | Uses plain structured English ( |
Quick Start (Requires Node 22.5+ — Zero Native C++ Build)
git clone https://github.com/OmnisMutus/rsym-mcp.git
cd rsym-mcp
npm install
npm run build
npm test
npm run benchCompress Any Local File or Folder into an AI Handoff Pack (rsym-pack)
Compress a large Markdown file or repository folder locally (auto-skipping .git, node_modules, lockfiles, and binaries) into a compact, SHA-256-verified RSYM_LLM_HANDOFF_PACK you can paste into any LLM chat:
npm run pack -- ./docs/big-spec.md --out rsym-pack.md
npm run pack -- ./my-project-folder --max-clusters 8Connect to Claude Desktop / Cursor (mcpServers)
{
"mcpServers": {
"rsym": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/rsym-mcp/dist/server/cli.js",
"--storage",
"sqlite",
"--db",
"/ABSOLUTE/PATH/TO/.rsym/memory.db"
]
}
}
}For strictly zero-persistence sessions (no SQLite file written):
node dist/server/cli.js --storage ramFor optional local LLM write-time extraction on unstructured transcripts (via Ollama):
RSYM_EXTRACTOR_MODEL=qwen2.5:7b node dist/server/cli.js --extractor ollamaReproducible Benchmark (npm run bench)
Tested on David H. Wolpert (2025), "What computer science has to say about the simulation hypothesis" (J. Phys. Complex. 6, 045010 — 37 pages, 33,983 words, 45,277 BPE tokens):
Top-1 retrieval accuracy:
5 / 5(100%)Constraint retention:
100%across all 5 queries (0%under opaque shorthand anti-pattern)5-turn session (naive full PDF every turn):
226,385tokens5-turn session (
rsym_context+ 40%rsym_expandrate):1,221tokens (-99.46%heuristic />99.1%o200k_base)
Protocol Specification & Contributions
See SPEC.md for the language-independent 3-tool contract (compatible with TypeScript, Rust, or Python servers). Licensed under MIT.
Available Tools
3 toolsrsym_contextRSYM Context (Progressive Disclosure)A
Retrieve compact, hash-verified symbolic context relevant to a question instead of stuffing full history/documents into the prompt. Returns symbol_refs for on-demand expansion via rsym_expand.
Inputs: query (required), max_tokens, include_constraints, auto_expand_if_under_tokens.
rsym_expandRSYM Expand (Canonical Recovery)B
Recover the full verbatim canonical record, provenance metadata, and SHA-256 integrity proof behind any symbolId (e.g. SYM_ENOKI_01) or sourceId (e.g. dataset_001).
Inputs: ref_id (required).
rsym_storeRSYM Store (Canonical + Symbolic Index)B
Store new validated information in Canonical Memory (with PII redaction and durable/volatile tier enforcement) and derive its SHA-256-verified Symbolic Memory card.
Inputs: title (required), project (required), source_id (required), canonical_text (required), +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools map cleanly to distinct actions in a retrieve-expand-store triad: rsym_context fetches compact symbol references, rsym_expand materializes a full record from an ID, and rsym_store writes new validated information. Each description explicitly cross-references the others (context returns symbol_refs for expand), leaving no realistic chance of tool misselection.
All tools share a uniform rsym_ prefix with lowercase snake_case suffixes, which is highly predictable. The only minor deviation is that rsym_context is a noun-style operation while rsym_expand and rsym_store are verbs, but the underlying pattern is still readable and consistent.
Three tools is a lean, well-scoped set for a memory/context service, and each tool clearly earns its place with no redundancy or bloat. It sits at the low end of the typical 3-15 range, so it is slightly thin but not inappropriately so.
The core lifecycle of storing, retrieving context, and expanding a symbol is covered, but there is no operation to update, delete, expire, or list/search stored symbols. An agent that needs to manage or audit Canonical Memory beyond write-and-read will hit a dead end, which is a notable gap for the stated domain.
Maintenance
Related MCP Connectors
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Cross-session memory for AI agents with a Source Receipt for every memory, over MCP.
Persistent memory for AI agents to retain, retrieve, and recall conversation context through MCP.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceEnables AI agents to persist, recall, expand, trace, and inspect durable memories with provenance through MCP tools.MIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to store and recall an append-only, hash-chained memory with citation-backed semantic search, fact verification, contradiction detection, and replay/audit capabilities through local MCP tools.1AGPL 3.0
- AlicenseNot gradedqualityNot gradedmaintenanceEnables LLM clients to manage hierarchical working, dialogue, and episodic memories with decay-aware consolidation, hybrid lexical/vector retrieval, knowledge-graph expansion, and semantic caching over MCP.MIT
- AlicenseNot gradedqualityCmaintenanceEnables any MCP-capable client to write, search, list, and forget long-term memories stored as human-readable markdown cards, with hybrid vector-plus-keyword retrieval and automatic relevance-based injection into context.MIT