# Agent Memory MCP

Keeps engineering context, project docs, and incident logs in a local SQLite database. Useful for platform and DevOps teams tracking operational decisions across coding sessions.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 44
- Author: ipiton
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ipiton/agent-memory-mcp
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/agent-memory-mcp

## What it does

Instead of storing flat notes, the server organizes context across four distinct categories: episodic, semantic, procedural, and working memory. Records and vector indexes reside inside a local SQLite database. The engine reads directly from disk. This avoids memory spikes when handling large knowledge bases.

Retrieval combines vector embeddings with BM25 keyword matching while prioritizing recent and verified records. Built-in RAG indexes runbooks, RFCs, changelogs, and infrastructure files. It scrubs secrets before ingestion. For Claude Code, lifecycle hooks automatically capture takeaways at session completion and save checkpoints before context compression.

Switching embedding models requires running `agent-memory-mcp reembed` to prevent mismatched vectors. The server communicates through stdio or HTTP/JSON-RPC. Offline setups rely on Ollama.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- preserve architectural decisions and context between agent sessions
- surface relevant runbooks and postmortems during incident triage
- index local technical documentation with automatic secret redaction
- maintain local project memory in SQLite without external databases

## Example prompts
- Search runbooks and past postmortems to see why HPA was disabled on this service.
- Save the decision to update Terraform parameters into procedural memory.
- Check the project memory for recent infrastructure changes that could cause regressions.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
