# Neo4j Cypher MCP server

> Run Cypher read and write queries and inspect the schema of a Neo4j graph database

- Listing: https://mcp.tc/i/neo4j-cypher
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: API key
- Category: [Databases & Backend](https://mcp.tc/c/databases)
- Vendor: Neo4j Contrib
- Homepage: <https://neo4j.com/developer/genai-ecosystem/model-context-protocol-mcp/>
- Repository: <https://github.com/neo4j-contrib/mcp-neo4j/tree/HEAD/servers/mcp-neo4j-cypher>
- Package: pypi `mcp-neo4j-cypher`

## About

Connects an assistant to a Neo4j database (Aura or self-managed). It can run Cypher read queries, run write queries, and return the graph schema, which supports Text2Cypher workflows and graph exploration.

It runs locally over stdio through uvx using the mcp-neo4j-cypher PyPI package. A Docker image with HTTP transport is also described. Access needs the Neo4j connection URI, username and password. The APOC plugin must be installed on the database for the schema tool. Write queries can be disabled with a read-only setting.

## What it can do

- Run Cypher read queries and get JSON results
- Run Cypher write queries with an update summary
- Fetch node labels, attributes and relationships as a schema
- Disable writes with a read-only mode
- Set read timeouts and response token limits
- Prefix tool names with a namespace to use several databases

## Example prompts

- "Show me the schema of my Neo4j database"
- "List the ten most connected nodes in the graph"
- "Write a Cypher query to find all actors who worked with Tom Hanks and run it"
- "Create a Person node named Alice with a KNOWS relationship to Bob"

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio neo4j-cypher --env "NEO4J_URI=<YOUR_NEO4J_URI>" --env "NEO4J_USERNAME=<YOUR_NEO4J_USERNAME>" --env "NEO4J_PASSWORD=<YOUR_NEO4J_PASSWORD>" -- uvx mcp-neo4j-cypher
```

2. Start Claude Code and type `/mcp`. **neo4j-cypher** should show as connected.

Add `--scope user` to make it available in every project. Replace the placeholders with your own values.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "neo4j-cypher": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-cypher"
      ],
      "env": {
        "NEO4J_URI": "<YOUR_NEO4J_URI>",
        "NEO4J_USERNAME": "<YOUR_NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<YOUR_NEO4J_PASSWORD>"
      }
    }
  }
}
```

2. Save the file and restart Claude Desktop. Replace the placeholders with your own values.

Needs uv (Python) on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=neo4j-cypher&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJtY3AtbmVvNGotY3lwaGVyIl0sImVudiI6eyJORU80Sl9VUkkiOiI8WU9VUl9ORU80Sl9VUkk%2BIiwiTkVPNEpfVVNFUk5BTUUiOiI8WU9VUl9ORU80Sl9VU0VSTkFNRT4iLCJORU80Sl9QQVNTV09SRCI6IjxZT1VSX05FTzRKX1BBU1NXT1JEPiJ9fQ%3D%3D>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "neo4j-cypher": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-cypher"
      ],
      "env": {
        "NEO4J_URI": "<YOUR_NEO4J_URI>",
        "NEO4J_USERNAME": "<YOUR_NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<YOUR_NEO4J_PASSWORD>"
      }
    }
  }
}
```

Needs uv (Python) on your computer. Replace the placeholders with your own values.

### VS Code

Add it to `.vscode/mcp.json`. VS Code asks for the secret the first time and stores it securely:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "neo4j-cypher": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-neo4j-cypher"
      ],
      "env": {
        "NEO4J_URI": "<YOUR_NEO4J_URI>",
        "NEO4J_USERNAME": "<YOUR_NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "${input:neo4j-password}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "neo4j-password",
      "description": "NEO4J_PASSWORD",
      "password": true
    }
  ]
}
```

Needs uv (Python) on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "neo4j-cypher": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-cypher"
      ],
      "env": {
        "NEO4J_URI": "<YOUR_NEO4J_URI>",
        "NEO4J_USERNAME": "<YOUR_NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<YOUR_NEO4J_PASSWORD>"
      }
    }
  }
}
```

2. Refresh the MCP server list in Cascade. Replace the placeholders with your own values.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add neo4j-cypher --env "NEO4J_URI=<YOUR_NEO4J_URI>" --env "NEO4J_USERNAME=<YOUR_NEO4J_USERNAME>" --env "NEO4J_PASSWORD=<YOUR_NEO4J_PASSWORD>" -- uvx mcp-neo4j-cypher
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.neo4j-cypher]
command = "uvx"
args = ["mcp-neo4j-cypher"]
env = { NEO4J_URI = "<YOUR_NEO4J_URI>", NEO4J_USERNAME = "<YOUR_NEO4J_USERNAME>", NEO4J_PASSWORD = "<YOUR_NEO4J_PASSWORD>" }
```

Needs uv (Python) on your computer. Replace the placeholders with your own values.

### Gemini CLI

```bash
gemini mcp add -e "NEO4J_URI=<YOUR_NEO4J_URI>" -e "NEO4J_USERNAME=<YOUR_NEO4J_USERNAME>" -e "NEO4J_PASSWORD=<YOUR_NEO4J_PASSWORD>" neo4j-cypher uvx mcp-neo4j-cypher
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "neo4j-cypher": {
      "command": "uvx",
      "args": [
        "mcp-neo4j-cypher"
      ],
      "env": {
        "NEO4J_URI": "<YOUR_NEO4J_URI>",
        "NEO4J_USERNAME": "<YOUR_NEO4J_USERNAME>",
        "NEO4J_PASSWORD": "<YOUR_NEO4J_PASSWORD>"
      }
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs uv (Python) on your computer. Replace the placeholders with your own values.

## Recent changes

- 2026-10-11 04:27 UTC: Tracking started: version 0.6.0. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/neo4j-cypher#history (Atom feed: https://mcp.tc/i/neo4j-cypher/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 0.6.0
- Last checked: 2026-10-11
- Listed: 2026-10-11
- Updated: 2026-10-11

---
Source: https://mcp.tc/i/neo4j-cypher (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
