Execute Cypher queries on the Neo4j database with support for all types of operations (READ, CREATE, UPDATE, DELETE)
Create a new node in the graph database with specified labels and properties
Create a relationship between two existing nodes with defined type, direction, and properties
The Neo4j Graph Database MCP provides a seamless integration between Neo4j graph databases and AI assistants. It enables users to perform complex graph database operations through natural language interactions, eliminating the need to write Cypher queries manually. With this MCP, you can create nodes and relationships, execute custom queries, and retrieve data from your Neo4j database using conversational language. This makes graph database operations more accessible to users without specialized knowledge of graph query languages.
The Neo4j Graph Database MCP allows you to interact with Neo4j graph databases using natural language. This integration enables you to create, query, and manipulate graph data without writing Cypher queries directly.
You can run this MCP server directly using npx:
npx @alanse/mcp-neo4j-server
To install the Neo4j MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @alanse/mcp-neo4j-server --client claude
To add this MCP to your Claude Desktop configuration manually, add the following to your configuration file:
{
"mcpServers": {
"neo4j": {
"command": "npx",
"args": ["@alanse/mcp-neo4j-server"],
"env": {
"NEO4J_URI": "bolt://localhost:7687",
"NEO4J_USERNAME": "neo4j",
"NEO4J_PASSWORD": "your-password"
}
}
}
}
The server requires the following environment variables:
NEO4J_URI
: Neo4j database URI (default: bolt://localhost:7687)NEO4J_USERNAME
: Neo4j username (default: neo4j)NEO4J_PASSWORD
: Neo4j password (required)Make sure to replace the placeholder values with your actual Neo4j database credentials.
Here are examples of how you can interact with your Neo4j database using natural language:
You can ask questions like:
You can give instructions like:
You can request relationships like:
You can perform more complex operations with natural language:
If you want to contribute or modify the MCP:
git clone https://github.com/da-okazaki/mcp-neo4j-server.git
cd mcp-neo4j-server
npm install
npm run build
npm test