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.
Install Agentmemory MCP
Built from the published package, never by AI.
claude mcp add agentmemory-mcp -- npx -y @agentmemory/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"agentmemory-mcp": {
"args": [
"-y",
"@agentmemory/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"agentmemory-mcp": {
"args": [
"-y",
"@agentmemory/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agentmemory-mcp": {
"args": [
"-y",
"@agentmemory/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agentmemory-mcp -- npx -y @agentmemory/mcp{
"mcpServers": {
"agentmemory-mcp": {
"args": [
"-y",
"@agentmemory/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add agentmemory-mcp npx -y @agentmemory/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
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.
