Skip to content
MCP server

MCP Neo4j Memory

Persistent knowledge-graph memory for AI assistants, stored in a Neo4j database

Runs locally

MCP Neo4j Memory 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, API, Self-hosted
Runs
Locally
What it can do
Can delete data (3 tools)
Access
Needs a secret key or token
Version
1.0.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add mcp-neo4j-memory --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' -- uvx mcp-neo4j-memory

Add --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": {
    "mcp-neo4j-memory": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-memory"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp-neo4j-memory": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-memory"
      ],
      "env": {
        "NEO4J_URI": "<NEO4J_URI>",
        "NEO4J_USERNAME": "<NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp-neo4j-memory": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-memory"
      ],
      "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.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "mcp-neo4j-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-neo4j-memory"
      ],
      "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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add mcp-neo4j-memory --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' -- uvx mcp-neo4j-memory

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.mcp-neo4j-memory]
command = "uvx"
args = ["mcp-neo4j-memory"]
env = { NEO4J_URI = "<NEO4J_URI>", NEO4J_USERNAME = "<NEO4J_USERNAME>", NEO4J_PASSWORD = "<NEO4J_PASSWORD>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-neo4j-memory": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-memory"
      ],
      "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": {
        "mcp-neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "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>' mcp-neo4j-memory uvx -- mcp-neo4j-memory

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "mcp-neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "mcp-neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "mcp-neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "mcp-neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "mcp-neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "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": {
        "mcp-neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "env": {
            "NEO4J_URI": "<NEO4J_URI>",
            "NEO4J_USERNAME": "<NEO4J_USERNAME>",
            "NEO4J_PASSWORD": "<NEO4J_PASSWORD>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "mcp-neo4j-memory": {
          "command": "uvx",
          "args": [
            "mcp-neo4j-memory"
          ],
          "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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • NEO4J_URINeo4j connection URIRequired
  • NEO4J_USERNAMENeo4j usernameRequired
  • NEO4J_PASSWORDNeo4j passwordRequired
  • NEO4J_DATABASENeo4j database name
  • NEO4J_NAMESPACETool namespace prefix

About MCP Neo4j Memory

The README describes this server as a way to give an AI client long-term memory backed by a Neo4j graph database. Entities carry a name, a type and a list of observations, and relationships between entities are stored as typed edges, so connections between people, places and facts persist across conversations and sessions.

The server exposes tools for reading the whole graph, searching or fetching nodes by name, creating and deleting entities, relations and observations. Queries run against a Neo4j instance you configure through connection URI, username, password and database settings. The README points to Neo4j Aura for a hosted database and also covers running Neo4j locally.

It suits developers and teams who already use Neo4j or want structured, queryable memory for an assistant such as Claude Desktop. Multi-tenant setups can add a namespace prefix to tool names, and the README documents stdio, SSE and HTTP transports with host and origin restrictions for HTTP deployments.

Tools this server provides (9)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 3 of 9 tools delete data and 3 change data.

From the server's own tool labels and tool names; not verified by us.

read_graphName suggests: reads
Read the entire knowledge graph.
search_nodesName suggests: reads
Search for nodes based on a query matching names, types or observations.
find_nodesName suggests: reads
Find specific nodes by name.
create_entitiesName suggests: changes
Create multiple new entities in the knowledge graph.
delete_entitiesName suggests: deletes
Delete multiple entities and their associated relations.
create_relationsName suggests: changes
Create multiple new relations between entities.
delete_relationsName suggests: deletes
Delete multiple relations from the graph.
add_observationsName suggests: changes
Add new observations to existing entities.
delete_observationsName suggests: deletes
Delete specific observations from entities.

What it does

Graph-based entity memory
Stores entities with types and observations and links them through typed relations in a Neo4j graph.
Search and retrieval tools
Offers tools to read the full graph, search by query text, or find nodes by name.
Create and delete operations
Provides tools to add or remove entities, relations and observations in bulk.
Namespaced tool names
Adds an optional prefix to tool names for running several instances in one environment.
Multiple transports
Supports stdio for local clients and SSE or streamable HTTP for remote deployments.
Host and origin protection
HTTP mode restricts allowed hosts and CORS origins, with localhost as the default.

Good for

  • Give an AI assistant persistent memory of people, projects and facts across sessions
  • Record and query relationships between entities such as colleagues, locations or products
  • Share one knowledge graph between several assistants or applications using namespaces
  • Run a remote memory service over HTTP for a team's microservices

Pricing

Open source

Free and MIT licensed; requires your own Neo4j database, which Neo4j Aura offers with a free option.

MCP Neo4j Memory FAQ

Which database does MCP Neo4j Memory need?

It connects to a Neo4j database, either a hosted Neo4j Aura instance or a Neo4j server run locally, configured through NEO4J_URI, username, password and database.

What license is MCP Neo4j Memory released under?

The README states that the server is licensed under the MIT License.

How do I install MCP Neo4j Memory?

The README gives pip install mcp-neo4j-memory and an example uvx configuration for Claude Desktop.

Can several instances share one Neo4j database?

The README describes a namespace option that prefixes tool names, intended for multi-tenant deployments.

Is MCP Neo4j Memory free?

Yes. MCP Neo4j Memory is open source, so you can use and self-host it for free.

How do I add MCP Neo4j Memory to Claude Code?

Run this command in your terminal: claude mcp add mcp-neo4j-memory --env NEO4J_URI='<NEO4J_URI>' --env NEO4J_USERNAME='<NEO4J_USERNAME>' --env NEO4J_PASSWORD='<NEO4J_PASSWORD>' -- uvx mcp-neo4j-memory

What are the best alternatives to MCP Neo4j Memory?

The closest alternatives to MCP Neo4j Memory are Memoria, Neuromcp, persistent-memory, Memory MCP and Memento.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers