Neo4j MCP Server for Claude

Inspect a Neo4j graph schema and run read-only Cypher queries in Claude using the official local server or your managed instance’s MCP endpoint.

How to set up the Neo4j MCP Server in Claude

  1. For the local server, install uv and set your Neo4j URI, database name, and read-only login through a local credential workflow. Add the configuration and restart Claude Desktop.
  2. For a managed instance with an MCP URL, substitute the actual endpoint in the Claude Code command and complete authentication for the right graph.
Claude Desktop · Claude Desktop configuration
{
  "mcpServers": {
    "neo4j-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "neo4j-mcp-server"
      ],
      "env": {
        "NEO4J_MCP_URI": "bolt://localhost:7687",
        "NEO4J_MCP_USERNAME": "YOUR_READ_ONLY_USERNAME",
        "NEO4J_MCP_PASSWORD": "YOUR_LOCAL_PASSWORD",
        "NEO4J_MCP_DATABASE": "neo4j",
        "NEO4J_MCP_READ_ONLY": "true"
      }
    }
  }
}
Download configuration
Claude Code · Add your managed Neo4j MCP URL
claude mcp add --transport http neo4j-mcp https://INSTANCE_ID.mcp-instances.neo4j.io

Start with the schema the graph actually uses

Neo4j MCP can surface node labels, property keys, and relationship types before Claude writes a Cypher query. Use that metadata to avoid guessing which label or relationship represents the entity you want. Limit access to the database you need.

Verify a two-hop graph result

Ask Claude to inspect a test dependency graph and list which projects depend on a package through one intermediate library. Ask for the Cypher query and the relationship direction. Run it against the same test database in Neo4j Query and compare the project IDs.

Choose a local launch or managed URL

The local setup starts through uvx or a publisher binary. Enable server-level read-only mode and use a database account with read access. For a managed connection, copy the exact MCP URL shown for your instance and follow its authentication flow.

Publisher setup and documentation

Browse MCP servers