mem0

mem0 is an MCP server for Claude Code from mem0ai/mem0. Its token cost is not measured, scanned A, original, Apache-2.0.

An MCP server that connects an agent to Mem0, a system for storing and retrieving information across conversations or tasks. Its setup requires a data-directory environment variable.

In plain words
What is it for?
Use it to add persistent memory storage and retrieval to an agent, subject to the configured Mem0 server.
Why use it?
It gives the agent a place to keep relevant information beyond the immediate conversation.

MCP server for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: listed in a Claude config.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the mem0 plugin — 1 agent, 9 hooks, 1 MCP server shipped together

▶ Mem0 + Claude Code MCP — Give Your AI Agent a Permanent Memory Prompt Engineer · about mem0 · on YouTube →

Good fit Use it to add persistent memory storage and retrieval to an agent, subject to the configured Mem0 server.

Compare 6 mcp servers from other repositories ↓

Installing this writes the configuration, not the program: `python3` runs a file from the repository, so clone it first and make the path in the command match where you put it.

About the project

mem0 is memory infrastructure that lets AI agents and applications store and retrieve information across interactions. It supports agents and developers who need persistent context for AI systems.

mem0ai/mem0 · 67,370 stars · on GitHub · mem0.ai

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add mem0ai/mem0
Claude Code
/plugin install mem0

Installing this writes the configuration, not the program: `python3` runs a file from the repository, so clone it first and make the path in the command match where you put it.

Made for: Claude Code.

Or install mem0, the plugin that ships this one along with the rest of its 1 agent, 9 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mem0

README.md
[![agentmods](https://agentmods.dev/badge/mcp/mem0ai/mem0/claude-code-plugin-mem0/github.svg)](https://agentmods.dev/mcp/mem0ai/mem0/claude-code-plugin-mem0)
Your own site
<a href="https://agentmods.dev/mcp/mem0ai/mem0/claude-code-plugin-mem0"><img src="https://agentmods.dev/badge/mcp/mem0ai/mem0/claude-code-plugin-mem0/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mem0

Your own site · 80×15
<a href="https://agentmods.dev/mcp/mem0ai/mem0/claude-code-plugin-mem0"><img src="https://agentmods.dev/badge/mcp/mem0ai/mem0/claude-code-plugin-mem0.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

mem0 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/claude-code-plugin/.mcp.json · 11 lines

What it actually says

{
  "mem0": {
    "command": "python3",
    "args": [
      "${CLAUDE_PLUGIN_ROOT}/core/mcp_server.py"
    ],
    "env": {
      "MEM0_CODE_DATA_DIR": "${CLAUDE_PLUGIN_DATA}"
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 11 lines scan A 6971429ec276

Subscribe to this mod's changes

mem0 is an MCP server published in the GitHub repository mem0ai/mem0 (67,370 stars, last pushed today), licensed Apache-2.0. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-02.