agent-memory-mcp
MCP server that gives AI agents persistent memory with semantic search
Install / Use
claude mcp add ipiton -- npx -y github:ipiton/agent-memory-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of agent-memory-mcp
agent-memory-mcp scores 75/100 on our quality scale, 845th of 947 AI & Machine Learning skills we index.
Its MCP Server is 76 KB long, well organised into 119 sections with 59 code examples: long enough that it reads more like full documentation than a focused instruction file, which agents can find harder to follow.
It has 44 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 9 days ago, so agent-memory-mcp is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
agent-memory-mcp compared with similar skills
All 4 of these similar skills score higher than agent-memory-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| agent-memory-mcp (this skill)by ipiton | 75 | 44 | 9d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 107.1k | 6d ago | CLAUDE.md |
| claude-memby thedotmack | 100 | 107.0k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 89.3k | 5d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.4k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install agent-memory-mcp?
- Run
claude mcp add ipiton -- npx -y github:ipiton/agent-memory-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does agent-memory-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is agent-memory-mcp safe to use?
- It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is agent-memory-mcp still maintained?
- The repository was last updated 9 days ago, so agent-memory-mcp is actively maintained.
Skill content
View source on GitHubagent-memory-mcp
A memory, docs, and repo context layer for engineering agents.
agent-memory-mcp helps agents work with live engineering context, not just isolated notes. It combines typed memory, document retrieval, and repository-aware tools so Claude, Cursor, Codex, and other MCP clients can recall decisions, search runbooks, inspect project docs, and reuse operational knowledge across sessions.
It is designed for engineering workflows such as:
- DevOps and platform operations
- infrastructure changes and rollback planning
- runbooks, changelogs, RFCs, and postmortems
- project-level memory that stays attached to the repo
Who This Is For
- teams using AI agents on real codebases, docs, and operational workflows
- DevOps, platform, and infra engineers who need more than chat history
- projects that want local-first memory today and a shared service path later
Why Not Just A Memory Tool
Most memory MCP servers focus on "store a note, recall a note."
agent-memory-mcp is aimed at a wider engineering context layer:
- typed memory for decisions, facts, patterns, and working context
- RAG indexing for project docs, changelogs, and knowledge files
- repo/file tools for reading and searching allowed project paths
- local SQLite storage with stdio today and HTTP/JSON-RPC when you need to share it
This makes it a better fit when the agent needs to answer questions like:
- "Why did we disable HPA on this service?"
- "What changed recently that could explain this regression?"
- "Which runbook or RFC matches this incident?"
Table of Contents
- Who This Is For
- Why Not Just A Memory Tool
- Features
- What Improved For Users
- Start Local In 3 Minutes
- Local-Only Mode
- Index Your Repo In 2 Commands
- Turn It Into A Team Service Later
- Installation Options — Homebrew, binary, source, Docker
- CLI Mode
- MCP client configuration — Claude Desktop, Cursor, Codex
- Recommended Workflow Snippets — what to paste into
CLAUDE.md/.cursorrules - CLI commands
- MCP tools reference — and JSON examples in docs/MCP_TOOLS.md
- Configuration — env vars, hot-reload, indexing safety
- Security And Operations
- Architecture
- macOS service installation
- Troubleshooting / FAQ
- Development
Reference docs: HOOKS · MCP_TOOLS · SHARED_SERVICE · STEWARDSHIP · SEDIMENTATION · BACKUP_RESTORE · SECURITY · THREAT_MODEL · CONTRIBUTING · CHANGELOG
Features
- Automatic session capture — Claude Code hooks auto-capture knowledge at session end, save checkpoints before context compression, and compile pending summaries at session start
- Typed persistent memory with 4 types: episodic, semantic, procedural, working
- Hybrid retrieval that combines embeddings with keyword/BM25-like ranking
- RAG indexing for project docs, changelogs, and knowledge archives (enabled by default in stdio/CLI mode; disabled by default in the Homebrew service preset — see Installation Options)
- Repo-aware file tools for listing, reading, and searching allowlisted paths
- Knowledge stewardship — automated maintenance: duplicate detection, conflict resolution, stale detection, drift scanning, and a review inbox
- Temporal knowledge model — track when knowledge was valid, build supersession chains, and query "what was true at time T"
- Dual transport: stdio for MCP clients, HTTP/JSON-RPC for APIs and shared setups
- SQLite storage for both memory and vector index -- no external databases needed
- Auto-indexing with file watcher for long-running local or service mode
What Improved For Users
- Lower memory usage: memory store now reads from SQLite directly instead of loading everything into RAM — large memory banks no longer risk OOM
- Opinionated solo-local setup: one recommended layout, one data directory, one quick smoke path
- Auto-loaded
.env: run from your project root without manually sourcing environment variables - Local-only embedding mode: keep hosted providers disabled and send text only to your local Ollama endpoint
- Safer semantic recall: memories from a different embedding model no longer produce misleading matches
- Explicit migration flow: use
agent-memory-mcp reembedfor memory migration andagent-memory-mcp indexfor RAG rebuilds after switching models - Better visibility:
statsandmemory_statsshow how many memories belong to each embedding model, and name the ones no semantic query can reach — records the encoder refused outright, and records embedded from their opening only - Ready MCP client configs: generate copy-paste snippets for Claude Desktop, Cursor, and Codex
- Safer indexing defaults: built-in directory excludes, optional per-path exclude globs, and secret redaction before documents are indexed
- Source-aware retrieval: docs, ADRs, RFCs, changelogs, runbooks, postmortems, CI configs, Helm, Terraform, and K8s files are classified and surfaced with source metadata
- Hybrid ranking for search: semantic similarity is now combined with keyword matches, recency, and source-aware weighting instead of cosine similarity alone
- Trust-aware retrieval: memory and document results now expose
source_type,confidence,freshness,owner, andlast_verified_at, and ranking uses trust/freshness instead of similarity alone - Explainable retrieval: opt-in debug output shows filters, score components, and applied boosts for every result
- DevOps-first tools: store decisions, incidents, runbooks, and postmortems with domain-specific MCP tools instead of generic memory calls
- Memory lifecycle: memories move through statuses — active, outdated, superseded, canonical — so stale knowledge gets downranked automatically instead of polluting recall
- Manual consolidation workflow: merge duplicates, mark outdated notes, promote canonical entries, and inspect conflict groups without deleting history
- Explicit canonical knowledge layer: list and recall confirmed knowledge separately from raw memory, and surface canonical context first in project summaries
- Project bank views: see maintained knowledge organized by category — decisions, runbooks, incidents, caveats, migrations, review queue — instead of a flat memory list
- Session close pipeline: when a session ends, memory is analyzed, classified, and consolidated with existing knowledge instead of blindly appended
- Explainable consolidation: session close reports show what will be added, merged, outdated, or promoted, with a decision trace and risk level for each action
- DevOps session modes: close-session adapts behavior based on session type — incident and migration sessions get stricter review-first policy, coding sessions auto-apply low-risk updates
- Shared service packaging: a working Docker Compose recipe, shared env template, nginx reverse proxy example, and a dedicated shared deployment guide
- Built-in retrieval console: inspect hybrid ranking, trust, and normal-vs-debug retrieval in a lightweight HTTP UI at
/console - Safer HTTP defaults: HTTP mode binds to
127.0.0.1by default; non-loopback binds require auth unless you explicitly opt into unsafe unauthenticated access - Consistent CLI and MCP behavior: memory type validation, tag normalization, query/content limits, and trust summaries now follow the same policy across both interfaces
- Knowledge stewardship:
steward_runexecutes a full maintenance cycle — duplicate detection, conflict resolution, stale entry scanning, and canonical promotion candidates — with a single command - Stewardship inbox: review-required actions from maintenance runs, drift scans, and session consolidation land in one actionable queue instead of being silently applied or lost
- Drift detection:
drift_scancompares memory entries against live repo files and docs to find stale, missing, or changed references - Verification model:
verify_entryandverification_candidateslet agents and users track when knowledge was last verified and what needs attention - Canonical health diagnostics: steward runs now include a health summary for canonical entries — stale, unverified, conflicting, and low-support
- Policy-governed automation: stewardship thresholds, auto-apply rules, and scheduling are configurable via
steward_policyand environment variables - Temporal knowledge: memories can carry
valid_from/valid_untiltimestamps, andrecall_as_ofretrieves knowledge that was valid at a specific point in time - Supersession chains:
mark_outdatedwith a superseding entry automatically builds bidirectional links (superseded_by/replaces) and sets temporal boundaries - Knowledge timeline:
knowledge_timelineshows the chronological evolution of knowledge on a topic - Age-aware recall (opt-in): recall scoring can apply an exponential age decay so stale memories sink while canonical knowledge and character/identity stay put — off by default since T121 measured it costing Hit@5 0.7217 → 0.1942 at the old 30-day setting. Enable with
MCP_RECALL_HALFLIFE_DAYS, and note thatMCP_RECALL_DECAY_TYPES(defaultworking) decides which types age at all — the type axis matters more than the rate - Self-healing duplicate cleanup: the steward can auto-merge high-confidence, near-identical duplicate groups instead of only queuing them for review — opt-in and guarded by a content-similarity threshold so nothing unique is archived (
auto_merge_duplicate_min_confidenceinsteward_policy) - No more double session-close records: closing a task folds the auto-captured session summary into the finalize record instead of writing a second near-identical memory per slug, cutting the duplicate pairs the steward used to flag as false contradictions
Start Local In 3 Minutes
The recommended path is: run locally first, prove value on one repo, then expand.
Run these commands from your project root.
Prerequisites
Install the binary with one of these options:
# Homebrew (macOS/Linux) — recommended, auto-configures Claude Code hooks
brew tap ipiton/tap
brew install agent-memory-mcp
# go install
go install github.com/ipiton/agent-memory-mcp/cmd/agent-memory-mcp@latest
Then configure one embedding provider:
- Jina AI API key for the quickest hosted setup
- OpenAI API key or another OpenAI-compatible endpoint
- Ollama with
bge-m3for a local setup
1. Configure local mode
cp .env.example .env
# Edit .env:
# - keep the solo-local defaults unless you need to change them
# - enable at least one embedding provider
# JINA_API_KEY, OPENAI_API_KEY, or OLLAMA_BASE_URL
The binary auto-loads .env from the current directory, so you do not need source .env.
The recommended solo-local preset keeps all runtime state inside one directory:
.agent-memory/
rag-index/
memory-store/
logs/
Local-Only Mode
Use local-only mode when you want embeddings without sending text t
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
107.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
claude-mem
107.0kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
89.3kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
