← Back to directory
M

Mem0 Memory MCP Server

Community
Give AI assistants memory across sessions.
Category
Database #49 of 86
Stars
★ 97 Popular
Transport
stdio (local process)
Runtime
Node.js 18+
Credentials
API key / credential required
License
MIT
Last commit
Tools
16
52FMRS · D

This is a Pink Pixel Mem0 memory server with multiple storage backends and memory management tools. The README describes broad cloud capabilities, while Supabase and local modes support fewer features; local storage is not persistent by default.

Strongest · Setup experience 13/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
10/20
Maintenance
8/20
Documentation
13/20
Setup experience
13/20
Why each score
Reliability 8/20
The README lists stdio configuration, tool parameters, asynchronous-add polling, and backend capability differences, making the happy path plausible. However, no manifest or source files, CI, tests, or verifiable handshake evidence are provided, and several cloud tools depend on external services. Tool declarations therefore cannot be checked against implementation, so the static-calibration limit applies.
Security and permissions 10/20
The README shows credentials configured through environment variables, user and app scoping, and a confirm=true requirement for batch deletion. However, tool parameters can override default scopes, and access control, data flows, credential boundaries, and deletion safeguards cannot be verified without source files. Examples use placeholder credentials; no red-line evidence is present.
Maintenance 8/20
The repository is stated to be unarchived and the materials identify an MIT license and npm package. They provide no evidence of release history, commit activity, issue response, dependency updates, or a security-response channel, so sustained maintenance cannot be established.
Documentation 13/20
The README covers three storage modes, installation and configuration, tool parameters, limitations, Supabase initialization, and debugging. It lacks manifest and source corroboration; several features are cloud-only, while cost, version compatibility, and troubleshooting details are limited, so the score is reduced.
Setup experience 13/20
The README provides global-install, npx, and source-build paths, mainstream MCP client configuration examples, and a Node.js 18+ requirement. But there is no manifest, CI, or test evidence to verify execution, and users must supply service credentials and environment configuration, so static-calibration deductions apply.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkConnects to a database

Best for

  • AI applications that need persistent memory and can configure Mem0 Cloud or Supabase.
  • Development or testing that uses local in-memory storage.

Not for

  • Workflows that require local mode to persist data by default.
  • Workflows that need cloud audit, event, or batch features on every backend.

Required permissions

  • Requires credentials for the selected backend: a Mem0 API key, or a Supabase URL and key; Supabase and local modes also require an OpenAI API key.
  • Callers can use tools to read, write, or delete memories; the batch delete tool requires confirm to be true.

Risks and side effects

  • Local storage is in memory by default, so data is lost when the server restarts or the process terminates.
  • Cloud-only tools are unavailable in Supabase and local modes.
  • Memory content may include sensitive information; the source does not describe encryption, retention, or access-control details.

Setup

Before you start

Runtime:Node.js 18+

MEM0_API_KEY optionalsecret Mem0 Cloud API key; obtain it from Mem0.
SUPABASE_KEY optionalsecret Supabase anon key; find it in your project settings.
OPENAI_API_KEY optionalsecret OpenAI API key used for embeddings; obtain it from OpenAI.
Other optional settings (4)
DEFAULT_USER_ID optional Fallback user ID when a tool call omits userId; choose a value for your setup.
DEFAULT_AGENT_ID optional Fallback agent ID when a tool call omits agentId; choose a value for your setup.
DEFAULT_APP_ID optional Fallback app ID for project scope when a tool call omits appId; choose a value for your setup.
SUPABASE_URL optional Supabase project URL; find it in your project settings.

Use the provided JSON in your MCP client configuration. It runs @pinkpixel/mem0-mcp with npx and sets a Mem0 API key plus optional default user, agent, and app IDs. Supabase mode requires SUPABASE_URL, SUPABASE_KEY, and OPENAI_API_KEY, along with database setup. Local mode requires OPENAI_API_KEY and uses non-persistent in-memory storage by default.

claude_desktop_config.json
{
  "mcpServers": {
    "mem0-mcp": {
      "command": "npx",
      "args": ["-y", "@pinkpixel/mem0-mcp"],
      "env": {
        "MEM0_API_KEY": "YOUR_MEM0_API_KEY_HERE",
        "DEFAULT_USER_ID": "user123",
        "DEFAULT_AGENT_ID": "your-agent-id",
        "DEFAULT_APP_ID": "your-app-id"
      }
    }
  }
}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "mem0-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pinkpixel/mem0-mcp"
      ],
      "env": {
        "MEM0_API_KEY": "YOUR_MEM0_API_KEY_HERE",
        "DEFAULT_USER_ID": "user123",
        "DEFAULT_AGENT_ID": "your-agent-id",
        "DEFAULT_APP_ID": "your-app-id"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.mem0-mcp]
command = "npx"
args = ["-y", "@pinkpixel/mem0-mcp"]

[mcp_servers.mem0-mcp.env]
MEM0_API_KEY = "YOUR_MEM0_API_KEY_HERE"
DEFAULT_USER_ID = "user123"
DEFAULT_AGENT_ID = "your-agent-id"
DEFAULT_APP_ID = "your-app-id"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add mem0-mcp -e MEM0_API_KEY=YOUR_MEM0_API_KEY_HERE -e DEFAULT_USER_ID=user123 -e DEFAULT_AGENT_ID=your-agent-id -e DEFAULT_APP_ID=your-app-id -- npx -y @pinkpixel/mem0-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After connecting, confirm `add_memory` and `search_memories` appear in the client's MCP tool list. Call `get_memory_capabilities` to confirm the server responds and inspect the active backend's supported features.

Troubleshooting

  1. Check that credentials for the selected storage mode are set in the MCP configuration.
  2. For Supabase, verify the required tables, pgvector extension, and vector search function are set up.
  3. Cloud additions poll asynchronous jobs by default; check the timeout setting or use the event tools to inspect a job.
  4. If protocol communication fails, check for log output on stdout; the README recommends sending debug logs to stderr.

Things to try

Once connected, you can ask your AI assistant things like:

  • Remember that I prefer TypeScript for new projects.
  • Search my saved memories for travel plans.
  • List the memories for the current user.
  • Delete the memory I selected.

Tools 16

add_memory writes
Stores text or structured messages as a memory.
search_memories read-only
Searches memories with semantic and BM25 hybrid filters.
search_memory read-only
Backward-compatible alias for memory search.
list_memories read-only
Lists memories by identifiers and filters with pagination.
get_memory read-only
Retrieves one memory by ID.
update_memory writes
Changes the text or metadata of an existing memory.
delete_memory destructive
Deletes a memory by ID.
get_memory_history read-only
Retrieves the memory revision audit trail (cloud only).
Show 8 more tools
get_memory_capabilities read-only
Shows feature support for the active storage backend.
batch_update_memories writes
Bulk updates the text of multiple memories (cloud only).
batch_delete_memories destructive
Bulk deletes multiple memories.
rate_memory writes
Submits quality feedback for a memory (cloud only).
get_memory_event read-only
Retrieves details for a background processing event (cloud only).
list_memory_events read-only
Lists background memory processing events with pagination (cloud only).
create_memory_export writes
Starts an asynchronous memory export job (cloud only).
get_memory_export read-only
Retrieves export job status and download metadata (cloud only).

Use cases

Let an AI agent save and retrieve information across sessions.
Scope and manage memories by user, agent, app, or session.
Manage memory records, feedback, and cloud export jobs.

Supported clients

Claude Desktop
CursorPartial support
ClinePartial support
Roo CodePartial support

Listed from the project's documentation, not tested by this site.

Overview

Mem0 Memory MCP Server connects Mem0.ai through MCP so AI agents can store and retrieve information across sessions. It supports Mem0 cloud, Supabase, and local storage, with different capabilities across backends.

Similar servers

Source revision 7c29daec401b Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mem0-mcp.svg)](https://followmcp.com/en/servers/mem0-mcp)