MCP Neo4j Server logo

MCP Neo4j Server

by da-okazaki

An MCP server that provides integration between Neo4j graph database and Claude Desktop, enabling graph database operations through natural language interactions. It allows users to query, create, and manage data within a Neo4j database using natural language commands.

View on GitHub

Last updated: N/A

What is MCP Neo4j Server?

MCP Neo4j Server is a Microservice Communication Protocol (MCP) server designed to bridge the gap between Neo4j graph databases and the Claude Desktop environment. It enables users to interact with their Neo4j database using natural language, translating natural language requests into Cypher queries and other database operations.

How to use MCP Neo4j Server?

The server can be run directly using npx @alanse/mcp-neo4j-server or integrated into your Claude Desktop configuration by adding it to the mcpServers section. You'll need to configure the NEO4J_URI, NEO4J_USERNAME, and NEO4J_PASSWORD environment variables to connect to your Neo4j instance. Once configured, you can use natural language within Claude Desktop to query, create, and modify data in your Neo4j database.

Key features of MCP Neo4j Server

  • Execute Cypher queries via natural language

  • Create new nodes and relationships in the graph database

  • Supports various data types for node and relationship properties

  • Parameterization of queries to prevent injection attacks

Use cases of MCP Neo4j Server

  • Querying complex relationships within a graph database using natural language

  • Creating new entities and connections in a knowledge graph

  • Analyzing customer behavior and purchase patterns

  • Building recommendation systems based on graph data

FAQ from MCP Neo4j Server

What is the default Neo4j URI?

The default Neo4j URI is bolt://localhost:7687.

What are the required environment variables?

The required environment variables are NEO4J_URI, NEO4J_USERNAME, and NEO4J_PASSWORD.

How do I install the server for development?

Clone the repository, install dependencies using npm install, and build the project using npm run build.

Can I use this server with other MCP clients besides Claude Desktop?

While designed for Claude Desktop, the server adheres to the MCP protocol, potentially allowing integration with other compatible clients.

How do I handle complex queries with multiple relationships?

The server translates natural language into Cypher queries, allowing for complex operations. Ensure your natural language requests are clear and specific to achieve the desired results.