# agent-memory-mcp

This skill runs an MCP server that gives your agent long-term memory: it stores decisions, architecture notes and patterns, then finds them again by search.

- skill · `type=skill` · Claude Code · 300 installs
- Author: Amit Rathiesh
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/ai-research/agent-memory-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/agent-memory-mcp

## What it does

The skill stands up an MCP server so the agent can read, write and search long-term memories. Four tools come with it. `memory_search` looks things up by query, type or tags; `memory_write` stores a new entry; `memory_read` pulls one back by key; `memory_stats` reports how the memory bank is being used. Entries carry a type, so architecture, patterns and decisions stay apart.

Setup is manual, from the repository. Clone `agentMemory` into the agent workspace, then run `npm install` and `npm run compile` inside the skill folder. The server starts with `npm run start-server <project_id> <absolute_path_to_target_workspace>`, for instance `npm run start-server my-project $(pwd)`. Node.js 18 or newer is required.

A standalone dashboard ships alongside: `npm run start-dashboard <absolute_path_to_target_workspace>`, reachable at `http://localhost:3333`. That port is fixed, so anything else already listening on 3333 will keep the dashboard from coming up.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill ai-research/agent-memory-mcp
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill agent-memory-mcp -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/agent-memory-mcp/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/agent-memory-mcp/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/agent-memory-mcp/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/agent-memory-mcp/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates agent-memory-mcp
```

2. **Manually: put the files in place**
- File: `.github/skills/agent-memory-mcp/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-research/agent-memory-mcp
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/agent-memory-mcp/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/ai-research/agent-memory-mcp

## When to use it
- keep an architecture decision around after the session ends
- list every stored pattern that mentions authentication
- fetch one decision by its key instead of re-explaining it
- see how much memory has accumulated and how it is used
- organise project knowledge by type and tag

## Example prompts
- Find all authentication patterns in the project memory
- Save this architecture decision under the key `auth-v1`
- Show me the memory statistics

## Similar
- [memory-optimization](https://affpapa.org/en/nevibecode/skills/memory-optimization.md) — skill · 544 installs
- [memory-leak-detection](https://affpapa.org/en/nevibecode/skills/memory-leak-detection.md) — skill · 580 installs
- [neurodivergent-memory](https://affpapa.org/en/nevibecode/mcp/neurodivergent-memory.md) — MCP server · ★ 23
- [crbro-memory](https://affpapa.org/en/nevibecode/mcp/crbro-memory.md) — MCP server · ★ 8
- [deep-agents-memory](https://affpapa.org/en/nevibecode/skills/deep-agents-memory.md) — skill · 19000 installs
- [agent-memory-systems](https://affpapa.org/en/nevibecode/skills/sickn33-agent-memory-systems.md) — skill · 2000 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
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
