mcp-neo4j-cypher
MCP server by neo4j-contrib Community
Runs Cypher queries against a Neo4j database through natural language. It is for developers and analysts who want an AI assistant to inspect a graph and read or write data in it.
Install mcp-neo4j-cypher
Built from the published package, never by AI.
claude mcp add mcp-neo4j-cypher -e NEO4J_URI=YOUR_NEO4J_URI -e NEO4J_USERNAME=YOUR_NEO4J_USERNAME -e NEO4J_PASSWORD=YOUR_NEO4J_PASSWORD -- uvx mcp-neo4j-cypherRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-neo4j-cypher": {
"env": {
"NEO4J_URI": "YOUR_NEO4J_URI",
"NEO4J_PASSWORD": "YOUR_NEO4J_PASSWORD",
"NEO4J_USERNAME": "YOUR_NEO4J_USERNAME"
},
"args": [
"mcp-neo4j-cypher"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-neo4j-cypher": {
"env": {
"NEO4J_URI": "YOUR_NEO4J_URI",
"NEO4J_PASSWORD": "YOUR_NEO4J_PASSWORD",
"NEO4J_USERNAME": "YOUR_NEO4J_USERNAME"
},
"args": [
"mcp-neo4j-cypher"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-neo4j-cypher": {
"env": {
"NEO4J_URI": "YOUR_NEO4J_URI",
"NEO4J_PASSWORD": "YOUR_NEO4J_PASSWORD",
"NEO4J_USERNAME": "YOUR_NEO4J_USERNAME"
},
"args": [
"mcp-neo4j-cypher"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-neo4j-cypher --env NEO4J_URI=YOUR_NEO4J_URI --env NEO4J_USERNAME=YOUR_NEO4J_USERNAME --env NEO4J_PASSWORD=YOUR_NEO4J_PASSWORD -- uvx mcp-neo4j-cypher{
"mcpServers": {
"mcp-neo4j-cypher": {
"env": {
"NEO4J_URI": "YOUR_NEO4J_URI",
"NEO4J_PASSWORD": "YOUR_NEO4J_PASSWORD",
"NEO4J_USERNAME": "YOUR_NEO4J_USERNAME"
},
"args": [
"mcp-neo4j-cypher"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-neo4j-cypher uvx mcp-neo4j-cypherGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-neo4j-cypher block.
About
The mcp-neo4j-cypher server is part of the Neo4j Labs MCP servers. It connects an MCP client, such as Claude Desktop, VS Code, Cursor, Windsurf or Gemini CLI, to a configured Neo4j database. Users can ask questions in natural language, and the server gets the database schema and runs generated read and write Cypher queries on that database.
Schema inspection requires the APOC plugin to be installed and enabled on the Neo4j instance. The server supports STDIO, SSE and HTTP transport modes. It is aimed at developers who work with Neo4j graphs. The source describes it as actively developed, but not supported by the Neo4j product team and without guarantees on backwards compatibility.
Written from the project's README and checked against it.
Tools it gives your assistant
Database schema inspectionGets the schema of the configured Neo4j database. Requires the APOC plugin.Read Cypher queriesRuns generated read Cypher queries on the configured database.Write Cypher queriesRuns generated write Cypher queries on the configured database.
What you need
- A Neo4j database
- APOC plugin installed and enabled on the Neo4j instance
- An MCP client such as Claude Desktop, VS Code, Cursor, Windsurf or Gemini CLI
| Setting | Needed | What it is |
|---|---|---|
NEO4J_Environment variable | Required | Neo4j connection URI |
NEO4J_Environment variable | Required | Neo4j username |
NEO4J_Environment variable, secret | Required | Neo4j password |
NEO4J_Environment variable | Optional | Neo4j database name |
NEO4J_Environment variable | Optional | Tool namespace prefix |
NEO4J_Environment variable | Optional | Maximum tokens for read query responses |
NEO4J_Environment variable | Optional | Timeout in seconds for read queries |
NEO4J_Environment variable | Optional | Allow only read-only queries (true/false) |
NEO4J_Environment variable | Optional | Schema sample size |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- What is in this graph?
- Run a read query that returns the top 10 products by total sales
- Write a Cypher query that creates a Person node named Ana
Good to know
- Not supported by the Neo4j product team.
- No SLAs or guarantees around backwards compatibility and deprecation.
- Schema inspection requires the APOC plugin.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mcp-neo4j-cypher
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
mcp-neo4j-cypher: common questions
Does mcp-neo4j-cypher need the APOC plugin?
The source says the APOC plugin must be installed and enabled on the Neo4j instance for schema inspection.
Can mcp-neo4j-cypher write data to Neo4j?
Yes. The source says it executes generated read and write Cypher queries on the configured database.
Is mcp-neo4j-cypher an official Neo4j product?
The source says it is part of the Neo4j Labs program and is not supported by the Neo4j product team. The official Neo4j MCP server is a separate project.
How do I install mcp-neo4j-cypher?
In Claude Code run claude mcp add mcp-neo4j-cypher -e NEO4J_URI=YOUR_NEO4J_URI -e NEO4J_USERNAME=YOUR_NEO4J_USERNAME -e NEO4J_PASSWORD=YOUR_NEO4J_PASSWORD -- uvx mcp-neo4j-cypher. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp-neo4j-cypher the official server?
mcp-neo4j-cypher is a community project by neo4j-contrib, not verified by a company domain.
Is mcp-neo4j-cypher free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mcp-neo4j-cypher safe to use?
It scores 82 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mcp-neo4j-cypher?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does mcp-neo4j-cypher work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
