Neo4j Knowledge Graph Memory MCP Server

This Neo4j MCP servers enable AI models to interact with Neo4j graph databases, providing capabilities for graph-based operations, relationship queries, and complex data modeling.

{
  "mcpServers": {
    "redis": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/redis",
        "redis://host.docker.internal:6379"
      ]
    }
  }
}

Overview

A Model Context Protocol (MCP) server implementation that provides persistent memory capabilities through Neo4j graph database integration. The server maintains complex relationships between entities as memory nodes and enables long-term retention of knowledge that can be queried and analyzed across multiple conversations or sessions.

The MCP server leverages Neo4j's graph database capabilities to create an interconnected knowledge base that serves as an external memory system. Through Cypher queries, it allows exploration and retrieval of stored information, relationship analysis between different data points, and generation of insights from the accumulated knowledge. This memory can be further enhanced with Claude's capabilities. 1

🕸️ Graph Schema

  • Memory: A node representing an entity with a name, type, and observations
  • Relationship: A relationship between two entities with a type

Key Features:

  • Store and traverse complex relationships between contexts
  • Create hierarchical knowledge structures
  • Query and analyze connected data points
  • Maintain persistent memory across sessions
  • Leverage graph algorithms for insights
  • Scale with Neo4j Aura cloud hosting

Tools

The Neo4j MCP Server provides the following tools for interacting with Neo4j databases:

🔎 Query Tools

♟️ Entity Management Tools

🔗 Relation Management Tools

📝 Observation Management Tools

Sources

Footnotes

  1. https://github.com/neo4j-contrib/mcp-neo4j/tree/main/servers/mcp-neo4j-memory