Agent Memory MCP logo

Agent Memory MCP

Local SQLite memory, document search, repository context, and engineering knowledge workflows for coding agents over MCP.

Install Agent Memory MCP

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

Setup steps from the project

Agent Memory MCP 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. Install
    brew tap ipiton/tap
    
  2. 2. Install
    brew install agent-memory-mcp
    
  3. 3. Add to your MCP client
    agent-memory-mcp setup codex --yes
    

Overview

Agent Memory MCP gives coding agents a local SQLite-backed memory and project-document context layer over MCP. It combines semantic and text search with trust, freshness, source, and canonical-knowledge handling, while repository tools read and search allowlisted paths. Use it to retain decisions, incidents, runbooks, and session findings across tasks, or to find relevant project documentation. It runs over stdio by default and also supports an HTTP mode for shared use.

Use cases

  • Retain engineering decisions across coding sessions
  • Search runbooks and postmortems during incidents
  • Detect when repository changes invalidate stored memories
  • Review and promote confirmed project knowledge
  • Give agents scoped access to repository context

Key features

  • SQLite-backed local memory
  • Hybrid semantic and keyword document search
  • Trust-aware recall and canonical knowledge
  • Repository file listing, reading, and search
  • Session review and memory stewardship
  • Stdio and HTTP operation modes

Tools48

What Agent Memory MCP lets your agent do. Expand a tool for its parameters.

Self-reported~1.2k 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.

14/14 checks healthy over the last 74d

Adoption & maintenance

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

GitHub stars45Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.
Tools exposed48Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent Memory MCP works

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.

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 Agent Memory MCP

Agent Memory MCP is an MCP server that connects coding agents to a local SQLite memory and project-document store. Its main tools store, update, delete, list, recall, and search memories and documents, while repository tools read, list, and search allowlisted files. It also supports decisions, incidents, runbooks, postmortems, and session review.

Install it with Homebrew or Go. Homebrew uses `brew tap ipiton/tap` followed by `brew install agent-memory-mcp`; Go uses `go install github.com/ipiton/agent-memory-mcp/cmd/agent-memory-mcp@latest`. Release binaries are also available, and one supported embedding provider must be configured.

The setup command supports Claude Code, Codex, Cursor, Gemini CLI, OpenCode, VS Code, and Windsurf. Run the matching `agent-memory-mcp setup` target from the repository the agent should remember, then restart the agent after applying the configuration.

Yes. Ollama and llama.cpp can provide embeddings locally, so embedding data can remain on the machine. Jina and OpenAI are also supported providers, and the server requires one embedding provider for its search features.

Enable its stewardship features to use drift scanning and review workflows. Drift scanning compares memories with referenced repository files and flags entries when a source changes or disappears. Entries can also be marked outdated or superseded, causing trust-aware recall to rank them lower.

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