Connect AI agents to Mem0 for long-term memory, retrieval, and personalization
API
UI
Open Source
1
Install the SDKs (optional)
pip install klavis
2
Create a Strata MCP Server with Mem0
from klavis import Klavisfrom klavis.types import McpServerNameklavis_client = Klavis(api_key="YOUR_API_KEY")# Create a Strata MCP server with Mem0response = klavis_client.mcp_server.create_strata_server( servers=[McpServerName.MEM0], user_id="user123")
userId specifies whose connected accounts and data you are accessing in Klavis. It should be a unique id for yourself, your team, or your organization.
API Reference
Full Strata API endpoints
3
Authenticate
import webbrowser# Open OAuth authorization pagewebbrowser.open(response.oauth_urls[McpServerName.MEM0])
# Pull the Docker imagedocker pull ghcr.io/klavis-ai/mem0-mcp-server:latest# Run with OAuth support (requires Klavis API key)docker run -p 5000:5000 \ -e KLAVIS_API_KEY=$KLAVIS_API_KEY \ ghcr.io/klavis-ai/mem0-mcp-server:latest# Or run with manual API keydocker run -p 5000:5000 \ -e AUTH_DATA='{"access_token":"your_mem0_api_key"}' \ ghcr.io/klavis-ai/mem0-mcp-server:latest
With our progressive discovery approach, Klavis System is capable of enabling all tools for Mem0. Please use the get_tools API for more details. If you find any tool that is missing, please reach out to contact@klavis.ai.