Chilon Recall
OfficialChilon Recall is an MCP server for local-first, source-backed retrieval and learning workflows over your documents.
Inspect knowledge state – check index/provider readiness, list indexed documents, and list recoverable backups (
rag_status,rag_list_documents,rag_list_backups).Query for evidence – retrieve ranked, source-backed passages from your local index (
rag_query).Manage configuration safely – update approved non-secret settings atomically (
rag_save_config).Build and maintain indexes – preview then execute staged full builds, incremental content-hash syncs, safe clears, and restores (
rag_build,rag_sync,rag_clear_index,rag_restore_index).Run learning workflows – generate source-grounded Q&A, concept comparisons, chapter summaries, and review outlines (
textbook_qa,concept_compare,chapter_summary,review_outline).
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., "@Chilon Recall What do my notes say about retrieval practice?"
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.
Chilon Recall
Local-first knowledge retrieval for learning and serious knowledge work.
English (this page) · 简体中文
Quick start · Tools · MCP clients · Security · Contributing
Chilon Recall turns your own text documents into a private, source-backed knowledge base that any local MCP client can use. Ask what your materials say, compare concepts, build review outlines, or recover a claim from months of notes — while keeping source paths, evidence boundaries, and index operations visible.
It is an independent retrieval companion in the Chilon Knowledge Work Harness family. The two projects remain separate: Chilon Recall owns local retrieval; the harness can orchestrate broader long-running knowledge work.
Contents
Related MCP server: Hoard
Quick start
New to MCP? You only need a document folder, Node.js 20+, and Python 3.10+. Follow these three steps first; client configuration and technical details come later.
Using an AI coding agent instead (Claude Code, Codex CLI, Cursor, …)? Paste this to it: "Read https://raw.githubusercontent.com/ctrlcakepro/chilon-recall/main/AGENTS_INSTALL.md and follow it to install chilon-recall for me. My document folder is:
<path>." It automates everything below except typing your own API key — see AGENTS_INSTALL.md for exactly what it will and won't do on its own.
1. Install into your document folder
Run the command below once. It creates a private configuration and a managed Python engine; it never stores API keys in the package or configuration file.
npx -y chilon-recall@0.1.5 install C:\path\to\your\documents2. Set your provider key
Open the generated chilon-recall.json and replace the placeholder embedding.base_url (https://api.example.com/v1) and embedding.model (your-embedding-model) with your real provider values, then set the key only in your environment. doctor treats those placeholders as not-ready and will not report configuration.ready: true until you edit them.
$env:RAG_MANAGER_CONFIG = "C:\path\to\your\documents\chilon-recall.json"
$env:RAG_API_KEY = "your-provider-key"
npx -y chilon-recall@0.1.5 doctordoctor is an offline check: it catches the template placeholders and a missing key, but it never contacts your provider, so a real-looking base_url with a typo, or a wrong key, still passes. Then confirm them online with the key wizard:
npx -y chilon-recall@0.1.5 key --base-url https://your-provider.example/v1It prompts for the key once (hidden input), calls the provider's own /models endpoint — a mistyped URL fails here, and so does a key the provider rejects — suggests an embedding and reranker model, and prints ready-to-run $env:/setx/export commands with the key already filled in. chilon-recall uses the key for that one request only and never writes it to a file; the printed setx / >> ~/.bashrc commands do store it in plaintext if you run them.
Paste the key as a single line. The prompt submits at the first line break it receives, including one inside the pasted text: anything after it is discarded. If your clipboard holds more than the key (for example a copied
KEY=...block), copy the key alone.
3. Connect one client
Start with Codex, Claude Desktop, or Qoder. The client starts the local server for you; you do not need to keep a separate terminal open.
Why Chilon Recall?
Grounded learning | Answer from the material you chose, not from an untraceable memory of it. |
Source-backed answers | Every hit carries a relative file path, headings, an approximate line number, and retrieval scores. |
Local-first control | Documents and FAISS indexes stay on your machine. Only the text sent to your configured embedding/reranking providers leaves it. |
Safe operations | Builds happen in staging; clear and restore actions use previews, short-lived confirmation tokens, and recoverable backups. |
MCP portability | One |
What you can do
Chilon Recall supports both direct retrieval and reusable learning workflows:
Need | Tool | What it returns |
Recover a claim from notes or reports |
| Ranked passages with source metadata |
Answer from course or reference material |
| Direct-answer evidence packet |
Distinguish two ideas or methods |
| Evidence for a comparison table |
Turn a chapter into structured notes |
| Broad summary evidence and coverage cautions |
Prepare for review or an exam |
| Concepts, relationships, confusions, and practice prompts |
Refresh the index after documents change |
| Added/modified/deleted/unchanged file counts, plus reused and re-embedded vector counts |
The bundled synthetic demo material covers retrieval practice, spaced review, evidence boundaries, and research triangulation. It is safe to redistribute and contains no private or copyrighted textbook content.
Detailed setup
1. Install with npm
Requires Node.js 20+ and Python 3.10+.
Use the published, pinned npm release to create a private configuration and install the isolated Python engine with one command:
npx -y chilon-recall@0.1.5 install C:\path\to\your\documentsThis writes chilon-recall.json in the document directory and creates a persistent managed Python engine in the operating system's user-data area. Both files are required for local operation; credentials remain outside both of them.
The managed engine lives outside the temporary npx cache. Set
CHILON_RECALL_HOMEto choose a different persistent location.Run
setupagain after upgrading the package.Installation never writes credentials anywhere. Set the provider key in your own environment afterwards.
To validate the runtime and private configuration:
$env:RAG_MANAGER_CONFIG = "C:\path\to\your\documents\chilon-recall.json"
$env:RAG_API_KEY = "your-provider-key"
npx -y chilon-recall@0.1.5 doctordoctor exits 0 only when Python, the managed engine, the configuration, and its credentials are all ready — otherwise 1, so it is safe to gate a script on. It also refuses to call the placeholder embedding.base_url/model from the install template "ready".
If you installed from npm, skip ahead to Connect an MCP client. The remaining subsections are for source checkouts and custom configurations.
2. Manual private configuration
Copy config/chilon-recall.example.json to config/chilon-recall.json. The destination is ignored by Git.
Set project_dir to the folder containing your documents and rag_dir to a dedicated child directory. Keep credentials out of JSON:
# Windows PowerShell
$env:RAG_MANAGER_CONFIG = (Resolve-Path .\config\chilon-recall.json)
$env:RAG_API_KEY = "your-provider-key"
$env:CHILON_RECALL_PYTHON = (Resolve-Path .\.venv\Scripts\python.exe)# macOS or Linux
export RAG_MANAGER_CONFIG="$PWD/config/chilon-recall.json"
export RAG_API_KEY="your-provider-key"
export CHILON_RECALL_PYTHON="$PWD/.venv/bin/python"config/siliconflow.example.json is included as a provider example. Chilon Recall is not tied to SiliconFlow: embeddings use an OpenAI-compatible /embeddings endpoint, and reranking uses a Cohere-compatible rerank endpoint. Disable reranking if your provider does not offer it.
3. Start the source-checkout MCP server
npm startThe server uses stdio, so it normally runs under an MCP client rather than in a standalone interactive terminal. Connect it, call rag_status, preview rag_build, and execute the build with the returned confirmation token. After documents change, refresh with rag_sync instead of rebuilding; it reuses vectors for unchanged files.
Connect an MCP client
Use absolute paths in client configuration. They are more reliable than assuming a launch directory.
Windows: prefer
"command": "node"with an absolute path tocli.mjs/server.mjsover"command": "npx". Some MCP clients spawncommanddirectly (bypassing the shell), and on Windowsnpxis a.cmdshim that a direct, non-shell spawn cannot resolve — the client reports the command as not found even though it works from a terminal.node <absolute path>avoids the shim entirely.
Client | Configuration entry point |
| |
| |
| |
Qoder client Settings → MCP → My Servers plus a generated |
Codex
Current Codex clients support local stdio MCP servers and share the same config.toml. Add a server through the ChatGPT desktop app's Settings → MCP servers, with codex mcp add, or in ~/.codex/config.toml.
Source checkout:
[mcp_servers.chilon-recall]
command = "node"
args = ["/absolute/path/to/chilon-recall/scripts/server.mjs"]
env_vars = ["RAG_MANAGER_CONFIG", "RAG_API_KEY", "RAG_RERANK_API_KEY", "CHILON_RECALL_PYTHON"]
startup_timeout_sec = 15
tool_timeout_sec = 1800
default_tools_approval_mode = "writes"npm release — run npx -y chilon-recall@0.1.5 setup first under the same OS account. A pinned version prevents an unexpected package upgrade from changing a working MCP server.
[mcp_servers.chilon-recall]
command = "npx"
args = ["-y", "chilon-recall@0.1.5", "mcp"]
env_vars = ["RAG_MANAGER_CONFIG", "RAG_API_KEY", "RAG_RERANK_API_KEY"]
startup_timeout_sec = 15
tool_timeout_sec = 1800
default_tools_approval_mode = "writes"The repository is also a valid Codex plugin (.codex-plugin/plugin.json, .mcp.json, and bundled skills). For a cloned source checkout, use the direct node configuration above and set CHILON_RECALL_PYTHON to its virtual environment.
DeepSeek Harness
The repository ships a DeepSeek Harness bundle. It uses DSH's official @deepseek-ai/dsh-mcp-client bridge, so the existing MCP tools appear under stable names such as mcp__chilon-recall__rag_status; the retrieval engine is not duplicated and credentials are not sent as tool arguments.
Current DSH limitation: the bundle forwards only
RAG_MANAGER_CONFIG,RAG_API_KEY,RAG_RERANK_API_KEY,CHILON_RECALL_HOME, andCHILON_RECALL_PYTHON. Use the standard RAG key variable names with DSH until arbitraryapi_key_envforwarding is added.
One-off run — apply the overlay without installing the bundle:
$env:CHILON_RECALL_ROOT = (Resolve-Path .).Path
$env:RAG_MANAGER_CONFIG = (Resolve-Path .\config\chilon-recall.json).Path
$env:RAG_API_KEY = "your-provider-key"
dsh --profile web --patch .\dsh\cordis.patch.ymlPersistent profile — install the repository bundle once, then boot the profile. On Windows, current DSH/pnpm path forwarding can split a source path containing spaces; use its 8.3 short path when necessary:
$bundlePathForDsh = (cmd /c "for %I in (.) do @echo %~sI").Trim()
dsh plugin --profile web add $bundlePathForDsh
dsh --profile webThe bundle runs node scripts/cli.mjs mcp from CHILON_RECALL_ROOT. Set RAG_RERANK_API_KEY, CHILON_RECALL_HOME, or CHILON_RECALL_PYTHON when your private configuration needs them. DSH is still a developer-preview product, so its bundle or plugin APIs may change independently of Chilon Recall.
Claude Desktop
Add this to claude_desktop_config.json, replacing every example path:
{
"mcpServers": {
"chilon-recall": {
"command": "node",
"args": [
"/absolute/path/to/chilon-recall/scripts/server.mjs"
],
"env": {
"RAG_MANAGER_CONFIG": "/absolute/path/to/chilon-recall/config/chilon-recall.json",
"CHILON_RECALL_PYTHON": "/absolute/path/to/chilon-recall/.venv/bin/python"
}
}
}
}For an npm release, replace command and args with the following and omit CHILON_RECALL_PYTHON; setup manages it:
"command": "npx",
"args": ["-y", "chilon-recall@0.1.5", "mcp"]Set RAG_API_KEY in the environment inherited by Claude Desktop, or add it only to your private local client configuration when your operating system cannot provide it. Claude Desktop stores env values in a local JSON file, so restrict file permissions and never commit that file. On Windows, use the virtual environment's python.exe path.
Qoder
The Qoder client loads MCP servers from its own settings, and project-level skills and rules from the .qoder/ directory. Generate all three from a checkout or an npm install:
npx -y chilon-recall@0.1.5 qoder C:\path\to\your\projectThis writes .qoder/mcp.json, .qoder/skills/<name>/SKILL.md for every bundled skill, and .qoder/rules/chilon-recall.md. Add --force to regenerate over existing files.
Generating from
npxembeds an unstable path.npxunpacks the package into a temporary per-run cache (e.g....\npm-cache\_npx\<hash>\...on Windows), and thenode/cli.mjspath written into.qoder/mcp.jsonpoints there. Clearing the npm cache or bumping the pinned version moves that path and the MCP server stops starting, with no error beyond Qoder failing to load it. The command detects this and prints a warning; prefer runningchilon-recall qoderfrom a stable install (npm install -g chilon-recall@0.1.5, or a source checkout) so the generated path survives cache clears.
Qoder does not read .qoder/mcp.json automatically; it is a shareable snippet. Open Qoder client Settings → MCP → My Servers → + Add, paste its contents, and replace the RAG_MANAGER_CONFIG placeholder with your private configuration path:
{
"mcpServers": {
"chilon-recall": {
"command": "node",
"args": [
"/absolute/path/to/chilon-recall/scripts/cli.mjs",
"mcp"
],
"env": {
"RAG_MANAGER_CONFIG": "<absolute path to your private chilon-recall.json>"
}
}
}
}Set RAG_API_KEY (and RAG_RERANK_API_KEY when reranking is enabled) in the environment Qoder inherits. The generated files are safe to commit; credentials never belong in them. Restart the Qoder client so the generated skills and rules load, then confirm the tools under My Servers.
How it works
Private text documents
│
▼
heading-aware chunking ──► OpenAI-compatible embeddings
│
▼
local FAISS index + JSON source metadata
│
question ──► vector recall ──► optional reranking
│
▼
structured MCP evidence with relative source pathsThe Node.js MCP host owns configuration validation, source discovery, approval tokens, path safety, backups, and client-facing tools. The Python engine owns chunking, provider calls, FAISS serialization, and retrieval. Index files are read and written through Python byte I/O so non-ASCII paths work reliably on Windows.
Tool reference
Read-only tools:
rag_status · rag_list_documents · rag_query · rag_list_backups · textbook_qa · concept_compare · chapter_summary · review_outline
Configuration and index tools:
rag_save_configupdates only schema-approved, non-secret fields and creates a backup of the JSON file.rag_build,rag_sync,rag_clear_index, andrag_restore_indexrequireaction: "preview"first. The preview returns a short-lived token bound to the current configuration and source/index state.rag_synchashes files, reuses compatible unchanged vectors, and reconciles added, modified, and deleted files. It falls back to a full rebuild when indexing settings change or an older manifest lacks the required hashes.
Provider configuration
Embeddings
The first release supports the openai-compatible adapter. Configure base_url, model, api_key_env, and optionally doc_prefix and query_prefix.
The key itself must exist only in the named environment variable.
Reranking
The cohere-compatible adapter sends model, query, documents, top_n, and return_documents to the configured URL. Set enabled to false to return top FAISS matches directly.
Provider compatibility is an interface claim, not a guarantee that every nominally compatible service behaves identically. Test your selected models with the synthetic demo before indexing private documents or incurring large costs.
Data safety
The server binds to one
RAG_MANAGER_CONFIG; individual tool calls cannot select arbitrary configuration files.Secret-shaped keys are rejected in Python configuration loading. Provider credentials come from environment variables.
Absolute source paths are hidden unless
display.expose_absolute_pathsis explicitly enabled.The active index, staging area, and backups must resolve inside
rag_dir; root and out-of-bound operations are rejected.A new build never modifies the active index until all required files exist.
Clearing moves the active index into
backups/. Restoring backs up the current index first.Confirmation tokens expire after ten minutes, are single-use, and become invalid if source, config, or index state changes.
Before publishing changes, run:
npm run check
npm audit --audit-level=highThe publication check rejects likely secrets, personal email addresses, and user-profile paths in tracked source files.
Limits
Version 0.1.5 indexes UTF-8
.md,.txt,.rst, and.csvtext. Convert PDFs to reviewed text first; scanned PDFs need OCR.The included chunker recognizes Markdown
#and##headings. It does not yet parse tables, citations, or document-native structure semantically.rag_buildis a deliberate full rebuild. Userag_syncfor content-hash incremental synchronization; it always writes a new staged FAISS index so row IDs remain aligned with metadata.Local embedding and reranker models are not bundled in the first release.
Retrieval returns evidence candidates; it does not prove that the collection is complete, current, correct, or internally consistent.
Roadmap
First-class PDF extraction/OCR adapters with coverage reports
Local embedding and reranking providers
Additional source filters and collection namespaces
Evaluation fixtures for retrieval quality and citation coverage
Publish the validated npm package and a separate Python engine package
Development
Use this workflow only when developing Chilon Recall, or when you need a source-based configuration instead of the npm installer:
git clone https://github.com/ctrlcakepro/chilon-recall.git
cd chilon-recall
npm install
python -m venv .venvActivate the virtual environment, then install the Python engine:
# Windows PowerShell
.\.venv\Scripts\Activate.ps1
python -m pip install -e .# macOS or Linux
source .venv/bin/activate
python -m pip install -e .Then run the checks:
npm run checkTests use synthetic documents and mock provider endpoints, so they do not need a paid API key. See CONTRIBUTING.md and SECURITY.md.
License
MIT © 2026 ctrlcakepro and contributors.
Available Tools
13 toolschapter_summaryGrounded Chapter SummaryCRead-only
Retrieve evidence for a structured chapter or topic summary.
Inputs: chapterOrTopic (required), top, emphasis, candidates.
concept_compareGrounded Concept ComparisonCRead-only
Retrieve evidence for comparing two concepts across clear dimensions.
Inputs: conceptA (required), conceptB (required), top, candidates, +1 more.
rag_buildBuild Knowledge IndexADestructive
Preview or execute a staged index build. Execution requires the unexpired token returned by preview.
Inputs: action, confirmationToken.
rag_clear_indexClear Active Index SafelyADestructive
Preview or move the active index into a recoverable backup. Execution requires a matching token.
Inputs: action, confirmationToken.
rag_list_backupsList Index BackupsARead-only
List recoverable index backups without exposing their absolute paths.
Inputs: no named parameters.
rag_list_documentsList Knowledge SourcesARead-only
List text documents included by the fixed knowledge-base configuration.
Inputs: limit.
rag_queryQuery Knowledge IndexBRead-only
Retrieve source-backed passages from the active local index.
Inputs: question (required), top, candidates.
rag_restore_indexRestore Index BackupADestructive
Preview or restore a named backup. Execution requires a matching token and backs up the current index first.
Inputs: backupId (required), action, confirmationToken.
rag_save_configUpdate Knowledge ConfigurationB
Atomically update approved non-secret settings in the server's fixed configuration file.
Inputs: ragDir, maxChars, minChars, batchSize, +15 more.
rag_statusKnowledge Base StatusARead-only
Inspect source coverage, provider readiness, and the active index without changing data.
Inputs: no named parameters.
rag_syncSynchronize Knowledge IndexADestructive
Preview or execute a staged content-hash sync. Unchanged files reuse existing vectors; added, modified, and deleted files are reconciled safely.
Inputs: action, confirmationToken.
review_outlineEvidence-backed Review OutlineCRead-only
Retrieve evidence and organize it for focused study or review.
Inputs: topic (required), top, candidates, reviewMode.
textbook_qaSource-backed Learning Q&ACRead-only
Retrieve evidence for answering a learning question from the configured knowledge base.
Inputs: question (required), top, depth, candidates.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
The tools split into RAG lifecycle operations and study-retrieval modes, each with distinct purposes. rag_sync and rag_build are the closest pair, but their descriptions differentiate incremental reconciliation from full index build, so an agent can usually pick correctly.
All names use snake_case and the rag_ prefix clearly groups administration tools, but the study helpers follow a noun-phrase style rather than the verb_noun convention. The one outlier is rag_status, which uses a noun where an action verb would be more consistent.
Thirteen tools is within the well-scoped range, and each tool has a non-redundant role: nine cover the RAG index lifecycle and four cover retrieval/study modes. No tool feels like filler.
The RAG lifecycle is covered end-to-end: build, sync, query, status, config, clear/backup, list backups, and restore. The study side has compare, summary, outline, and Q&A retrieval, so the server supports its apparent purpose without obvious dead ends.
Maintenance
Related MCP Connectors
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceLocal-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.36 npmMIT
- AlicenseNot gradedqualityDmaintenanceLocal MCP server for indexing personal knowledge into SQLite with hybrid search, chunk-level citations, memory tools, and agent orchestration.4MIT
- AlicenseNot gradedqualityCmaintenanceLocal-first MCP server for indexing and searching research materials (papers, notes, logs, READMEs) using SQLite FTS, with tools for memory management and evidence retrieval.MIT
- AlicenseNot gradedqualityCmaintenanceRead-only local-first MCP server enabling AI assistants to semantically search private Markdown, PDF, and Tika-backed knowledge bases without data upload.44MIT