</>MCP Agents Market
MCP Server

agentmemory

by rohitg0029.1kTypeScriptUpdated 2026-09-30

#1 Persistent memory for AI coding agents based on real-world benchmarks

Claude CodeClaude DesktopCursorClineGitHub Copilot CLICodex CLIGemini CLIOpenCode

agentmemory is a persistent memory system for AI coding agents that operates as an MCP server, providing 54 memory-related tools to agents via the Model Context Protocol. It automatically captures every tool use, session, and observation from coding agents, compresses them into searchable memory using hybrid BM25 + vector + knowledge graph retrieval, and injects relevant context at the start of each new session. The system eliminates repetitive explanations across sessions by remembering project decisions, architecture patterns, bug fixes, and preferences. It works with any MCP-compatible client including Claude Code, Cursor, Cline, GitHub Copilot CLI, Gemini CLI, and 20+ other agents through a single shared memory server.

Key Features

54 MCP tools for memory operations including memory_save, memory_recall, memory_smart_search, memory_sessions, and governance
Automatic capture via 12 lifecycle hooks (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SessionEnd) with zero manual effort
Hybrid search combining BM25 keyword matching, vector embeddings, and knowledge graph traversal with RRF fusion (95.2% R@5 on LongMemEval-S)
4-tier memory consolidation (Working, Episodic, Semantic, Procedural) with automatic decay and forgetting
Real-time viewer on port 3113 showing live observation streams, session replay, and knowledge graphs
Local-first operation with no external dependencies (SQLite + iii-engine); optional local embeddings via Xenova/all-MiniLM-L6-v2
92% token reduction compared to full context paste (170K tokens/year vs 650K for LLM-summarized approaches)
Cross-agent memory sharing where all connected agents read from the same memory server with optional per-agent scoping

Use Cases

  • 01Eliminating re-explanation of project architecture, authentication patterns, and tech stack choices across coding sessions
  • 02Remembering bug fixes, refactoring decisions, and why specific libraries were chosen over alternatives
  • 03Building searchable knowledge bases from coding sessions without manual documentation
  • 04Coordinating context between multiple AI agents (architect, developer, reviewer) working on the same codebase
  • 05Importing and replaying historical Claude Code JSONL transcripts to mine lessons and patterns
  • 06Running keyless with BM25-only search for privacy-sensitive environments without embedding API calls

Related MCP Servers

View more

agentmemory — FAQ

What is agentmemory?+

agentmemory is an MCP server that gives AI coding agents persistent, searchable memory across sessions. It automatically captures observations from tool use, compresses them into structured memory, and injects relevant context when new sessions start.

How do I install agentmemory?+

Run `npx -y @agentmemory/agentmemory@latest` to start the memory server, then add the MCP server config to your agent (Claude Code, Cursor, Cline, etc.) using the standard mcpServers block with command 'npx -y @agentmemory/mcp'. For Claude Code, install the plugin via `/plugin marketplace add rohitg00/agentmemory` and `/plugin install agentmemory`.

Which AI clients does agentmemory work with?+

agentmemory works with any MCP-compatible client including Claude Code, Cursor, Claude Desktop, Cline, Roo Code, GitHub Copilot CLI, Gemini CLI, Codex CLI, OpenCode, Goose, Kilo Code, Warp, and 20+ others. It also provides REST API access for clients like Aider.

Do I need API keys or a paid service?+

No API keys are required for basic operation (keyless mode). The system runs locally with BM25 search and optional local embeddings. LLM providers (Anthropic, OpenAI, Gemini, Ollama) are optional and only needed for LLM-written compression (when AGENTMEMORY_AUTO_COMPRESS=true) or semantic vector search.

Is agentmemory free?+

Yes, agentmemory is open source (Apache-2.0 license) and free to use. It runs locally with no external dependencies. Optional embedding and LLM providers may have their own costs.

What are the prerequisites?+

Node.js 20 or newer with npm and npx. macOS/Linux auto-install requires curl, a POSIX shell, and tar. Windows requires manual iii-engine v0.11.2 installation, WSL2, or Docker Desktop.

How do I install agentmemory?+

Open the source repository on GitHub and follow its README. agentmemory is a mcp server — MCP Agents Market links you directly to the official repo.

Is agentmemory free?+

agentmemory is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches