How to connect Neo4j to Cursor
Want Neo4j inside Cursor? This guide covers MCP Neo4j Cypher, a server from neo4j-contrib that runs locally and starts through uvx. The listing marks NEO4J_URI, NEO4J_USERNAME and NEO4J_PASSWORD as required. The setup details come from the listing's install data and Cursor's documentation, last read on 2026-10-26, and end with a check in the Output panel.
Updated Oct 26, 2026 · Built from catalog data; how we rank and grade
Checked against Cursor's documentation on Oct 26, 2026. Commands and config blocks are generated from the same install data as each listing page.
Before you start
- Cursor installed and able to start.
- uv, which provides uvx (the server starts with uvx).
- NEO4J_URI (required): Neo4j connection URI.
- NEO4J_USERNAME (required): Neo4j username.
- NEO4J_PASSWORD (required): Neo4j password.
1. Check what you need
Cursor launches this server through
uvx, whichuvprovides, so run the version check before you edit any config.Check that it is installed uv --version- It needs NEO4J_URI, NEO4J_USERNAME and NEO4J_PASSWORD (next step).
2. Get NEO4J_URI, NEO4J_USERNAME and NEO4J_PASSWORD
Each of these values is required. Have them ready now so the config and the shell export can use them straight away.
- NEO4J_URI (required): Neo4j connection URI.
- NEO4J_USERNAME (required): Neo4j username.
- NEO4J_PASSWORD (required): Neo4j password.
3. Add MCP Neo4j Cypher to Cursor
A single JSON entry defines the server, and each value is referenced through the
${env:NAME}form so nothing sensitive is written into the file. The shell block supplies the real values.Add this to .cursor/mcp.json in the project, or to ~/.cursor/mcp.json for every project .cursor/mcp.json{ "mcpServers": { "mcp-neo4j-cypher": { "command": "uvx", "args": [ "mcp-neo4j-cypher@0.5.1" ], "env": { "NEO4J_URI": "${env:NEO4J_URI}", "NEO4J_USERNAME": "${env:NEO4J_USERNAME}", "NEO4J_PASSWORD": "${env:NEO4J_PASSWORD}" } } } }Set the variable in the shell you start the host from export NEO4J_URI="paste-your-value-here" export NEO4J_USERNAME="paste-your-value-here" export NEO4J_PASSWORD="paste-your-value-here"- Cursor expands ${env:NAME} from its own environment, so the variable has to be set where Cursor starts.
4. Restart or reload if it does not appear
If MCP Neo4j Cypher does not appear, read this step for the docs' guidance on restarts and on approving tool use.
- The docs do not say whether editing mcp.json needs a restart. They tell you to restart Cursor after updating files of a custom local server.
- Cursor asks for approval before an agent uses an MCP tool unless you allowlist it.
Check that it works
Open MCP Logs in the Output panel and look for connection errors, then check that the server lists its tools.
- Open the Output panel (Cmd+Shift+U on macOS), choose MCP Logs, and look for connection errors. A working server lists its tools under Available Tools; agent mcp list shows connection state from the terminal.
Troubleshooting
- A server fails or an npm-based server misbehaves after an update
- Check the MCP Logs channel in the Output panel. For npm-based servers the docs suggest removing the server, running npm cache clean --force, and adding it again. Source
Reported by other users
Issues in the server's repository (neo4j-contrib/mcp-neo4j) about installing or starting it, as of Oct 26, 2026. They are links, not fixes: open one to see whether it was resolved.
Security notes
- Publisher: neo4j-contrib, not listed as the vendor's own server; license MIT.
- It runs on your machine with your user account's permissions, so it can reach any file or network resource you can. Read its source before you give it access: https://github.com/neo4j-contrib/mcp-neo4j.
- Keep NEO4J_URI, NEO4J_USERNAME and NEO4J_PASSWORD in an environment variable; the config above refers to it by name, so the value is not written to the file.
- This listing has no security grade: Agent Market has not published security grades yet, so the choice is yours to make from the source and the permissions.
Servers and skills in this guide
Related pages: other Neo4j servers, a comparison of the options, and the general Cursor guide.
- 1MCP Neo4j Cypher
neo4j-contrib
A simple Neo4j MCP server that allows you to run Cypher queries against a Neo4j database.
★ 989↓ 12.3K/wkLast active Sep 8, 2026Local (stdio)Claude Code, Codex, VS Code, Cursor +2
BFreshness: B–Security: not graded yet
Related
- Install guideHow to add an MCP server to Cursor
- Install guideHow to connect Neo4j to Claude Code
- AlternativesAlternatives to MCP Neo4j Cypher
- Host guideMCP servers for Cursor
- Install guideHow to connect Figma to Cursor
- Install guideHow to connect GitHub to Cursor
- Install guideHow to connect Unity to Cursor
Sources
- MCP Configuration Reference · fetched Oct 26, 2026
- MCP CLI Reference · fetched Oct 26, 2026
Cite this page
How to connect Neo4j to Cursor. Agent Mart. https://agentmart.dev/guides/connect-neo4j-to-cursor (last updated 2026-10-26)