MCP Server

Neo4j MCP server for integrating Neo4j graph database with Claude Desktop through natural language interactions

Local serverstdio

What is the MCP MCP server?

Most database access work still happens through a UI a human drives. MCP MCP server moves it into the conversation instead. Neo4j MCP server for integrating Neo4j graph database with Claude Desktop through natural language interactions.

The tools it exposes

The server publishes 4 tools. What each one is for:

  • execute_query — Execute Cypher queries on the Neo4j database
  • create_node — Create a new node in the graph database
  • create_relationship — Create a relationship between two existing nodes
  • Tools — The Tools tool exposed by this server

Getting it running

Installation goes through your MCP client rather than a global install: point it at @alanse/mcp-neo4j on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

Configuration is passed through the environment: NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD, NEO4J_DATABASE. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

How it compares

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP's toolset — execute_query, create_node, create_relationship and 1 more — is a fair guide to whether it matches your workflow. It is maintained by alanse-daichi; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
execute_queryExecute Cypher queries on the Neo4j database
create_nodeCreate a new node in the graph database
create_relationshipCreate a relationship between two existing nodes
ToolsThe Tools tool exposed by this server.

How to install the MCP MCP server

{
  "mcpServers": {
    "neo4j-1": {
      "command": "npx",
      "args": ["-y", "@alanse/mcp-neo4j"],
      "env": {
        "NEO4J_URI": "your-value",
        "NEO4J_USERNAME": "your-value",
        "NEO4J_PASSWORD": "your-value",
        "NEO4J_DATABASE": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
NEO4J_URIConfiguration value read at startup.Optional
NEO4J_USERNAMEConfiguration value read at startup.Optional
NEO4J_PASSWORDConfiguration value read at startup.Optional
NEO4J_DATABASEConfiguration value read at startup.Optional

Example prompts to try

  • Use MCP to execute query.
  • Use MCP to create node.
  • Use MCP to create relationship.

Frequently asked questions

It connects MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (execute_query, create_node, create_relationship, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP directly.