Reverie
Neo4j graph memory for agents with hybrid search and a nightly clean-up tool
Reverie is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can delete data (2 tools)
- Access
- Needs a secret key or token
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add reverie --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' -- npx -y @knowall-ai/reverieAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"reverie": {
"command": "npx",
"args": [
"-y",
"@knowall-ai/reverie"
],
"env": {
"NEO4J_URI": "<NEO4J_URI>",
"NEO4J_USERNAME": "<NEO4J_USERNAME>",
"NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add reverie --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' -- npx -y @knowall-ai/reverieOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.reverie]
command = "npx"
args = ["-y", "@knowall-ai/reverie"]
env = { NEO4J_URI = "<NEO4J_URI>", NEO4J_USERNAME = "<NEO4J_USERNAME>", NEO4J_PASSWORD = "<NEO4J_PASSWORD>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"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
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
NEO4J_URIBolt URI of the Neo4j 5 database, e.g. bolt://localhost:7687RequiredNEO4J_USERNAMENeo4j userRequiredNEO4J_PASSWORDNeo4j passwordRequiredNEO4J_DATABASEDatabase name (Enterprise only; omit on Community Edition)REVERIE_EMBEDDINGSEmbedding provider for semantic search: local (default, no API key), openai, azure, ollama, voyage or none
About Reverie
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.
Tools this server provides (10)
Taken from the project documentation; the running server may differ.
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_memoriesName suggests: reads
- Search the graph by hybrid, keyword, semantic, fuzzy or exact mode.
- create_memoryName suggests: changes
- Create a labelled memory node with properties.
- create_connectionName suggests: changes
- Create a typed relationship between memories.
- update_memoryName suggests: changes
- Update a memory's properties.
- update_connectionName suggests: changes
- Update a relationship's properties.
- delete_memoryName suggests: deletes
- Permanently remove a memory and its connections.
- delete_connectionName suggests: deletes
- Remove a specific relationship.
- list_memory_labelsName suggests: reads
- List labels in use with counts.
- query_memoriesName suggests: reads
- Run a read-only Cypher query.
- dream
- Merge duplicates, canonicalise labels, re-embed and flag overloaded nodes.
What it does
- 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
Pricing
Open source
Free; you run your own Neo4j
Reverie 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.



