# Echo Memory [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/echo-mem/echo-mem  
**GitHub Stars:** 2  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/echo-memory

## Description
Shared memory for AI agents, as a graph in your own Postgres. Writes never call an LLM.

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

```json
"mcpServers": {
  "echo-memory": {
    "command": "uvx",
    "args": ["--from","echo-mem","echo-memory"]
  }
}
```

## Documentation

## What Echo Memory does

Echo Memory gives AI agents a shared memory store backed by a graph in Postgres. The graph represents entities and the facts that connect them, while each fact retains authorship and timing information. This lets one client record a decision or project detail and another client retrieve it later.

The server is designed for cross-client memory. The project specifically demonstrates Claude Code writing information that Cursor and Codex can later recall. It fits workflows where agents need continuity across sessions, projects, or tools while keeping the underlying data in a database controlled by the operator.

Storage writes are deliberately model-free: recording an episode does not make an LLM call. Retrieval selects relevant facts rather than returning an entire notes file, which can reduce the amount of context an agent must receive.

## How it works

An agent records entities and their relationships with `write_episode`. Echo Memory persists those facts in Postgres and tracks the writing agent and timestamp. A later `query_memory` request searches the stored graph using a combination of vector retrieval and full-text search, with results combined through reciprocal-rank fusion.

The local quickstart provisions the database with Docker, applies the schema, and prints a client registration command using the port selected for the service. A hosted connection is also available through an access key, so the database does not need to run on the local machine.

For clients that need guidance about when to record or recall information, `echo-memory install --global` installs the usage instructions once per machine. The server process must be restarted after configuration or installation changes so it loads the updated code and settings.

## Setup and configuration

Echo Memory requires Python 3.11 or newer and Docker for the local database. Install the package with:

```bash
pipx install echo-mem
echo-memory quickstart
```

The package distribution is named `echo-mem`; the command and import package use the `echo-memory` and `echo_memory` names. To use the hosted service instead, install the package and connect with a key:

```bash
echo-memory connect <key>
```

For a project-scoped Cursor setup, use `echo-memory install --for cursor`. The `echo-memory adopt` command wires every MCP client on the machine, assigning each its own identifier.

When upgrading an existing store, run the database migrations before rebuilding derived data:

```bash
echo-memory init-db
echo-memory reindex
```

The health command can be used afterward to inspect the store.

## Tools and capabilities

The MCP interface includes these core memory operations:

- `write_episode` — Records entities and the facts that connect them without calling a model.
- `query_memory` — Retrieves relevant memory using hybrid vector and full-text search.

The command-line interface also includes status and health checks, graph inspection, audit-trail lookup with `why`, terminal recall, JSON export, and retrieval evaluation commands. These provide ways to inspect and operate the store outside an agent conversation.

## Limitations and notes

Local operation depends on Docker because the database is supplied as a Postgres image. The hosted option avoids running that database locally but requires an access key.

Upgrades require both schema migration and reindexing for stores created by older versions. Skipping the migration can cause schema errors; skipping reindexing can leave derived retrieval data stale.

The project includes a browser dashboard served on localhost and commands for checking retrieval quality, context cost, latency, and entity-resolution calibration. These are operational commands rather than additional MCP memory tools.

_Full upstream README: https://allmcps.com/mcp/echo-memory/readme_

