Neo4j MCP Server
Click on "Install 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 ServerFind 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
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The Cypher query to execute | |
| parameters | No | Query parameters (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden for behavioral disclosure. While 'Execute' implies a write operation, the description doesn't clarify whether this tool can perform read-only queries, mutations, or both. It lacks information about permissions required, transaction handling, result formats, or potential side effects like data modification or performance impacts.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that communicates the core functionality without unnecessary words. It's appropriately sized for a straightforward tool and is front-loaded with the essential information. Every word earns its place in this minimal description.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a database query execution tool with no annotations and no output schema, the description is insufficient. It doesn't explain what kind of results to expect, error handling, security considerations, or whether queries are read-only or can modify data. The combination of a powerful database tool with minimal description creates significant gaps in understanding.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds no additional parameter information beyond what's in the schema. This meets the baseline expectation when schema coverage is complete, but doesn't provide extra value like Cypher syntax examples or parameter format guidance.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Execute') and target resource ('Cypher query against the Neo4j database'), making the purpose immediately understandable. It lacks sibling differentiation, but since there are no sibling tools on this server, this doesn't reduce clarity. The description avoids tautology by specifying what type of query and database are involved.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or limitations. It simply states what the tool does without context about appropriate use cases. With no sibling tools, the need for differentiation is reduced, but general usage context is still missing.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
- First observed
neo4j-query
TDQS
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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…
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
A Model Context Protocol server for Wix AI tools
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.1,58431MIT
- AlicenseNot gradedqualityCmaintenanceProvides 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.15282MIT
- 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-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tobarrientos2/neo4j-mcpserver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server