Neo4j
MCP server by neo4j Community
The official Neo4j MCP server
Install Neo4j
Built from the published package, never by AI.
claude mcp add neo4j -e NEO4J_MCP_URI=YOUR_NEO4J_MCP_URI -e NEO4J_MCP_USERNAME=YOUR_NEO4J_MCP_USERNAME -e NEO4J_MCP_PASSWORD=YOUR_NEO4J_MCP_PASSWORD -e NEO4J_MCP_DATABASE=YOUR_NEO4J_MCP_DATABASE -- uvx neo4j-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"neo4j": {
"command": "uvx",
"args": [
"neo4j-mcp-server"
],
"env": {
"NEO4J_MCP_URI": "YOUR_NEO4J_MCP_URI",
"NEO4J_MCP_USERNAME": "YOUR_NEO4J_MCP_USERNAME",
"NEO4J_MCP_PASSWORD": "YOUR_NEO4J_MCP_PASSWORD",
"NEO4J_MCP_DATABASE": "YOUR_NEO4J_MCP_DATABASE"
}
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"neo4j": {
"command": "uvx",
"args": [
"neo4j-mcp-server"
],
"env": {
"NEO4J_MCP_URI": "YOUR_NEO4J_MCP_URI",
"NEO4J_MCP_USERNAME": "YOUR_NEO4J_MCP_USERNAME",
"NEO4J_MCP_PASSWORD": "YOUR_NEO4J_MCP_PASSWORD",
"NEO4J_MCP_DATABASE": "YOUR_NEO4J_MCP_DATABASE"
}
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"neo4j": {
"command": "uvx",
"args": [
"neo4j-mcp-server"
],
"env": {
"NEO4J_MCP_URI": "YOUR_NEO4J_MCP_URI",
"NEO4J_MCP_USERNAME": "YOUR_NEO4J_MCP_USERNAME",
"NEO4J_MCP_PASSWORD": "YOUR_NEO4J_MCP_PASSWORD",
"NEO4J_MCP_DATABASE": "YOUR_NEO4J_MCP_DATABASE"
}
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add neo4j --env NEO4J_MCP_URI=YOUR_NEO4J_MCP_URI --env NEO4J_MCP_USERNAME=YOUR_NEO4J_MCP_USERNAME --env NEO4J_MCP_PASSWORD=YOUR_NEO4J_MCP_PASSWORD --env NEO4J_MCP_DATABASE=YOUR_NEO4J_MCP_DATABASE -- uvx neo4j-mcp-server{
"mcpServers": {
"neo4j": {
"command": "uvx",
"args": [
"neo4j-mcp-server"
],
"env": {
"NEO4J_MCP_URI": "YOUR_NEO4J_MCP_URI",
"NEO4J_MCP_USERNAME": "YOUR_NEO4J_MCP_USERNAME",
"NEO4J_MCP_PASSWORD": "YOUR_NEO4J_MCP_PASSWORD",
"NEO4J_MCP_DATABASE": "YOUR_NEO4J_MCP_DATABASE"
}
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add neo4j uvx neo4j-mcp-serverGemini 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 neo4j block.
What you need
| Setting | Needed | What it is |
|---|---|---|
NEO4J_Environment variable | Required | Bolt/neo4j URI, e.g. bolt://localhost:7687 |
NEO4J_Environment variable | Required | Neo4j username |
NEO4J_Environment variable, secret | Required | Neo4j password |
NEO4J_Environment variable | Required | Neo4j database name |
NEO4J_Environment variable | Optional | Set to true to disable write-cypher |
NEO4J_Environment variable | Optional | Comma-separated list of tools to enable (default: all). Available: read-cypher, write-cypher, list-gds-procedures, get-schema |
NEO4J_Environment variable | Optional | Log level, e.g. info, debug, warning (default: info) |
NEO4J_Environment variable | Optional | Nodes sampled per label when inferring the schema (default: 100) |
NEO4J_Environment variable | Optional | Maximum duration for a single request as a Go duration string, e.g. 3m (default: 3m, max: 30m) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Alternatives to Neo4j
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
Neo4j: common questions
How do I install Neo4j?
In Claude Code run claude mcp add neo4j -e NEO4J_MCP_URI=YOUR_NEO4J_MCP_URI -e NEO4J_MCP_USERNAME=YOUR_NEO4J_MCP_USERNAME -e NEO4J_MCP_PASSWORD=YOUR_NEO4J_MCP_PASSWORD -e NEO4J_MCP_DATABASE=YOUR_NEO4J_MCP_DATABASE -- uvx neo4j-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Neo4j the official server?
Neo4j is a community project by neo4j, not verified by a company domain.
Is Neo4j free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Neo4j safe to use?
It scores 74 of 100. Grades: maintenance A, licence F, quality C. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to Neo4j?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does Neo4j 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.
