Amem logo

Amem

by @iamem

Local, file-anchored memory for coding agents, with retrieval, tasks, skills, hooks, and a SQLite-backed dashboard.

Install Amem

Run the project’s own setup commands, in order.

Setup steps from the project

@iamem/amem installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Add to Codex
    codex plugin marketplace add sslugic/amem
    
  2. 2. Install
    gemini extensions install https://github.com/sslugic/amem
    

Overview

@iamem/amem stores agent memory in a local SQLite database and anchors facts to the files they describe. It exposes memory, context, search, evidence, skills, and task workflows through MCP, while hooks can supply ranked context at session start and during prompts. Reach for it when coding agents repeatedly rediscover project decisions, constraints, procedures, or failed approaches. Setup supports Claude Code, Cursor, Codex, Claude Desktop, and other MCP clients on macOS, Linux, and Windows.

Use cases

  • Persist project decisions between coding-agent sessions
  • Retrieve file-anchored constraints before editing code
  • Record failed approaches so agents avoid repeating them
  • Surface deployment and release procedures when relevant
  • Track follow-up work across agent conversations

Key features

  • SQLite-backed local memory
  • File-anchored facts with freshness tracking
  • FTS5/BM25 and on-device embedding retrieval
  • MCP tools for bootstrap, search, context, memory, and evidence
  • Persistent skills and task board
  • Local dashboard with client activity

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads6.6kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.

How Amem works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Amem

@iamem/amem is an MCP server that connects coding agents to a local SQLite memory store. Its main tools include amem_bootstrap, amem_context, amem_search, amem_remember, and amem_evidence for loading, finding, saving, and citing project knowledge across sessions.

Run `npx @iamem/amem setup --platform claude` from a project directory, replacing `claude` with the target platform. Setup installs the CLI, configures supported hooks, registers the MCP server, and seeds initial project facts; restart the client afterward.

Run `amem mcp --print-config` to generate a configuration block for manual client setup. Platform setup commands and plugins are also available for clients such as Cursor, Codex, Gemini CLI, and Claude Desktop.

Yes, @iamem/amem supports Cursor. Run `npx @iamem/amem setup --platform cursor`, or use the Cursor setup option from the amem website, to register the server and configure its supported integration.

Memory is stored locally in a SQLite file under `~/.amem`. The dashboard is localhost-only, and the project also supports optional encryption and local backups.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAmem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/iamem-amem?style=directory)](https://allmcps.com/mcp/iamem-amem)
HTML Embed
<a href="https://allmcps.com/mcp/iamem-amem"><img src="https://allmcps.com/api/badge/iamem-amem?style=directory" alt="Amem on AllMCPs" /></a>