# Reverie

> Reverie is an open-source MCP server for knowledge and memory. Neo4j graph memory for agents with hybrid search and a nightly clean-up tool. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/knowall-ai/mcp-reverie
- **MCP Registry name:** ai.knowall/reverie
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-11-23

## About

Reverie stores what an agent knows as a typed graph of people, organisations, projects, places, concepts, meetings and decisions, linked by relationships such as KNOWS or WORKS_AT. The README's point is that a question like which contacts at a given organisation were discussed in a project becomes a graph walk instead of a similarity search. It also warns against turning nodes into notebooks, returning a hint when one holds too many properties.

Search combines keyword, semantic and fuzzy name matching, so a search for Ben Wicks can find Benjamin Weeks. Embeddings run locally by default with no API key, with OpenAI, Azure, Ollama or Voyage selectable. An exact mode is meant as the lookup to run before creating a memory. The dream tool merges duplicates, canonicalises labels, re-embeds, counts orphans and flags overloaded nodes, so it can run as a nightly job.

You supply your own Neo4j 5 database, and the server runs through npx over stdio. Tools are deliberately simple and leave entity recognition and conflict resolution to the model. Data stays in your database unless you choose a remote embedding provider.

## Features

- **Typed entity graph:** Entities and relationships rather than a flat fact store.
- **Hybrid search:** Keyword, semantic, fuzzy and exact matching modes.
- **Dream tool:** Cleans and merges the graph, suited to a scheduled job.
- **Local embeddings:** Semantic search works without an API key by default.
- **Read-only Cypher:** Run custom graph queries in a read transaction.
- **Archive-aware:** Archived memories are left out unless requested.

## Good for

- Give several agents one shared memory of people and projects
- Find a contact despite a misspelled or nickname
- Keep a long-running agent's memory deduplicated
- Trace who is connected to which decision

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add reverie --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' -- npx -y @knowall-ai/reverie
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "reverie": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add reverie --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' -- npx -y @knowall-ai/reverie
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.reverie]
command = "npx"
args = ["-y", "@knowall-ai/reverie"]
env = { NEO4J_URI = "<NEO4J_URI>", NEO4J_USERNAME = "<NEO4J_USERNAME>", NEO4J_PASSWORD = "<NEO4J_PASSWORD>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e NEO4J_URI='<NEO4J_URI>' -e NEO4J_USERNAME='<NEO4J_USERNAME>' -e NEO4J_PASSWORD='<NEO4J_PASSWORD>' reverie npx -- -y @knowall-ai/reverie

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 10 tools delete data and 4 change data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `search_memories` (name suggests: reads): Search the graph by hybrid, keyword, semantic, fuzzy or exact mode.
- `create_memory` (name suggests: changes): Create a labelled memory node with properties.
- `create_connection` (name suggests: changes): Create a typed relationship between memories.
- `update_memory` (name suggests: changes): Update a memory's properties.
- `update_connection` (name suggests: changes): Update a relationship's properties.
- `delete_memory` (name suggests: deletes): Permanently remove a memory and its connections.
- `delete_connection` (name suggests: deletes): Remove a specific relationship.
- `list_memory_labels` (name suggests: reads): List labels in use with counts.
- `query_memories` (name suggests: reads): Run a read-only Cypher query.
- `dream`: Merge duplicates, canonicalise labels, re-embed and flag overloaded nodes.

## FAQ

### What do I need to run Reverie?

A Neo4j 5 database, with its URI, username and password set as environment variables.

### Does Reverie need an API key?

No. Local embeddings are the default; remote providers are optional.

### What does dream do?

It merges duplicates, canonicalises labels, re-embeds, counts orphans and flags overloaded nodes.

### Can Reverie use Neo4j Enterprise databases?

Yes, through NEO4J_DATABASE; omit it on Community Edition.

### Is Reverie free?

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

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

Run this command in your terminal: claude mcp add reverie --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' -- npx -y @knowall-ai/reverie

### What are the best alternatives to Reverie?

The closest alternatives to Reverie are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

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