A Mem MCP server
io.github.DiaaAj/a-mem-mcp·v0.2.1·35 starsSelf-evolving memory system for AI agents
35 stars
Reviews
Write oneNobody has reviewed A Mem yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
A Mem tools (7, 2 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
add_memory_notecheck_task_statusdelete_memory_notewrite actionread_memory_notesearch_memoriessearch_memories_agenticupdate_memory_notewrite action
Public scan report
scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it
- Code scan15 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 257 days ago4/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How A Mem compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 66/100
- higher than 23% of 48,255 servers
- Tools
- 7
- the typical server has 7
- Tools that change things
- 29%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 35
- more than 92% of 28,688 servers
What its tools let an agent do: 4 read · 1 create · 1 change · 1 delete
Install A Mem in Claude Code, Cursor or VS Code
claude mcp add a-mem-mcp -- uvx a-mem
What the publisher says
From the A Mem repository's README, as published. We do not edit it. Read it on GitHub
A-MEM: Self-evolving memory for coding agents
mcp-name: io.github.DiaaAj/a-mem-mcp
A-MEM is a self-evolving memory system for coding agents. Unlike simple vector stores, A-MEM automatically organizes knowledge into a Zettelkasten-style graph with dynamic relationships. Memories don't just get stored—they evolve and connect over time.
Currently tested with Claude Code. Support for other MCP-compatible agents is planned.
Quick Start
Install
pip install a-memAdd to Claude Code
claude mcp add a-mem -s user -- a-mem-mcp \
-e LLM_BACKEND=openai \
-e LLM_MODEL=gpt-4o-mini \
-e OPENAI_API_KEY=sk-...That's it! A session-start hook installs automatically to remind Claude to use memory.
Note: Memory is stored per-project in ./chroma_db. For global memory across all projects, see Memory Scope.
Uninstall
a-mem-uninstall-hook # Remove hooks first
pip uninstall a-memHow It Works
t=0 t=1 t=2
◉───◉ ◉───◉
◉ │ ╱ │ ╲
◉ ◉──┼──◉
│
◉
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━▶
self-evolving memory- Add a memory → A-MEM extracts keywords, context, and tags via LLM
- Find neighbors → Searches for semantically similar existing memories
- Evolve → Decides whether to link, strengthen connections, or update related memories
- Store → Persists to ChromaDB with full metadata and relationships
The result: a knowledge graph that grows smarter over time, not just bigger.
Features
Self-Evolving Memory Memories aren't static. When you add new knowledge, A-MEM automatically finds related memories and strengthens connections, updates context, and evolves tags.
Semantic + Structural Search Combines vector similarity with graph traversal. Find memories by meaning, then explore their connections.
Peek and Drill Start with breadth-first search to capture relevant memories via lightweight metadata (id, context, keywords, tags). Then drill depth-first into specific memories with readmemorynote for full content. This minimizes token usage while maximizing recall.
MCP Tools
A-MEM exposes 8 tools to your coding agent:
Example Usage
# The agent calls these automatically, but here's what happens:
# Store a memory (returns task_id immediately)
add_memory_note(content="Auth uses JWT in httpOnly cookies, validated by AuthMiddleware")
# Search later
search_memories(query="authentication flow", k=5)
# Deep search with connections
search_memories_agentic(query="security", k=5)Advanced Configuration
JSON Config
For more control, edit ~/.claude/settings.json (global) or .claude/settings.local.json (project):
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
A Mem: common questions
- Is A Mem MCP server safe?
- With care: it is graded C, so read the findings first (66/100). Read the A Mem safety report
- How do I install A Mem?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does A Mem need an API key?
- Yes. The registry entry asks for
OPENAI_API_KEY. - Is A Mem maintained?
- The last commit was 291 days ago (2026-01-17). The latest release is v0.2.1.
- How does A Mem compare with other MCP servers?
- safety score 66/100 (higher than 23% of 48,255 servers); tools 7 (the typical server has 7); tools that change things 29% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.