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:
brew tap ipiton/tap
brew install agent-memory-mcp
Go installation uses the package's latest tag:
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.