mcp-neo4j-server

This repository provides an MCP server that integrates Neo4j graph databases with Claude Desktop, enabling natural language interaction for graph database operations. It offers tools for executing queries and managing

38
4

MCP Neo4j Server

An MCP server that integrates Neo4j graph database with Claude Desktop, enabling natural language interaction for graph database operations. It allows users to interact with Neo4j using natural language through Claude Desktop.

Quick Start

Run the server directly using npx @alanse/mcp-neo4j or integrate it into your Claude Desktop configuration by specifying the command, arguments, and environment variables for Neo4j connection details (URI, username, password).

Features

Provides tools for interacting with a Neo4j database:

  • execute_query: Executes Cypher queries, supporting all types (READ, CREATE, UPDATE, DELETE) with structured results and parameterization.
  • create_node: Creates new nodes with labels and properties, supporting all Neo4j data types.
  • create_relationship: Creates relationships between nodes, defining type, direction, and properties, requiring source and target node IDs.

Installation

Install via Smithery using npx -y @smithery/cli install @alanse/mcp-neo4j-server --client claude or clone the repository, install dependencies with npm install, and build with npm run build.

Configuration

Requires environment variables: NEO4J_URI, NEO4J_USERNAME, and NEO4J_PASSWORD.

Usage Examples

Demonstrates querying, creating data, and creating relationships using natural language, with corresponding Cypher queries executed internally.

Testing

Run tests with npm test.

License

MIT

Repository

DA
da-okazaki

da-okazaki/mcp-neo4j-server

Created

January 5, 2025

Updated

March 28, 2025

Language

TypeScript

Category

Database