# r3 [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/n3wth/r3  
**GitHub Stars:** 4  
**npm Downloads (last month):** 243  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/r3-2

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

## Tools
Capabilities this server exposes over MCP:

- **add_memory** — Store content with optional metadata and priority
- **search_memory** — Query memories using semantic or keyword search
- **get_all_memories** — List stored memories with pagination
- **get_memory** — Retrieve a specific memory by ID
- **update_memory** — Modify existing memory content or metadata
- **delete_memory** — Remove a memory
- **deduplicate_memories** — Find and merge duplicate memories
- **cache_stats** — Report cache hit rate and storage stats
- **sync_status** — Report Mem0 cloud sync status
- **optimize_cache** — Run cache maintenance
- **import_memories** — Bulk import memories
- **extract_entities** — Extract named entities from text
- **get_knowledge_graph** — Return the entity/relationship graph
- **find_connections** — Find entities connected to a given entity

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What r3 MCP server does

The r3 MCP server provides persistent memory for MCP clients such as Claude Desktop, Claude Code, and Cursor. It stores memory content and metadata locally, allowing information saved in one conversation or server process to remain available later. The default setup does not require an account, API key, separate database, or cloud service.

Memory operations include adding, searching, listing, retrieving, updating, deleting, importing, and deduplicating records. The server also exposes cache statistics, cache maintenance, and Mem0 synchronization status. Search supports semantic and keyword queries through its local vector index.

When enhanced intelligence is enabled, r3 can extract named entities, return an entity and relationship graph, and find connections related to a specified entity. Basic mode is available when these enhanced capabilities are not wanted.

## How it works

The r3 MCP server communicates with clients through stdio. Running `npx @n3wth/r3` starts the server and prepares its local storage components. An embedded Redis process stores memory data and metadata; the Redis binary is managed automatically by `redis-memory-server`. If embedded Redis cannot start, r3 falls back to an in-process store.

A vectra index provides file-backed local vector search. This component does not require an external vector database or make network calls. The default architecture therefore keeps memory data on the machine running the server.

Mem0 is an optional cloud path. Setting `MEM0_API_KEY` enables synchronization with Mem0, which can make memories available across machines. Without that variable, r3 remains local. The `MEM0_USER_ID` value selects the memory namespace and defaults to `default`.

## Setup and configuration

Start the server directly with:

```bash
npx @n3wth/r3
```

For Claude Desktop or Cursor, add an MCP entry whose command is `npx` and whose argument is `@n3wth/r3`. Claude Code can register the same command with `claude mcp add r3 "npx @n3wth/r3"`. Restart the client after changing its configuration.

All configuration variables are optional. `REDIS_URL` selects an external Redis instance instead of the embedded server. `MEM0_API_KEY` enables Mem0 synchronization, `MEM0_USER_ID` sets its namespace, and `INTELLIGENCE_MODE` accepts `enhanced` or `basic`, with enhanced mode as the default.

## Tools and capabilities

The r3 MCP server includes these core tools:

- `add_memory` stores content with optional metadata and priority.
- `search_memory` performs semantic or keyword searches.
- `get_all_memories` lists records with pagination.
- `get_memory`, `update_memory`, and `delete_memory` manage individual records.
- `deduplicate_memories` finds and merges duplicates.
- `import_memories` supports bulk imports.
- `cache_stats` reports cache and storage information, while `optimize_cache` runs maintenance.
- `sync_status` reports Mem0 synchronization status.

Enhanced mode adds `extract_entities`, `get_knowledge_graph`, and `find_connections`.

## Limitations and notes

Local operation depends on the embedded Redis process or its in-process fallback. Some macOS setups may encounter a native module build failure, according to the project’s known-issues documentation. Mem0 synchronization is disabled unless an API key is supplied, and cloud synchronization introduces a network-backed component unlike the default local configuration.

It does not provide configuration instructions for other MCP clients.

_Full upstream README: https://allmcps.com/mcp/r3-2/readme_

