# aletheia-mem [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/mohamed-ashraf-elsaed/aletheia-mem  
**GitHub Stars:** 10  
**npm Downloads (last month):** 1779  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/aletheia-mem

## Description
Aletheia: a free, local memory and rules hub for AI coding tools such as Claude Code, Codex, Cursor and Gemini CLI. One store any tool reads over MCP, REST or CLI; rules synced to CLAUDE.md, AGENTS.md, Cursor and more; export and import to move between to

## Tools
Capabilities this server exposes over MCP:

- **search** — Search shared memory
- **timeline** — Show context around a memory
- **get_observations** — Get full memory text by id
- **file_outline** — Outline of a code file, to read a line range instead of the whole file
- **save_memory** — Save a memory
- **session_start_context** — Load session start context
- **fact_history** — Show how a fact changed
- **list_rules** — List standing rules
- **add_rule** — Add a standing rule
- **confirm_rule** — Confirm a rule is still right
- **dismiss_memory** — Dismiss a memory
- **restore_memory** — Restore a dismissed memory
- **work_state_write** — Write a work-state list
- **work_state_read** — Read a work-state list
- **team_brief** — Brief for one team project (listed only when the caller is in a team)
- **team_search** — Search what teammates shared (listed only when the caller is in a team)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "aletheia-mem": {
    "command": "npx",
    "args": ["-y","aletheia-mem","mcp"]
  }
}
```

## Documentation

## What aletheia-mem does

aletheia-mem is a local knowledge and memory hub for AI coding tools. It gives agents one shared store for project observations, rules, session context, work-state lists, and team-shared information. The store can be accessed through MCP, a REST API, or the command-line interface.

The project is designed for tools including Claude Code, Codex CLI, Cursor, Gemini CLI, Windsurf, and OpenCode. Rules can be maintained centrally and written into the instruction-file formats those tools already read, including `CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, Cursor rule files, and Windsurf rule files.

## How it works

The server runs locally and listens on loopback. Its shared data is kept in a SQLite store, so several coding tools can use the same memory rather than maintaining separate agent-specific histories. MCP is available over stdio and HTTP, alongside the REST and CLI interfaces.

Memory capture can be installed into supported coding tools with the `aletheia install` command. Installers can update host configuration and add hooks; a dry-run mode lists the files that would change without writing them, while changed files receive timestamped backups. Hooks redact secrets and `<private>` blocks before storing captured content, queue data on disk if the database is unavailable, and exit successfully so they do not block the host tool.

## Setup and configuration

Bun 1.1 or newer is required. The published package can be installed globally and started as follows:

```bash
npm install -g aletheia-mem
aletheia-server
```

The web interface is available at `http://127.0.0.1:37790`. From a source checkout, run `bun bin/aletheia-server.mjs` instead. No runtime dependency installation is required after obtaining the project or package.

To configure capture for a host, use commands such as:

```bash
aletheia install claude-code --write
aletheia install cursor --write
aletheia install --list
```

The `--list` command reports capability and verification information for available integrations. The server does not require an account or telemetry; network access is not used unless a model provider is configured.

## Tools and capabilities

MCP exposes tools for:

- Searching shared memory, retrieving complete observations, and viewing a memory's timeline or fact history.
- Saving, dismissing, and restoring memories.
- Loading context at session start.
- Outlining a code file so an agent can request a relevant line range instead of reading the entire file.
- Listing, adding, and reconfirming standing rules.
- Reading and writing work-state lists.
- Briefing a team project and searching teammate-shared information when the caller belongs to a team.

The web interface organizes project home, activity, knowledge, rules, and connection views. Knowledge records can be searched, edited, pinned, hidden, and exported, while rules are written once and synchronized to connected tools.

## Limitations and notes

The project is alpha software. MCP protocol checks pass against the official SDK client, and CI covers Linux, macOS, and Windows, but real-host verification varies by integration. Real sessions have been exercised for Claude Code, Command Code, and Codex CLI; Cursor, Gemini CLI, and Windsurf have not been tested in a real installation. Claude Desktop configuration is documented and fixture-tested rather than tested inside the application. Windows CI skips two hook checks, and answer accuracy has not been measured.

The server listens on loopback, making it suited to local use rather than a remotely hosted shared service. Compression is queued instead of running inside capture hooks.

_Full upstream README: https://allmcps.com/mcp/aletheia-mem/readme_

