Neo4j

Neo4j

A community built server that interacts with Neo4j Graph Database.

56
Stars
13
Forks
0
Releases

Overview

This MCP server enables Claude Desktop to interact with a Neo4j graph database by exposing a set of tools that execute Cypher queries, create nodes, and create relationships. By default it connects to the 'neo4j' database, with Neo4j Enterprise support to target a specific database using the NEO4J_DATABASE environment variable. Configuration requires NEO4J_URI (default bolt://localhost:7687), NEO4J_USERNAME (default neo4j), NEO4J_PASSWORD (required), and optional NEO4J_DATABASE (default neo4j). It exposes tools to execute Cypher queries, create nodes, and create relationships, with parameterized inputs to prevent injection and structured results. The 'execute_query' tool handles all Cypher types (READ/CREATE/UPDATE/DELETE); 'create_node' creates a node with labels and properties and returns the internal ID; 'create_relationship' creates a relationship between two existing nodes with a specified type, direction, and properties, requiring node IDs. Quick Start shows npx usage and Claude Desktop JSON config. For development, clone, install, and build; optional Smithery installation. Usage examples demonstrate connecting to a specific database, querying data, creating nodes, and forming relationships through natural language.

Details

Owner
da-okazaki
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Neo4j Enterprise Support

Supports connecting to specific databases in Neo4j Enterprise Edition; defaults to 'neo4j' and allows overriding via NEO4J_DATABASE.

execute_query tool

Executes Cypher queries on the Neo4j database; supports all query types (READ, CREATE, UPDATE, DELETE); returns structured results; supports parameterized inputs to prevent injection.

create_node tool

Creates a new node with labels and properties; returns the created node with its internal ID; supports all Neo4j data types for properties.

create_relationship tool

Creates a relationship between two existing nodes; specifies relationship type and direction; accepts properties; requires source and target node IDs.

Claude Desktop integration

Enables graph database operations to be performed via natural language interactions in Claude Desktop.

Audience

DevelopersIntegrate Neo4j with Claude Desktop to query and mutate graphs using natural language.
Data EngineersBuild analytics by issuing natural language Cypher queries through the MCP server.
Neo4j AdminsManage multiple databases and graph schemas via natural language operations.

Tags

Neo4jGraph DatabaseClaude DesktopMCP ServerNeo4j EnterpriseCypherexecute_querycreate_nodecreate_relationship