Neo4j MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Neo4j MCP Server Find all users who purchased a product in the last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Neo4j MCP Server
A Neo4j MCP server implementation for managing graph database operations through the Model Context Protocol.
🔌 Compatible with both Cursor and Claude Desktop!
Quick Start
You can run the server directly using npx:
# Using a single connection string
NEO4J_CONNECTION=neo4j+s://your-instance.databases.neo4j.io,neo4j,your-password npx neo4j-mcpserver
# Or using separate environment variables
NEO4J_URI=neo4j+s://your-instance.databases.neo4j.io NEO4J_USER=neo4j NEO4J_PASSWORD=your-password npx neo4j-mcpserverRelated MCP server: M.I.M.I.R - Multi-agent Intelligent Memory & Insight Repository
Installation
If you prefer to install the package globally:
npm install -g neo4j-mcpserverThen run it:
NEO4J_CONNECTION=neo4j+s://your-instance.databases.neo4j.io,neo4j,your-password neo4j-mcpserverEnvironment Variables
You can provide the Neo4j connection details in two ways:
Using a single connection string:
NEO4J_CONNECTION=<uri>,<user>,<password>Using separate environment variables:
NEO4J_URI=<your-uri> NEO4J_USER=<your-user> NEO4J_PASSWORD=<your-password>
You can also use a .env file in your project root:
NEO4J_URI=neo4j+s://your-instance.databases.neo4j.io
NEO4J_USER=neo4j
NEO4J_PASSWORD=your-passwordConfiguration ⚙️
Configuring Cursor 🖥️
To set up the Neo4j MCP server in Cursor:
Open Cursor Settings
Navigate to Features > MCP Servers
Click on the "+ Add New MCP Server" button
Fill out the following information:
Name: Enter a nickname for the server (e.g., "neo4j-mcp")
Type: Select "command" as the type
Command: Enter the command to run the server:
env=NEO4J_URI=your-neo4j-uri,NEO4J_USER=your-neo4j-user,NEO4J_PASSWORD=your-neo4j-password npx -y @neobarrientos/neo4j_mcpserverImportant: Replace the credentials with your actual Neo4j database credentials.
Available Tools 🛠️
neo4j-query
Execute Cypher queries against your Neo4j database.
Example usage in Cursor:
MATCH (n) RETURN n LIMIT 5Troubleshooting 🔧
If you encounter issues:
Verify Neo4j Credentials
Check that your Neo4j URI, username, and password are correct
Ensure your Neo4j database is accessible
Path Issues
Ensure there are no spaces in the installation path
Use forward slashes (/) in paths
Tool Detection Issues
Try restarting Cursor
Verify the server is running (check Cursor's MCP server list)
Check that environment variables are properly set
Development 👩💻
To run locally:
git clone <repository-url>
cd neo4j-mcpserver
npm install
npm run build
npm startLicense
ISC
Available Tools
1 toolneo4j-queryC
Execute a Cypher query against the Neo4j database
Inputs: query (required), parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool has a single, clear purpose: executing Cypher queries against a Neo4j database.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'neo4j-query' follows a clear and descriptive pattern, though no pattern can be established or broken with a single tool.
A single tool is too few for a database server's apparent scope, which typically requires operations like creating, updating, deleting, and querying data. This minimal set limits functionality and forces all operations through a generic query interface, which is insufficient for structured interactions.
The tool surface is severely incomplete for a Neo4j database server. While 'neo4j-query' allows executing arbitrary Cypher queries, it lacks dedicated tools for common operations like creating nodes, updating relationships, or managing transactions, leaving significant gaps that agents must work around with raw queries.
Maintenance
Related MCP Connectors
Intelligent context infrastructure for AI teams: knowledge graph, sessions, tasks, documents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A private graph database you query in plain English or Cypher. Hosted, nothing to install.
Draw, shape, and edit Neo4j graph data models in toro4n with your AI assistant.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with persistent graph-based memory capabilities using Neo4j, enabling semantic search, relationship tracking, and knowledge organization across multiple project contexts.53 npm31MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with persistent graph database memory using Neo4j, enabling task management, relationship understanding, semantic search with embeddings, file indexing, and multi-agent coordination through the Model Context Protocol.26 npm288MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Neo4j graph databases through natural language, supporting Cypher queries, schema management, data manipulation, and graph algorithms.MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Neo4j databases from the Cursor IDE by executing Cypher queries, managing connections, and retrieving database information.3-