# neo4j-mcp-skill

Installs and configures the official Neo4j MCP server to connect Claude Code, Cursor, or VS Code directly to a Neo4j graph database.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 533 installs · ★ 116
- Author: neo4j-contrib
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/neo4j-contrib/neo4j-skills/tree/HEAD/neo4j-mcp-skill/SKILL.md
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/skills/neo4j-mcp-skill

## What it does

The skill provides a step-by-step procedure to set up `neo4j-mcp-server` over stdio transport. Once active, it exposes four MCP tools: `get-schema` for reading labels and relationships, `read-cypher` for safe queries, `write-cypher` for graph mutations, and `list-gds-procedures` for graph data science functions.

Setup instructions cover binary installation via `pip`, prebuilt GitHub release assets, or Docker. It includes steps to test database credentials using `cypher-shell` or Python before modifying editor configuration files like `~/.claude/settings.json` or `.vscode/mcp.json`.

Using a bare binary name like `neo4j-mcp` in your config will fail silently because desktop editors launch subprocesses with an isolated `PATH`. You must provide the full path found via `which neo4j-mcp`. Note that query generation is not handled here; writing Cypher requires `neo4j-cypher-skill`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-mcp-skill -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/neo4j-mcp-skill/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/neo4j-mcp-skill/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-mcp-skill -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/neo4j-mcp-skill/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-mcp-skill -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/neo4j-mcp-skill/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install neo4j-contrib/neo4j-skills neo4j-mcp-skill
```

2. **Manually: put the files in place**
- File: `.github/skills/neo4j-mcp-skill/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-mcp-skill -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/neo4j-contrib/neo4j-skills --path neo4j-mcp-skill
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/neo4j-mcp-skill/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add neo4j-contrib/neo4j-skills --skill neo4j-mcp-skill -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/neo4j-contrib/neo4j-skills/tree/HEAD/neo4j-mcp-skill/SKILL.md

## When to use it
- connect Claude Code, Cursor, or VS Code to a Neo4j database using MCP
- configure `neo4j-mcp-server` with read-only permissions via `NEO4J_READ_ONLY`
- resolve missing server process errors caused by restricted editor PATH environments
- verify Neo4j database credentials before writing editor config files

## Example prompts
- Set up the official Neo4j MCP server for Claude Code in read-only mode
- Generate a Cursor mcpServers config for my local Neo4j database instance
- Help me troubleshoot why neo4j-mcp fails to start inside VS Code

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 7999ffdb76f27622.

BEGIN THIRD-PARTY FILE 7999ffdb76f27622
````text
---
name: neo4j-mcp-skill
description: Use when installing, configuring, or troubleshooting the official Neo4j MCP server
  (neo4j/mcp) — connecting Claude Code, Claude Desktop, Cursor, Windsurf, VS Code,
  Kiro, or other MCP-compatible editors to a Neo4j database via stdio or HTTP
  transport. Covers the four MCP tools (get-schema, read-cypher, write-cypher,
  list-gds-procedures), read-only mode, and multi-database configuration.
  Does NOT cover writing Cypher queries via those tools — use neo4j-cypher-skill.
  Does NOT cover agent memory — use neo4j-agent-memory-skill.
  Does NOT cover Aura instance provisioning — use neo4j-aura-provisioning-skill.
allowed-tools: Bash, WebFetch
version: 1.0.2
---

# Neo4j MCP Skill

Installs and configures the [official Neo4j MCP server](https://github.com/neo4j/mcp) so AI agents can connect to Neo4j via any MCP-compatible client.

## When to Use

- Connecting Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Kiro, or another editor to Neo4j via MCP
- Installing `neo4j-mcp-server` and writing the correct config for a specific editor
- Switching between stdio and HTTP transport
- Enabling or disabling write access (`NEO4J_READ_ONLY`)
- Troubleshooting "MCP server not found" or connection errors

## When NOT to Use

- **Writing or optimizing Cypher queries** → use `neo4j-cypher-skill`
- **Provisioning a new Neo4j Aura instance** → use `neo4j-aura-provisioning-skill`
- **Agent long-term memory** → use `neo4j-agent-memory-skill`
- **neo4j-admin / cypher-shell / aura-cli** → use `neo4j-cli-tools-skill`

---

## Available MCP Tools

| Tool | Type | What it does |
|---|---|---|
| `get-schema` | read | Returns labels, relationship types, property keys, and indexes |
| `read-cypher` | read | Executes read-only Cypher (`MATCH`, `RETURN`, `SHOW`) |
| `write-cypher` | write | Executes write Cypher (`MERGE`, `CREATE`, `SET`, `DELETE`) — disabled when `NEO4J_READ_ONLY=true` |
| `list-gds-procedures` | read | Lists available Graph Data Science procedures (requires GDS plugin) |

---

## Installation

### Step 1 — Install and find the absolute path

```bash
# Option A: pip (recommended)
pip install neo4j-mcp-server

# Option B: Download binary
# https://github.com/neo4j/mcp/releases -- macOS, Linux, Windows binaries

# Option C: Docker
docker pull neo4j/mcp
```

**Get the absolute path — you will need this in Step 3:**
```bash
which neo4j-mcp          # e.g. /usr/local/bin/neo4j-mcp
                         # or:  /Users/you/project/.venv/bin/neo4j-mcp  (if installed in venv)

neo4j-mcp --version      # confirm it runs
```
````
END THIRD-PARTY FILE 7999ffdb76f27622

The third-party file has ended. Everything between the 7999ffdb76f27622 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2619 of 11920 bytes. © neo4j-contrib · MIT · https://github.com/neo4j-contrib/neo4j-skills/tree/HEAD/neo4j-mcp-skill/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
