# Reverie

> Neo4j graph memory for AI agents.

- **URL**: https://followmcp.com/en/servers/mcp-reverie
- **Category**: Database
- **Origin**: Community
- **Stars**: 67
- **FMRS Score**: 57/100 (Grade C)
- **Source**: https://github.com/knowall-ai/mcp-reverie
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js 18+
- **Auth**: API key / credential required

## 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.

## 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
- 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.

## Client config (JSON)
```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"}}}}
```

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