Mem0 MCP Server

A Model Context Protocol server that can store and retrieve memories for LLM context control

Local serverstdioGo

What is the Mem0 MCP Server?

A Model Context Protocol server that can store and retrieve memories for LLM context control

What it actually does

A Model Context Protocol (MCP) server that integrates with Mem0.ai to provide persistent memory capabilities for LLMs. It allows AI agents to store and retrieve information across sessions.

Configuration

This server supports three storage modes: 1. Cloud Storage Mode ☁️ (Recommended for production) * Requires a Mem0 API key (provided as MEM0_API_KEY environment variable) * Memories are persistently stored on Mem0's cloud servers * No local database needed * Full feature support with advanced filtering and search 2. Supabase Storage Mode 🗄️ (Recommended for self-hosting) * Requires

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Mem0 MCP Server

{
  "mcpServers": {
    "mem0-mcp": {
      "command": "mem0-mcp",
      "args": [],
      "env": {
        "MEM0_API_KEY": "YOUR_MEM0_API_KEY",
        "DEFAULT_USER_ID": "user123",
        "DEFAULT_AGENT_ID": "your-agent-id",
        "DEFAULT_APP_ID": "your-app-id"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

This server supports three storage modes: 1. Cloud Storage Mode ☁️ (Recommended for production) * Requires a Mem0 API key (provided as MEM0_API_KEY environment variable) * Memories are persistently stored on Mem0's cloud servers * No local database needed * Full feature support with advanced filtering and search 2. Supabase Storage Mode 🗄️ (Recommended for self-hosting) * Requires

VariableDescriptionRequired
MEM0_API_KEYDeclared in the maintainer’s client configuration.Check documentation
DEFAULT_USER_IDDeclared in the maintainer’s client configuration.Check documentation
DEFAULT_AGENT_IDDeclared in the maintainer’s client configuration.Check documentation
DEFAULT_APP_IDDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Mem0 MCP to Inputs.”
  • “Use Mem0 MCP to Behavior.”
  • “Use Mem0 MCP to Requires.”

Frequently asked questions

A Model Context Protocol server that can store and retrieve memories for LLM context control Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.