A Mem MCP logo

A Mem MCP

Stores and searches evolving project memory for coding agents through semantic and graph-based MCP tools.

Install A Mem MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "a-mem-mcp": {
      "command": "uvx",
      "args": [
        "a-mem"
      ],
      "env": {
        "LLM_BACKEND": "YOUR_VALUE_HERE",
        "LLM_MODEL": "YOUR_VALUE_HERE",
        "OPENAI_API_KEY": "YOUR_VALUE_HERE",
        "OPENROUTER_API_KEY": "YOUR_VALUE_HERE",
        "EMBEDDING_MODEL": "YOUR_VALUE_HERE",
        "CHROMA_DB_PATH": "YOUR_VALUE_HERE",
        "EVO_THRESHOLD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx a-mem

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

a-mem-mcp MCP server gives coding agents persistent memory backed by ChromaDB and an evolving Zettelkasten-style graph. It uses an LLM to extract metadata, find related memories, and update relationships when new notes are added. Agents can search by meaning, follow graph connections, filter by time, and manage individual notes. Reach for it when an agent needs project-specific or shared context across sessions rather than a simple transient conversation history.

Use cases

  • Persist project conventions across coding sessions
  • Search prior implementation decisions by meaning
  • Explore related memories through graph connections
  • Share memory across projects with a common storage path

Key features

  • Asynchronous memory creation
  • Semantic memory search
  • Graph-aware agentic search
  • Time-range memory search
  • Bulk memory reads
  • ChromaDB-backed project storage

Tools8

What A Mem MCP lets your agent do. Expand a tool for its parameters.

Self-reported~97 tokens of context

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.

17/17 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · a-mem (PyPI)

Adoption & maintenance

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

GitHub stars35Stargazers on the source repository.
Last commit10mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed8Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How A Mem MCP works

What a-mem-mcp MCP server does

a-mem-mcp MCP server provides persistent memory tools for coding agents. It stores notes, enriches them with keywords, context, and tags through an LLM, and connects related notes in a graph. The resulting memory can be searched by semantic similarity or explored through relationships between notes.

The default storage scope is per project, using a ./chroma_db directory. A shared memory store can be configured by changing the ChromaDB path to a common location. This makes the server suitable for retaining implementation details, architectural decisions, conventions, and other project knowledge between agent sessions.

How it works

Adding a note starts an asynchronous operation and immediately returns a task identifier. The system processes the note, searches for semantically similar existing memories, and decides whether to create or strengthen links, update related context, or evolve tags. ChromaDB stores the note metadata and relationships.

Search can begin with lightweight metadata such as identifiers, context, keywords, and tags. After locating relevant results, an agent can use read_memory_note to retrieve complete note details. The agentic search operation combines semantic retrieval with graph traversal to follow connected memories. check_task_status reports the state of asynchronous operations.

Setup and configuration

Install the Python package with pip install a-mem, then register the a-mem-mcp executable with an MCP client. The documented setup is tested with Claude Code and passes the LLM backend, model, and credentials as environment settings. A session-start hook is installed automatically for Claude Code to remind the agent to use the memory tools.

The default backend is OpenAI with model gpt-4o-mini, which requires an OpenAI API key. The server also documents Ollama, sGLang, and OpenRouter backends. Ollama can run locally, while OpenRouter uses its own API key. EMBEDDING_MODEL controls the sentence-transformer model, CHROMA_DB_PATH changes the storage location, and EVO_THRESHOLD controls the evolution trigger threshold.

Tools and capabilities

The server exposes eight MCP tools:

  • add_memory_note stores knowledge asynchronously.
  • search_memories performs semantic search.
  • search_memories_agentic searches and follows graph connections.
  • search_memories_by_time searches within a specified time range.
  • read_memory_note retrieves full details and supports bulk reads.
  • update_memory_note changes an existing memory.
  • delete_memory_note removes a memory.
  • check_task_status checks asynchronous task completion.

The underlying Python API is also available through AgenticMemorySystem, allowing applications to add, search, and read notes without using MCP.

Limitations and notes

a-mem-mcp MCP server is currently documented as tested with Claude Code; support for other MCP-compatible agents is described as planned rather than confirmed. Memory is project-specific by default, so separate projects do not share notes unless they are configured to use the same ChromaDB path. LLM behavior and required credentials depend on the selected backend.

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 A Mem MCP

Install the package with `pip install a-mem`, then register the `a-mem-mcp` executable with your MCP client.

Support for other MCP-compatible agents is planned.

It stores memory in ChromaDB, using `./chroma_db` per project by default. Set `CHROMA_DB_PATH` to a shared location for global memory.

The default OpenAI backend uses `OPENAI_API_KEY`. Ollama can run locally without that key, while the OpenRouter backend uses `OPENROUTER_API_KEY`.

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 PreviewA Mem MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/a-mem-mcp?style=directory)](https://allmcps.com/mcp/a-mem-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/a-mem-mcp"><img src="https://allmcps.com/api/badge/a-mem-mcp?style=directory" alt="A Mem MCP on AllMCPs" /></a>