Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Agentmemory MCP

MCP server by rohitg00 Verified · npm:@agentmemory

Agentmemory gives coding agents persistent memory across sessions and tools. It captures session events, makes decisions and fixes searchable, and lets agents recall them later. It is built for developers who use several coding assistants.

  • Score 94
  • 31k stars
  • 17k a week
  • Apache-2.0
  • Updated

Install Agentmemory MCP

Built from the published package, never by AI.

claude mcp add agentmemory-mcp -- npx -y @agentmemory/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Agentmemory MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agentmemory-mcp block.

About

Agentmemory is a persistent memory server for coding agents. It captures supported coding session events from tools such as Claude Code, Cursor, Gemini CLI and Codex CLI, scrubs secrets, and stores decisions and fixes so agents can recall them later. Memory is kept in one local store shared across tools, and setup runs through npx.

Recall works through keyword search (BM25) without an API key. Local or remote embeddings add semantic search. A live viewer on port 3113 lets users browse, edit, export and forget memories, and the API on port 3111 binds to loopback by default. It suits developers who use several coding agents and want shared project history.

Written from the project's README and checked against it.

Tools it gives your assistant

  • memory_recallKeyword search over saved memories, using BM25 in keyless mode.
  • memory_smart_searchSearch that can also add structural graph matches when graph data exists.

What you need

  • Node.js 20 or newer with npm and npx
  • macOS or Linux also need curl, a POSIX sh, and tar
  • Windows users can use WSL2 or the native Windows setup
  • An embedding provider for semantic search (optional)

Try asking

  • Search my memory for how we fixed the N+1 query issue.
  • Run a smart search for past decisions about rate limiting.
  • Recall the lessons saved from our last coding session.

Good to know

  • Keyless mode disables vector embeddings, so some semantic queries can return zero results.
  • The first local embedding request downloads the Xenova/all-MiniLM-L6-v2 model.
  • LLM-written observation compression is opt-in and needs a provider and AGENTMEMORY_AUTO_COMPRESS=true.

Security check

F
  • Sends keys or private files to a web addressIn README.md: curl -fsS http://localhost:3111/agentmemory/livez`. The real-time viewer is at http://localhost:3113. Set `EMBEDDING_PROVIDER=local` in `~/.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Agentmemory MCP

All alternatives →

Compare with Zotero MCP, Agentdb or Genkitx MCP

Agentmemory MCP: common questions

Does agentmemory need an API key?

Keyword recall works without an API key through BM25. Semantic search needs an embedding provider, and the source describes EMBEDDING_PROVIDER=local for free on-device embeddings.

Where are memories stored?

By default they are stored outside the repository, in the Application Support folder on macOS, the XDG data directory on Linux, and %APPDATA% on Windows.

Which agents does it work with?

The source lists Claude Code, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, Cline and many others, and says any agent that speaks MCP or HTTP can connect.

How do I install Agentmemory MCP?

In Claude Code run claude mcp add agentmemory-mcp -- npx -y @agentmemory/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Agentmemory MCP the official server?

Agentmemory MCP is published by npm:@agentmemory from its verified domain in the official MCP Registry.

Is Agentmemory MCP free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Agentmemory MCP safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade F (sends keys or private files to a web address). Review the code before you install. How grades work.

What are alternatives to Agentmemory MCP?

Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.

Does Agentmemory MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Agentmemory MCP Install

Add to stack

Loading.