← Back to directory
R

Reverie

Community
Neo4j graph memory for AI agents.
Category
Database #24 of 86
Stars
★ 67 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Node.js 18+
Credentials
API key / credential required
License
MIT
Last commit
Tools
12
57FMRS · C

The supplied material describes Neo4j graph memory, MCP tools, stdio configuration, and a Streamable HTTP mode. The server requires Neo4j credentials; graph writes and deletions can modify or remove data.

Strongest · Documentation 14/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
10/20
Maintenance
10/20
Documentation
14/20
Setup experience
13/20
Why each score
Reliability 10/20
The README claims unit, integration, and coverage tests, and describes read-only query restrictions, time and row limits, and semantic-search fallback. This review has only the README and manifest, so tests, CI, the initialization handshake, and actual tool behavior cannot be verified; the score is conservative.
Security and permissions 10/20
The manifest marks the Neo4j password as secret. The README discloses remote embeddings, HTTP bearer authentication, activation logging, and query limits, and recommends a read-only database role. However, deleting a memory permanently removes its connections without a confirmation mechanism, and the implementation of query safeguards and actual data boundaries cannot be verified from the supplied material.
Maintenance 10/20
The repository is not marked archived and has an MIT license; the README describes npm releases and version synchronization. There is no evidence here of commit or release history, issue response, dependency updates, or a security-response channel, so sustained maintenance cannot be established.
Documentation 14/20
The README covers installation, configuration, environment variables, search modes, tools, limits, examples, and authentication and data flows for HTTP mode. Some implementation claims cannot be checked against source code, and troubleshooting and security-boundary details remain incomplete, so full marks are not justified.
Setup experience 13/20
The README provides an npx launch command and a Claude Desktop configuration example, and identifies the Node.js, Neo4j, and credential prerequisites. A working setup still requires preparing Neo4j separately, and there is no verifiable end-to-end startup evidence.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkConnects to a database

Best for

  • AI agent developers who want self-hosted Neo4j graph memory.
  • Teams that need persistent memory retrieval through relationship traversal and hybrid search.

Not for

  • Users who do not want to deploy or maintain a Neo4j database.
  • Use cases that require the tools themselves to infer entities, relationships, or conflicts instead of leaving those decisions to the model.
  • Use cases requiring a memory backend other than a local database.

Required permissions

  • Requires a connection to Neo4j with a username and password; the password is secret configuration.
  • Create, update, and delete tools can modify the graph; deleting a memory also deletes its relationships.
  • query_memories runs read-only queries, while the database account used by other write tools needs appropriate write permissions.
  • If a remote embedding provider is selected, semantic search uses that provider; the local embedding model downloads from Hugging Face on first use.

Risks and side effects

  • Deletion is permanent; dream can change the graph through consolidation, so review its report with dry_run first.
  • Protect database credentials; using a remote embedding provider sends embedding requests to that provider.
  • Semantic search falls back to keyword matching if the embedding model or service is unavailable, which can change results.
  • The README describes read-only limits for query_memories and recommends a read-only Neo4j role as an additional safeguard.

Setup

Before you start

Runtime:Node.js 18+

NEO4J_URI required Bolt URI for the Neo4j 5 database, such as bolt://localhost:7687.
NEO4J_USERNAME required Neo4j username configured for the database.
NEO4J_PASSWORD requiredsecret Password for the configured Neo4j user.
OPENAI_API_KEY optionalsecret Required when using OpenAI embeddings; obtain an API key from OpenAI.
AZURE_OPENAI_API_KEY optionalsecret Required for Azure OpenAI embeddings; obtain the key from Azure.
VOYAGE_API_KEY optionalsecret Required when using Voyage embeddings; obtain an API key from Voyage.
REVERIE_SERVE_TOKEN requiredsecret Required only in HTTP mode; set a bearer token and provide the same token to the client.
Other optional settings (20)
NEO4J_DATABASE optional Optional database name; set this for a Neo4j Enterprise database, or omit it on Community Edition.
REVERIE_EMBEDDINGS optional Optional embedding provider for semantic search: local (default), openai, azure, ollama, voyage, or none.
REVERIE_EMBEDDING_MODEL optional Optional override for the embedding model name used by the selected provider.
REVERIE_MODEL_CACHE optional Optional location for the local embedding model cache.
OPENAI_BASE_URL optional Optional base URL for the OpenAI API.
AZURE_OPENAI_ENDPOINT optional Required for Azure OpenAI embeddings; provide your Azure OpenAI endpoint.
AZURE_OPENAI_EMBEDDING_DEPLOYMENT optional Required for Azure OpenAI embeddings; provide the embedding deployment name.
AZURE_OPENAI_API_VERSION optional Optional Azure OpenAI API version.
OLLAMA_HOST optional Optional address of the Ollama service.
REVERIE_EMBED_TIMEOUT_MS optional Optional timeout in milliseconds for remote embedding requests.
REVERIE_HTTP_HOST optional Optional HTTP bind address; defaults to 127.0.0.1.
REVERIE_HTTP_PORT optional Optional HTTP port; defaults to 8643.
REVERIE_ALLOWED_ORIGINS optional Optional comma-separated allowlist of browser origins.
REVERIE_EVENTS_PATH optional Optional activation log path; defaults to ~/.reverie/events.jsonl and can be disabled with an empty string.
REVERIE_DREAMS_DIR optional Optional directory containing dream diary Markdown files.
REVERIE_USAGE_STATS_PATH optional Optional path to the Presence usage statistics file.
REVERIE_BOOST_STATE_PATH optional Optional path to the Presence boost state file.
REVERIE_GRAPH_POLL_SECONDS optional Optional graph polling interval in seconds; defaults to 5.
REVERIE_STATE_SECONDS optional Optional host state polling interval in seconds; defaults to 5.
REVERIE_EVENT_POLL_SECONDS optional Optional activation log polling interval in seconds; defaults to 1.

Prepare Neo4j 5.9 or later and Node.js 18 or later. Add the supplied JSON to Claude Desktop's MCP configuration and set NEO4J_URI, NEO4J_USERNAME, and NEO4J_PASSWORD. NEO4J_DATABASE is optional and applies to multi-database Neo4j Enterprise setups. The configuration runs @knowall-ai/reverie with npx.

claude_desktop_config.json
{"mcpServers":{"reverie":{"command":"npx","args":["-y","@knowall-ai/reverie"],"env":{"NEO4J_URI":"bolt://localhost:7687","NEO4J_USERNAME":"neo4j","NEO4J_PASSWORD":"your-password","NEO4J_DATABASE":"neo4j"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "reverie": {
      "command": "npx",
      "args": [
        "-y",
        "@knowall-ai/reverie"
      ],
      "env": {
        "NEO4J_URI": "bolt://localhost:7687",
        "NEO4J_USERNAME": "neo4j",
        "NEO4J_PASSWORD": "your-password",
        "NEO4J_DATABASE": "neo4j"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.reverie]
command = "npx"
args = ["-y", "@knowall-ai/reverie"]

[mcp_servers.reverie.env]
NEO4J_URI = "bolt://localhost:7687"
NEO4J_USERNAME = "neo4j"
NEO4J_PASSWORD = "your-password"
NEO4J_DATABASE = "neo4j"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add reverie -e NEO4J_URI=bolt://localhost:7687 -e NEO4J_USERNAME=neo4j -e NEO4J_PASSWORD=your-password -e NEO4J_DATABASE=neo4j -- npx -y @knowall-ai/reverie

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm that `search_memories` and `get_guidance` appear in your client's tool list. Search for an existing memory; returned results confirm the server connected to Neo4j.

Troubleshooting

  1. Check that Neo4j is reachable, NEO4J_URI has the correct Bolt address, and the username and password are valid.
  2. Confirm Neo4j is version 5.9 or later; setting NEO4J_DATABASE for multiple databases requires Enterprise.
  3. If semantic search is unavailable, check REVERIE_EMBEDDINGS and the selected provider's configuration, and confirm whether keyword fallback is working.
  4. Check Claude Desktop's configuration for the npx command, package name, and required environment variables.
  5. If dream cannot merge duplicates, confirm that APOC is available in Neo4j.

Things to try

Once connected, you can ask your AI assistant things like:

  • Remember that John works at Google as a software engineer, and connect him to Google.
  • Find memories about John and include related memories up to two hops away.
  • Summarize the graph's node, relationship, and orphan counts.
  • Preview graph cleanup with a dry run.

Tools 12

search_memories read-only
Search memories by keyword, semantic, fuzzy-name, or exact matching, with filters for type, date, and relationship depth.
create_memory writes
Create a labeled memory node with properties in the knowledge graph.
create_connection writes
Create a typed, optionally property-bearing relationship between two memory nodes.
update_memory writes
Update properties on an existing memory; set a property to null to remove it.
update_connection writes
Update properties on an existing relationship.
delete_memory destructive
Delete a memory node and all its relationships.
delete_connection destructive
Delete a specified relationship while keeping both nodes.
list_memory_labels read-only
List memory labels in use and their counts; archived memories are excluded by default.
Show 4 more tools
query_memories read-only
Run a read-only Cypher query in a Neo4j READ transaction, with row and time limits.
memory_stats read-only
Summarize graph node, relationship, label, embedding, and orphan counts.
dream writes
Clean up the graph by canonicalizing labels, merging duplicate nodes when APOC is available, and refreshing embeddings; supports dry runs.
get_guidance read-only
Get guidance on labels, relationships, and memory-management practices.

Use cases

Persist and retrieve people, projects, organizations, and their relationships across conversations.
Search graph memories using keyword, semantic, and fuzzy-name matching.
Periodically consolidate duplicate nodes, canonicalize labels, and refresh embeddings.

Supported clients

Claude Desktop

Listed from the project's documentation, not tested by this site.

Overview

Reverie is an MCP server by KnowAll AI that stores and retrieves AI agent memories in a Neo4j knowledge graph. It provides hybrid keyword, semantic, and fuzzy-name search, entity and relationship management, read-only Cypher queries, and a dream tool for graph cleanup and embedding refresh.

Similar servers

Source revision 0640b3dc3f0f Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-reverie.svg)](https://followmcp.com/en/servers/mcp-reverie)