# @iamem/amem [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/sslugic/amem  
**GitHub Stars:** 0  
**npm Downloads (last month):** 6625  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/iamem-amem

## Description
Local personal agent memory for Cursor and Claude Code. Private to your machine — never shared.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/sslugic/amem), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Add to Codex:

```sh
codex plugin marketplace add sslugic/amem
```

2. Install:

```sh
gemini extensions install https://github.com/sslugic/amem
```

## Documentation

## What @iamem/amem does

@iamem/amem gives coding agents persistent, local memory for project facts, decisions, constraints, ownership notes, procedures, tasks, and failed approaches. Memories can point to the files they describe, allowing the system to mark them stale when those files change. Data is stored in a SQLite file under `~/.amem`, with a localhost-only dashboard and optional encryption and local backups.

The memory is intended to carry knowledge between agent sessions without requiring a developer to paste a project brief. It can also import existing guidance from `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, and `.cursor/rules/*.mdc`, and export records as JSON or Markdown.

## How it works

The server combines full-text retrieval using FTS5/BM25 with on-device embeddings. At session start, `amem_bootstrap` can return a compact brief containing global rules, project facts, active tasks, and relevant skill hints. Prompt hooks provide a small ranked context packet automatically, while agents can request targeted context or search directly.

An optional local reranker can rescore retrieved memories and determine when no result is relevant. It is enabled with `amem rerank enable` and uses a 23 MB model on the local machine; the feature is off by default.

Memory entries may include a time-to-live or supersede an earlier entry. Skills can declare file and keyword triggers, so applicable procedures can be surfaced only when their conditions match. Tasks persist in a Backlog, Next, Doing, and Done workflow.

For Claude Code, the setup also supports a new-file guard that checks whether existing code may already perform the requested job. The guard can warn or be disabled through `~/.amem/policy.toml`; files in an agent plan or todo list, along with files declared through `amem_declare_files`, are exempt from being stopped.

## Setup and configuration

Node.js 20 or newer is required for the command-line installation. From a project directory, run:

```bash
npx @iamem/amem setup --platform claude
```

Replace `claude` with the target platform, such as `cursor`, `codex`, `copilot`, or `windsurf`. Setup installs the CLI, adds supported hooks, registers the MCP server, and seeds the repository with build, test, and CI facts found in its manifests. The client must be restarted once after registration.

Use `amem mcp --print-config` to print a configuration block for an MCP client that is not handled by the platform setup command. The desktop application provides a graphical setup path for macOS, Windows, and Linux and bundles amem without requiring Node.js.

`amem ui` opens the dashboard at `http://127.0.0.1:7843`. Use `amem doctor --fix` to repair the current repository's client wiring, `amem off` and `amem on` to disable or restore Claude Code integration, and `amem uninstall` to remove installed components. Memory remains unless `--purge` is supplied.

## Tools and capabilities

- `amem_bootstrap` supplies a compact startup brief.
- `amem_context` retrieves relevant memory with a token limit.
- `amem_search` searches facts, skills, and tasks using queries and filters.
- `amem_remember` saves facts, including optional expiration and supersession metadata.
- `amem_evidence` returns supporting memories with file references, dates, freshness, and evidence labels.
- Skills represent repeatable procedures such as deployment or release steps.
- Tasks provide a persistent four-stage work board.
- The dashboard shows memories, review items, tasks, and client activity.

## Limitations and notes

Storage is designed to remain on the local machine: the primary data file is in `~/.amem`, and the UI listens on localhost. Retrieval quality depends on the memories recorded and the available retrieval paths; the project includes a benchmark for testing its sample cases. The reranker requires a separate opt-in command and runs locally. Client integrations vary by platform, so setup commands and plugin installation differ between tools.

_Full upstream README: https://allmcps.com/mcp/iamem-amem/readme_

