MCP Neo4j Knowledge Graph Memory Server logo

MCP Neo4j Knowledge Graph Memory Server

by JovanHsu

MCP Neo4j Knowledge Graph Memory Server is a knowledge graph memory server based on the Neo4j graph database, used to store and retrieve information from AI assistant-user interactions. It's an enhanced version of the official Knowledge Graph Memory Server, using Neo4j as the backend storage engine.

View on GitHub

Last updated: N/A

What is MCP Neo4j Knowledge Graph Memory Server?

MCP Neo4j Knowledge Graph Memory Server is a server that utilizes Neo4j as a backend to store and retrieve information, specifically designed for AI assistants to remember and utilize user interactions. It enhances the original Memory Server by leveraging Neo4j's graph database capabilities.

How to use MCP Neo4j Knowledge Graph Memory Server?

The server can be installed via npm or Docker. Configuration is done through environment variables. It can be integrated with Claude by configuring the claude_desktop_config.json file or using the MCP Inspector. The server communicates using the MCP protocol, allowing for the creation of entities, relationships, and observations within the knowledge graph.

Key features of MCP Neo4j Knowledge Graph Memory Server

  • High-performance graph database storage based on Neo4j

  • Powerful fuzzy search and exact matching capabilities

  • Complete CRUD operations for entities, relationships, and observations

  • Fully compatible with the MCP protocol

  • Support for complex graph queries and traversals

  • Docker support for easy deployment

Use cases of MCP Neo4j Knowledge Graph Memory Server

  • Storing user profiles and preferences for personalized AI interactions

  • Building knowledge graphs of user interactions to improve AI understanding

  • Remembering past conversations to provide context-aware responses

  • Connecting entities and relationships to infer new information about users

FAQ from MCP Neo4j Knowledge Graph Memory Server

What are the prerequisites for installing the server?

Node.js >= 22.0.0 and a Neo4j database (local or remote).

How do I configure the Neo4j connection?

Using the environment variables NEO4J_URI, NEO4J_USER, NEO4J_PASSWORD, and NEO4J_DATABASE.

How do I integrate this server with Claude?

By configuring the claude_desktop_config.json file or using the MCP Inspector.

Why use Neo4j instead of other databases?

Neo4j is a native graph database optimized for storing and querying relationships between data, making it ideal for knowledge graphs.

How does the fuzzy search work?

It combines Neo4j's full-text search with Fuse.js for flexible entity searching, providing both precise and partial matches ranked by relevance.