Intelligent memory MCP for AI apps
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add r3 --env MEM0_API_KEY='<MEM0_API_KEY>' -- npx -y @n3wth/r3~/.codex/config.toml
[mcp_servers.r3]
command = "npx"
args = ["-y", "@n3wth/r3"]
env = { MEM0_API_KEY = "<MEM0_API_KEY>" }
# codex mcp add r3 --env MEM0_API_KEY='<MEM0_API_KEY>' -- npx -y @n3wth/r3~/.cursor/mcp.json
{
"mcpServers": {
"r3": {
"command": "npx",
"args": [
"-y",
"@n3wth/r3"
],
"env": {
"MEM0_API_KEY": "<MEM0_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"r3": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@n3wth/r3"
],
"env": {
"MEM0_API_KEY": "<MEM0_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"r3": {
"command": "npx",
"args": [
"-y",
"@n3wth/r3"
],
"env": {
"MEM0_API_KEY": "<MEM0_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"r3": {
"command": "npx",
"args": [
"-y",
"@n3wth/r3"
],
"env": {
"MEM0_API_KEY": "<MEM0_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"r3": {
"command": "npx",
"args": [
"-y",
"@n3wth/r3"
],
"env": {
"MEM0_API_KEY": "<MEM0_API_KEY>"
}
}
}
}Environment variables
MEM0_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.