Aletheia

Official registry Developer tools

A free, local memory and rules hub for AI coding tools, served over MCP.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package aletheia-mem
Claude Code
claude mcp add aletheia -- npx -y aletheia-mem@0.1.2
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "aletheia": {
            "command": "npx",
            "args": [
                "-y",
                "aletheia-mem@0.1.2"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Aletheia
  2. What it is
  3. Install in three commands
  4. How capture works
  5. Which tools it connects to
  6. Measured numbers
  7. How it compares
  8. Sync and remote MCP
  9. Interfaces
  10. Configuration
  11. Limits and unverified claims
  12. Layout
  13. Documents
  14. Contributing
  15. Licence

Aletheia

A free, local memory and rules hub for AI coding tools.
One store on your machine. Any tool reads it over MCP, REST or the CLI.

Install and run. Bun 1.1 or newer is required; the CLI runs on Bun, not Node.

npm install -g aletheia-mem
aletheia-server
# open http://127.0.0.1:37790

Docs site · Frontend guide · Changelog · Issues

Status: alpha. The memory engine and the installers work in tests. No host has been opened with a generated config yet, and answer accuracy is not measured. CI runs on Linux and macOS; Windows is not supported yet and not tested.

1,236 tests pass — 1,236 pass, 0 fail, 19 skipped (run bun test).

English · 中文 · Español · Português (Brasil) · 日本語 · Deutsch · Français · 한국어 · हिन्दी · العربية · Русский. Machine translations live in docs/i18n/; English is canonical. No translation has had native review.

What it is

Aletheia is a free, local memory and rules hub for AI coding tools. One SQLite store is read by any tool over MCP, REST or the CLI, and your rules are written into each tool's own instruction file.

Every coding agent forgets between sessions, and each one remembers differently. Aletheia keeps the memory and the rules once, on your machine, and lets each tool read them in the format it already understands. There is no account, no telemetry and no network call unless you configure a model provider. It listens on loopback only.

Install in three commands

git clone https://github.com/mohamed-ashraf-elsaed/aletheia-mem
cd aletheia-mem
bun bin/aletheia-server.mjs

Open http://127.0.0.1:37790. Needs Bun 1.1 or newer. To install the published package instead, run npm install -g aletheia-mem, then start it with aletheia-server. There are no runtime dependencies to install.

The first screen has four tabs: Work (Aletheia's own view of captured sessions, facts and goals), Memory (search, edit, pin, delete, export), Rules (write once and sync) and Tools (installer status and audit).

How capture works

aletheia install claude-code --write
aletheia install cursor --write
aletheia install --list          # capability level and verification per tool

Without --write the command is a dry run. It prints every file it would change and writes nothing. Each changed file gets a timestamped backup. Hooks call the installed aletheia command, redact secrets and <private> blocks before storing, spool to disk if the database is unavailable, and always exit 0 so they never block the host. Compression is queued, not run inside the hook. Details and the exact hook list per host: docs/25.

Which tools it connects to

Aletheia does not depend on any one tool. It speaks MCP (stdio and HTTP), a plain REST API and a CLI, and it writes the instruction file each tool already reads. What has and has not been checked:

CheckResult
MCP server against the official MCP SDK clientPasses (protocol versions 2025-11-25 to 2024-11-05)
Config formats for Claude Code, Command Code, Cursor, Codex CLI, Gemini CLI, Windsurf, OpenCodeWritten from official docs fetched 2026-10-26 and tested against fixtures. Not tested on a real install.
Claude Desktop MCP configDocumented and merge-tested against a fixture; not opened in the app
Rules files: CLAUDE.md, AGENTS.md, GEMINI.md, .cursor/rules/*.mdc, .windsurf/rules/*.md, Copilot, AiderWritten and tested in temp folders (docs/verification/rules-targets.md)
Any of the above on a real install of that toolNot tested yet. Reports welcome.
Automatic capture through a tool's hooksBuilt for Claude Code, Command Code, Cursor, Codex CLI, Gemini CLI and Windsurf. Each installed hook command is exercised end to end in a temp HOME with a recorded payload; none has been run inside the tool. OpenCode is MCP+rules.
ToolLevelVerificationHook events installed
claude-codefullconfig written from docs, not tested on a real installSessionStart, UserPromptSubmit, PostToolUse, Stop, SessionEnd
command-codefullconfig written from docs, not tested on a real installSessionStart, PostToolUse, Stop
cursorfullconfig written from docs, not tested on a real installsessionStart, beforeSubmitPrompt, postToolUse, afterAgentResponse, stop, sessionEnd
codexfullconfig written from docs, not tested on a real installSessionStart, UserPromptSubmit, PostToolUse, Stop, SessionEnd
gemini-clifullconfig written from docs, not tested on a real installSessionStart, BeforeAgent, AfterTool, AfterAgent, SessionEnd
windsurffullconfig written from docs, not tested on a real installpre_user_prompt, post_run_command, post_write_code, post_cascade_response
opencodemcp+rulesconfig written from docs, not tested on a real installnone (MCP and rules only)

Generated from src/hub/install.mjs via aletheia install --list. A row says tested on a real install only when that column says so; today none do.

Measured numbers

On LoCoMo, claude-mem 15.2.0 as shipped vs this project. These are retrieval numbers, not answer accuracy.

RunQuestionsRecall@5MRRms/query
claude-mem 15.2.0 (as shipped), raw turns — measured-by-us1,53636.0%0.285p50 1,699 ms, p95 2,824 ms (idle, 40 queries)
Raw turns, all 10 conversations1,53657.4%0.4973.72
Dataset facts, all 101,53664.8%0.5915.53
Dataset facts, 3 conversations38367.4%0.6205.80
Dataset facts, 3 conversations, + rerank38373.9%0.686251.16
Dataset facts, all 10, + rerank1,53672.3%0.680646.19
Our rule-extracted facts, all 101,53657.7%0.4924.94

Retrieval only: Recall@5 asks whether the gold evidence is in the top five results. It is not answer accuracy. Every row is measured-by-us on the same LoCoMo questions; no vendor-claimed benchmark number is in this table. Generated from bench/results/2026-10-26/ (bench/claude-mem-baseline.mjs, raw-turns.json (hybrid), dataset-facts.json (hybrid+facts), dataset-facts-3-rerank.json (hybrid+facts), dataset-facts-3-rerank.json (hybrid+facts+rerank), dataset-facts-rerank.json (hybrid+facts+rerank), our-facts-rules.json (hybrid+facts)); re-run with bun scripts/compare-bench.mjs.

Read the table this way:

  • Recall@5 is retrieval. It asks whether the gold evidence is in the top five results. It is not a judgment of whether an answer was right.
  • Answer accuracy is not measured. There is no reader or judge harness yet.
  • The gap is not 2× when both systems receive the same extracted facts. The speed difference is larger than the quality difference.
  • The first local extraction run failed. Ollama llama3.2:1b answered a trivial call, but the facts-v1 prompt over a two-turn window returned HTTP 500 after 4 min 41 s. No fact was extracted from that run.
  • Our rule extractor does not reproduce the fact gain. It added 1,672 facts and moved Recall@5 from 57.3% to 57.7%; the dataset's own facts added 7.3 points. Method, raw files and the negative result: bench/results.

How it compares

CapabilityAletheia (today)claude-memMem0Zep/GraphitiSupermemoryBasic Memory
Local-firstyesyesyes OSSpartial (Graphiti only)yes self-hostyes
Freeyesyes OSSyes OSSpartial (Graphiti free)yes OSSyes OSS
No accountyesyes localyes OSSyes Graphitiyes self-hostyes
MCPyes stdio + HTTPyesyespartial (reference servers)yesyes
RESTyes /v1yes worker APIyesyesyespartial
CLIyesyes npxpartialnopartialyes
Rules sync to tool filesyes 9 targetsnonononopartial (AGENTS.md)
Import/export between toolspartial (own bundle + claude-mem)partial (export/import)partial (platform migration)partialpartialyes Markdown
Hook captureyes six hosts, fixture-tested; no host openedyesnononopartial
Vector searchpartial (optional ONNX)yes Chromayesyesyesyes
Graph / entity memorypartial (entity rows exist; graph retrieval)noyesyesUNVERIFIEDyes wikilinks
Temporal reasoningpartial (bi-temporal facts, invalidation; as-of query)partial (dates)yesyesyespartial
Team sharingpartial (self-hosted sync and devices; team mode)partial (paid)yes paidyes paidyes paidno
Benchmark published and reproduciblepartial (retrieval yes; answer no)novendor onlyvendor onlyvendor onlyno
Languages supported11 (English + 10 machine translations; no native review)29 modes, 32 READMEsSDKSDKSDKSDK

Competitor cells are copied from each project's own public documentation, fetched 2026-10-26. Aletheia cells were updated 2026-10-26 from tested features; installer sources are in docs/25-installers.md. Cells the source did not state read UNVERIFIED.

Sync and remote MCP

Both are self-hosted and free; neither is tested across two real machines.

  • Aletheia Sync is an append-only operation log with one result per operation, device pairing, tombstones, compaction, purge and scoped tokens. Optional end-to-end encryption encrypts payloads on the device before they are sent; it does not hide metadata such as device id, operation kind, entity id, timing or ciphertext size. Unencrypted accounts keep plaintext payloads on the hub. Tested on loopback only. docs/29
  • Remote MCP serves the read tools (and, with a sync or admin token, the write tools) over the MCP Streamable HTTP transport. Each call needs a bearer token, is rate-limited and is written to an append-only audit row. TLS is delegated to a reverse proxy or tunnel; OAuth is not built. docs/30

Interfaces

InterfaceWhereUse
MCP (stdio)bun bin/mcp.mjssearch, timeline, get_observations, save_memory, session_start_context, list_rules, add_rule
MCP (HTTP)sync hub /mcpthe same tools with a bearer token and per-token scope
REST/v1/memories, /v1/search, /v1/timeline, /v1/observations/batch, /v1/context, /v1/events, /v1/info, /v1/workscripts, CI, any language; optional ALETHEIA_API_KEY bearer key
CLIbin/aletheia.mjshooks, shell, cron, sync
Filesrules synceach tool's own instruction file

Configuration

All settings are environment variables. The defaults are safe for a single-user machine.

VariableDefaultMeaning
ALETHEIA_PORT37790Listen port.
ALETHEIA_HOST127.0.0.1Bind address. A non-loopback bind turns on Hub login.
ALETHEIA_DATA_DIR~/.aletheiaEverything this project writes, including hub.db.
ALETHEIA_HUB_DB<data dir>/hub.dbThe shared memory store.
ALETHEIA_API_KEYemptyBearer key required on /v1/* when set.
CLAUDE_MEM_DB~/.claude-mem/claude-mem.dbclaude-mem's database (read-only; importer and optional legacy viewer).
ALETHEIA_RULES_FILE<data dir>/MY-RULES.mdThe legacy Work view's rules file.
ALETHEIA_PROVIDERnonenone, claude-cli or an OpenAI-compatible provider.
ALETHEIA_PROVIDERSemptyOrdered fallback chain, for example ollama,openai.
ALETHEIA_OPENAI_BASE_URL, _API_KEY, _MODELOpenRouter URL, empty, emptyFor openai and human copy.
ALETHEIA_OUTPUT_LANGUAGEemptyLanguage for extracted facts and summaries.
ALETHEIA_BUG_COMPAToff1 reproduces the original's empty observation half.
ALETHEIA_TOOL, ALETHEIA_CWDMCP server: names the calling tool and default project.

Limits and unverified claims

This list is the honest half of the README.

  • No config has been run inside its host application. "Config written from docs, not tested on a real install."
  • CI runs on Linux and macOS. The benchmark runs on Linux only. Windows is not supported yet and not tested.
  • Answer accuracy is not measured. Recall@5 is retrieval, not whether an answer was correct.
  • The 1B-model extraction run failed; facts from our own extractor were measured with the rule extractor only.
  • Sync and E2EE are tested with temp data dirs and a loopback hub. No real tunnel or second host was used.
  • E2EE covers payloads, not metadata.
  • At 50,000 rows, keyword search p95 was 108.1 ms after an FTS fix; the 50 ms target is not met.
  • The 10 README translations are machine-translated. No native speaker has reviewed them.
  • "Works with <tool>" is not claimed for any tool. Only a real install test would justify it.

Layout

bin/            server, CLI, MCP server, sync hub, legacy Work ledger CLI
src/
  server.mjs app.mjs source.mjs config.mjs humancopy.mjs      server and the legacy Work API
  readmodel/ ledger/ refresh/ store/ http/                     legacy Work internals
  hub/            store (memories, FTS5, rules, bundles)  rules-sync  tools  importers  capture  compress  mcp  routes  sync
public/         the one UI (index.html, one-ui.*, tabs/, work-view.js);
                work.html and assets/ are the optional legacy viewer
public-hub/     the old Memory Hub assets, still served at /hub/app.js
prompts/ vendor/ the original's skill prompts and Python scripts
test/           the test suite and a synthetic fixture database
docs/           the documents

Documents

  1. Architecture · Data model · HTTP API · Frontend · Operations
  2. Installers · Sync · Remote MCP · Team mode · Requests and goals
  3. Dependencies and licences · Claude Desktop · Rules targets

Contributing

The most useful contribution is a report from a real install: open an issue with the tool, its version, the command you ran and what the tool did. See CONTRIBUTING.md. Run bun test and bun scripts/gen-tables.mjs --check before a pull request. A new runtime dependency needs a reason.

Licence

Apache-2.0. See NOTICE.md for what comes from claude-mem. Not affiliated with or endorsed by the claude-mem authors or Anthropic.

Frequently asked questions

What is Aletheia?

A free, local memory and rules hub for AI coding tools, served over MCP.

How do I install Aletheia?

It runs on your machine. In Claude Code: claude mcp add aletheia -- npx -y aletheia-mem@0.1.2. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Aletheia need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Aletheia open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Who maintains Aletheia?

It is published by mohamed-ashraf-elsaed. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.