# r3

> r3 is an open-source MCP server. Local Redis memory MCP for AI apps with hybrid caching and optional Mem0 cloud backup. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://r3.n3wth.com
- **Repository:** https://github.com/n3wth/r3
- **MCP Registry name:** io.github.n3wth/r3
- **Listing updated:** 2026-11-13

## About

Local Redis memory MCP for AI apps with hybrid caching and optional Mem0 cloud backup.

## Install

### Claude Code (Terminal)

```sh
claude mcp add r3 --env MEM0_API_KEY='<MEM0_API_KEY>' -- npx -y @n3wth/r3
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "r3": {
      "command": "npx",
      "args": [
        "-y",
        "@n3wth/r3"
      ],
      "env": {
        "MEM0_API_KEY": "<MEM0_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "r3": {
      "command": "npx",
      "args": [
        "-y",
        "@n3wth/r3"
      ],
      "env": {
        "MEM0_API_KEY": "<MEM0_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "r3": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@n3wth/r3"
      ],
      "env": {
        "MEM0_API_KEY": "<MEM0_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "r3": {
      "command": "npx",
      "args": [
        "-y",
        "@n3wth/r3"
      ],
      "env": {
        "MEM0_API_KEY": "<MEM0_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "r3": {
      "command": "npx",
      "args": [
        "-y",
        "@n3wth/r3"
      ],
      "env": {
        "MEM0_API_KEY": "<MEM0_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is r3 free?

Yes. r3 is open source, so you can use and self-host it for free.

### How do I add r3 to Claude Code?

Run this command in your terminal: claude mcp add r3 --env MEM0_API_KEY='<MEM0_API_KEY>' -- npx -y @n3wth/r3

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/r3
