Rei Memory
FreeNot checkedRead-only MCP server that lets Claude/Rei query a curated SEED_KERNEL repository of over 1,677 theories via full-text search, ID lookup, or STEP metadata.
About
Read-only MCP server that lets Claude/Rei query a curated SEED_KERNEL repository of over 1,677 theories via full-text search, ID lookup, or STEP metadata.
README
Read-only MCP server that lets Rei / Claude query the Rei-AIOS SEED_KERNEL (1,677+ theories as of 2026-08-19) by full-text search, ID, or STEP.
Phase 1 — read only. No write path is exposed as an MCP tool. Ingestion is a one-shot script; theory additions and promotions belong to Phase 2 (seed_propose staging table).
Design principle
The three-tier taxonomy (proven / hypothesis / speculative) is a required schema field. A theory without a tier cannot be ingested. The epidemic-hygiene discipline is enforced by the schema, not by human attention.
Tools
| Tool | Purpose |
|---|---|
seed_search(query, tier?, step_min?, step_max?, limit?) |
FTS5 full-text over title+body. Trigram tokenizer for Japanese. |
seed_get(theory_id, include_links?) |
Full body + fan-out links (depends / contradicts / generalizes / related). Missing ID → {"error": "not_found", ...}. |
seed_list_steps(step_min?, step_max?) |
Per-STEP count + tier distribution. Only ~3% of current SEED_KERNEL rows carry a STEP marker; the rest fall under the step: null bucket. |
Setup
Python 3.11+ and SQLite 3.34+ (for FTS5 trigram tokenizer — bundled with Python 3.11+).
# from repo root
python -m venv .venv
.venv/Scripts/activate # Windows
source .venv/bin/activate # Unix
pip install -e '.[dev]'
Building the database
The SEED_KERNEL lives as TypeScript source in rei-aios/src/axiom-os/seed-kernel*.ts. Dump it to JSONL, then ingest:
# 1. dump (run inside the rei-aios repo; script is bundled there)
cd path/to/rei-aios
npx tsx scripts/dump-seed-kernel-json.ts > /path/to/rei-memory-mcp/data/seed-kernel-dump.jsonl
# 2. ingest into SQLite
cd path/to/rei-memory-mcp
python scripts/ingest.py \
--input data/seed-kernel-dump.jsonl \
--db data/seed_kernel.db
Both data/*.jsonl and data/*.db are gitignored — regenerate as needed.
Running the MCP server
# stdio transport (default)
python -m rei_memory_mcp.server
# or via console script:
rei-memory-mcp
The DB path is picked from REI_MEMORY_DB (default: ./data/seed_kernel.db).
Claude Desktop configuration
Add to your Claude Desktop MCP settings (adjust paths):
{
"mcpServers": {
"rei-memory": {
"command": "python",
"args": ["-m", "rei_memory_mcp.server"],
"cwd": "C:/Users/user/rei-memory-mcp",
"env": {
"REI_MEMORY_DB": "C:/Users/user/rei-memory-mcp/data/seed_kernel.db"
}
}
}
}
Tests
pytest
The test on Japanese queries (test_search.py::test_japanese_query_hits) is the load-bearing signal — if that fails, the trigram tokenizer is broken and search is silently useless.
Honest scope
- Read-only. No write MCP tool exists on purpose. Wrong memories should not have a fast path to form.
- Trigram Japanese. Queries of 2 characters or shorter will not match Japanese text (that is how the trigram tokenizer works). Use 3+ character queries.
- STEP coverage. Only ~3% of current SEED_KERNEL entries embed a
STEP Nmarker in their body text.seed_list_stepsfaithfully reports this. - id shape. The current SEED_KERNEL mixes three ID patterns (
T-\d+,invented-*, kebab-case slug). All three are accepted; no reshaping. - No vector search. FTS5 trigram is the whole retrieval story in Phase 1. If it turns out to be insufficient, Phase 2 can add embeddings alongside — not replace.
Roadmap (not implemented)
- Phase 2 —
seed_proposestaging table + human approval → promotion intotheories. Direct writes totheorieswill not be exposed as a tool. - Phase 3 — promotion history table so the arc of a theory (hypothesis → proven) is itself an artifact.
- Phase 4 — access-count decay for ranking.
immutable: truerows are exempt; nothing is ever deleted.
License
AGPL-3.0 (with commercial dual-license terms — see LICENSE). Matches the rei-aios main repository.
急がず、ゆっくりと。種は育ちます。
Install Rei Memory in Claude Desktop, Claude Code & Cursor
unyly install rei-memory-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add rei-memory-mcp -- uvx --from git+https://github.com/fc0web/rei-memory-mcp rei-memory-mcpStep-by-step: how to install Rei Memory
FAQ
Is Rei Memory MCP free?
Yes, Rei Memory MCP is free — one-click install via Unyly at no cost.
Does Rei Memory need an API key?
No, Rei Memory runs without API keys or environment variables.
Is Rei Memory hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Rei Memory in Claude Desktop, Claude Code or Cursor?
Open Rei Memory on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Rei Memory with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
