Neo4j MCP Server

Neo4j graph database server (schema + read/write-cypher) and separate graph database backed memory

Local serverstdio

What is the Neo4j MCP server?

If you want an AI assistant working directly with Neo4j, the neo4j mcp server is the bridge. Neo4j graph database server (schema + read/write-cypher) and separate graph database backed memory.

What Neo4j does

These MCP servers are a part of the Neo4j Labs program. They are developed and maintained by the Neo4j Field GenAI team and welcome contributions from the larger developer community. These servers are frequently updated with new and experimental features, but are not supported by the Neo4j product team.

Model Context Protocol (MCP) is a standardized protocol for managing context between large language models (LLMs) and external systems.

Installing the neo4j mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Configuration

The server reads 4 environment variables: NEO4J_TRANSPORT, NEO4J_MCP_SERVER_HOST, NEO4J_MCP_SERVER_PORT, NEO4J_MCP_SERVER_PATH. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Neo4j sits in that group. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the neo4j mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Configuration

VariableDescriptionRequired
NEO4J_TRANSPORTConfiguration value read at startup.Optional
NEO4J_MCP_SERVER_HOSTEndpoint or connection string the server talks to.Optional
NEO4J_MCP_SERVER_PORTConfiguration value read at startup.Optional
NEO4J_MCP_SERVER_PATHFilesystem location the server is allowed to use.Optional

Frequently asked questions

It connects Neo4j to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Neo4j directly.