Neo4j MCP Server
An implementation for managing Neo4j graph database operations through the Model Context Protocol, enabling users to execute Cypher queries against their Neo4j database via AI assistants like Cursor and Claude Desktop.
Tobarrientos2
README
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-mcpserver
Installation
If you prefer to install the package globally:
npm install -g neo4j-mcpserver
Then run it:
NEO4J_CONNECTION=neo4j+s://your-instance.databases.neo4j.io,neo4j,your-password neo4j-mcpserver
Environment 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-password
Configuration ⚙️
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:
Important: Replace the credentials with your actual Neo4j database credentials.env=NEO4J_URI=your-neo4j-uri,NEO4J_USER=your-neo4j-user,NEO4J_PASSWORD=your-neo4j-password npx -y @neobarrientos/neo4j_mcpserver
Available Tools 🛠️
neo4j-query
Execute Cypher queries against your Neo4j database.
Example usage in Cursor:
MATCH (n) RETURN n LIMIT 5
Troubleshooting 🔧
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 start
License
ISC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.