# Agent Memory MCP [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/ipiton/agent-memory-mcp  
**GitHub Stars:** 45  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agent-memory-mcp

## Description
Memory, docs, and repo context layer for engineering agents.

## Tools
Capabilities this server exposes over MCP:

- **store_memory** — Store a memory with content, type, tags, and importance
- **recall_memory** — Recall memories by semantic/text query with optional filters and trust-aware ranking
- **update_memory** — Update an existing memory by ID
- **delete_memory** — Delete a memory by ID
- **list_memories** — List all memories with optional type/context filtering
- **memory_stats** — Get memory statistics (counts by type)
- **merge_duplicates** — Merge duplicate memories into a primary entry and archive the rest
- **mark_outdated** — Mark a memory as outdated or superseded so trust-aware recall downranks it
- **promote_to_canonical** — Promote a memory to canonical knowledge and boost its trust ranking
- **conflicts_report** — Report duplicate candidates, conflicting statuses, and multiple canonical entries
- **list_canonical_knowledge** — List canonical knowledge entries projected from confirmed memories
- **recall_canonical_knowledge** — Recall canonical knowledge only, excluding raw memories from results
- **recall_multihop** — Multi-hop graph-walk recall over the (subj, rel, obj) triple corpus — returns memories ranked by aggregated path score with the chain of triples that reached each result. Use for cross-memory reasoning queries that single-hop search cannot trace. Requires `MCP_TRIPLE_EXTRACTOR_*` populated; backfil…
- **semantic_search** — Hybrid search across indexed documents with optional `source_type`, trust metadata, and `debug` explain mode
- **index_documents** — Re-index documents for RAG search
- **repo_list** — List files and folders under allowlisted paths
- **repo_read** — Read a file from allowlisted paths
- **repo_search** — Text search across allowlisted paths
- **store_decision** — Store an engineering decision with rationale, status, and consequences
- **store_incident** — Store an incident with impact, root cause, resolution, service, and severity
- **store_runbook** — Store a runbook with procedure, trigger, verification, and rollback notes
- **store_postmortem** — Store a postmortem with root cause and action items
- **close_session** — Analyze a finished session into raw summary metadata, candidate knowledge items, and review-safe consolidation actions
- **analyze_session** — Compatibility alias for `close_session` with the same planning and reporting behavior
- **review_session_changes** — Render the explainable review report for a finished session without forcing writes
- **accept_session_changes** — Persist the raw summary and auto-apply only low-risk consolidation actions
- **resolve_review_item** — Resolve a pending review queue item so it disappears from the active inbox while keeping an audit trail
- **search_runbooks** — Search runbook memories plus indexed runbook docs
- **recall_similar_incidents** — Recall similar incidents from memory and indexed postmortems
- **end_task** — Consolidate memory for an archived task slug: outdate working/procedural entries, route high-importance ones to the review queue
- **sweep_archive** — Pull-mode scan over `MCP_TASK_ARCHIVE_ROOTS` that runs `end_task` on every archived slug
- **store_dead_end** — Record an attempted approach that failed (plus the why and the alternative used) so retrieval can surface it as a pitfall warning on related queries. **Use this** for standalone failures with no decision context. **Use `store_decision -avoided-dead-end-id <id>`** when the dead end is part of a larg…
- **promote_sediment** — Promote a memory to a higher sediment layer (surface → episodic → semantic → character). See `docs/SEDIMENTATION.md
- **demote_sediment** — Demote a memory one sediment layer down
- **sediment_cycle** — Run the sediment transition cycle — auto-applies trivial promotions, routes non-trivial ones to the review queue
- **summarize_project_context** — Summarize recent decisions, runbooks, incidents, and related docs
- **project_bank_view** — Show a structured project bank view for canonical knowledge, decisions, runbooks, incidents, caveats, migrations, the review queue, or sediment promotion candidates
- **steward_run** — Run a knowledge stewardship cycle: scan for duplicates, conflicts, stale entries, and canonical promotion candidates
- **steward_report** — Retrieve the latest stewardship report or a specific one by run ID
- **steward_policy** — Get or update the stewardship policy that controls detection thresholds, auto-apply rules, and scheduling
- **steward_status** — Show current stewardship status: policy mode, last run summary, pending review count, next scheduled run
- **drift_scan** — Compare memory entries against live sources (repo files, docs) to detect drift, missing references, and stale unverified knowledge
- **verification_candidates** — List memories that need verification, ranked by urgency
- **verify_entry** — Mark a memory as verified, updating its verification metadata
- **steward_inbox** — List stewardship inbox items — review-required actions from maintenance runs, drift scans, and session consolidation
- **steward_inbox_resolve** — Resolve a steward inbox item by applying an action: merge, mark_outdated, promote, verify, suppress, or defer
- **recall_as_of** — Retrieve knowledge that was valid at a specific point in time, filtering by temporal validity
- **knowledge_timeline** — Show the chronological evolution of knowledge on a topic — how entries were created, superseded, and replaced over time

## 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/ipiton/agent-memory-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
brew tap ipiton/tap
```

2. Install:

```sh
brew install agent-memory-mcp
```

3. Add to your MCP client:

```sh
agent-memory-mcp setup codex --yes
```

## Documentation

## What Agent Memory MCP does

Agent Memory MCP stores long-term project knowledge for coding agents alongside searchable repository documentation. Memories can represent decisions, facts, procedures, and working notes, while dedicated operations capture incidents, runbooks, postmortems, and engineering decisions with structured fields.

Search combines semantic matching and keywords across memories and indexed documents. Results can include trust information such as confidence, freshness, owner, verification state, and source type. Repository context is exposed through allowlisted file and directory listing, reading, and text-search operations.

The server also supports memory maintenance. Duplicate candidates, conflicting entries, stale information, and canonical-knowledge state can be reviewed instead of silently overwriting history. Session tools produce summaries and proposed consolidation actions, and task archival can move working or procedural entries toward an outdated or review state.

## How it works

Data is stored in a local SQLite database. The default connection uses stdio, which suits a coding agent running the server for a repository. An HTTP mode is available for a shared instance. Search requires an embedding provider; supported choices include Jina, OpenAI, Ollama, and llama.cpp. Ollama and llama.cpp allow embeddings to remain on the local machine.

Documents must be indexed before they can participate in document search. Memory recall can use semantic or text queries and optional filters. Multihop recall walks subject-relation-object triples and returns the memory results together with the triple chain used to reach them; this requires the triple-extractor configuration.

Canonical knowledge is created by explicitly promoting confirmed memories. Raw entries can be marked outdated or superseded, which affects trust-aware ranking. Stewardship features can identify duplicates, contradictions, stale entries, and repository drift. In HTTP mode, stewardship and its review inbox are enabled automatically; for agent connections created through setup, `MCP_STEWARD_ENABLED=true` enables them in the project environment.

## Setup and configuration

Homebrew installation is available through the `ipiton/tap` tap:

```bash
brew tap ipiton/tap
brew install agent-memory-mcp
```

Go installation uses the package's latest tag:

```bash
go install github.com/ipiton/agent-memory-mcp/cmd/agent-memory-mcp@latest
```

The server can also be installed from a release binary. After installation, run the setup command for the target client from the repository the agent should remember. Supported setup targets include Claude Code, Codex, Cursor, Gemini CLI, VS Code, and Windsurf. Setup has a dry-run mode by default; `--yes` applies the configuration, while `--name`, `--root`, and `--command` customize the generated entry. Existing configuration is preserved and backed up, and the agent should be restarted after configuration changes.

Claude Code setup can additionally install session hooks for automatic knowledge capture. Manual configuration, local-only operation, indexing, HTTP mode, and embedding-provider settings are covered by the project's installation and configuration documentation.

## Tools and capabilities

- Store, recall, update, delete, list, and summarize memories.
- Merge duplicates, mark entries outdated, promote canonical knowledge, and report conflicts.
- Search canonical knowledge separately from raw memories.
- Perform multihop recall over extracted relationship triples.
- Index documents and run hybrid semantic/document searches with optional filters and debug explanations.
- List, read, and text-search files under allowlisted repository paths.
- Record decisions, incidents, runbooks, and postmortems.
- Search runbooks and recall incidents similar to a stored incident or indexed postmortem.
- Analyze, review, accept, and resolve session consolidation changes.
- Detect repository drift and run stewardship checks when those features are enabled.

## Limitations and notes

Embedding search depends on configuring one supported embedding provider. Repository access is limited to allowlisted paths. Canonical status is intended for confirmed knowledge rather than unreviewed agent notes. Multihop recall depends on configured triple extraction. The setup command changes only the selected server launch command when forced and writes a timestamped backup beside the existing client configuration.

_Full upstream README: https://allmcps.com/mcp/agent-memory-mcp/readme_

