From neo4j-skills
Guides Neo4j CLI tools for database admin (neo4j-admin backups/restores/imports), query execution/scripting (cypher-shell), cloud provisioning (aura-cli), and AI agent setup (neo4j-mcp/cli).
npx claudepluginhub neo4j-contrib/neo4j-skillsThis skill uses the workspace's default tool permissions.
This skill provides comprehensive guidance on Neo4j command-line tools for database administration, query execution, cloud management, and AI agent integration.
Provisions and manages Neo4j AuraDB instances via aura-cli, REST API, Python scripts, or Terraform provider. Use for creating, pausing, resizing, deleting instances, downloading credentials, and CI/CD pipelines.
Provides expert guidance for LadybugDB, an embedded property graph database using openCypher, covering schema design, Cypher queries, lbug CLI, Python/Node.js/Java/Rust/Go/Swift integrations, graph algorithms, HNSW vector search, and data import/export.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Share bugs, ideas, or general feedback.
This skill provides comprehensive guidance on Neo4j command-line tools for database administration, query execution, cloud management, and AI agent integration.
neo4j-admincypher-shellaura-clineo4j-mcpneo4j-cli (preview)neo4j-cypher-skillneo4j-migration-skillneo4j-getting-started-skillPurpose: Comprehensive database administration tool
Categories:
dbms - System-wide administration for single and clustered environmentsserver - Server-level management tasksdatabase - Database-specific operations (backup, restore, import, migrate)backup - Backup and restore operationsCommon Use Cases:
Included with Neo4j installation.
Reference: neo4j-admin-reference.md
Purpose: Interactive command-line tool for executing Cypher queries
Key Features:
Common Use Cases:
Requirements: Java 21. Included with Neo4j installation.
Reference: cypher-shell-reference.md
Purpose: Command-line interface for managing Neo4j Aura cloud resources
Key Features:
Common Use Cases:
Prerequisites: Aura API credentials configured (aura-cli auth login or env vars).
Reference: aura-cli-reference.md
Purpose: Model Context Protocol server for Neo4j integration with AI agents
For full installation and editor configuration guidance, use neo4j-mcp-skill — it covers all editors (Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Kiro), stdio vs HTTP transport, and troubleshooting.
Quick install:
pip install neo4j-mcp-server
neo4j-mcp --version # verify
Reference: neo4j-mcp-reference.md
Online backup requires Enterprise Edition. Community Edition users must use dump/load only (database must be offline).
# Full online backup — database stays online during backup
neo4j-admin database backup \
--to-path=/backups/ \
--database=neo4j \
--compress
# Differential backup — only changes since last full backup (faster)
neo4j-admin database backup \
--to-path=/backups/ \
--database=neo4j \
--type=DIFF \
--compress
# Backup to cloud storage (S3, GCS, or HTTPS)
neo4j-admin database backup \
--to-path=s3://my-bucket/neo4j-backups/ \
--database=neo4j
AGENT GATE — destructive operation: Before running restore, show the user the exact command and target database name, and wait for explicit confirmation. A restore overwrites the existing database.
# Restore from a full or differential backup
# Requires DB to be stopped, or use --force-offline for a running instance
neo4j-admin database restore \
--from-path=/backups/neo4j-2026-01-15T10-00-00/ \
--database=neo4j \
--overwrite-destination=true
# Restore to a new database name (non-destructive path)
neo4j-admin database restore \
--from-path=/backups/neo4j-2026-01-15T10-00-00/ \
--database=neo4j-restored
Use for migrations, dev/test data transfers, and Community Edition backups.
# Dump — stop the database first, or pass --force-offline
neo4j-admin database dump --to-path=/exports/ neo4j
# Load — overwrites if target DB exists
neo4j-admin database load \
--from-path=/exports/neo4j.dump \
--database=neo4j \
--overwrite-destination=true
AGENT GATE — destructive operation: Before running load with --overwrite-destination=true, confirm target database name and path with the user.
| Flag | Notes |
|---|---|
--compress | Zstd compression on backup archives |
--type=DIFF | Differential: only changes since last full backup |
--to-path | Local path or s3://, gs://, https:// |
--overwrite-destination=true | Required if target database already exists |
--force-offline | Allow backup/restore of a running database in some scenarios |
/backups/neo4j-2026-01-19T02-00-00/# Example: restore Sunday full + Monday + Tuesday differentials
neo4j-admin database restore \
--from-path=/backups/neo4j-2026-01-19T02-00-00/ \
--database=neo4j --overwrite-destination=true
neo4j-admin database restore \
--from-path=/backups/neo4j-2026-01-20T02-00-00/ \
--database=neo4j --overwrite-destination=true
neo4j-admin database restore \
--from-path=/backups/neo4j-2026-01-21T02-00-00/ \
--database=neo4j --overwrite-destination=true
Reference: neo4j-admin-reference.md
Common environment variables across tools:
NEO4J_URI / NEO4J_ADDRESS - Database connection URINEO4J_USERNAME - Database usernameNEO4J_PASSWORD - Database passwordNEO4J_DATABASE - Target database nameNEO4J_CONF - Path to neo4j.conf directoryNEO4J_HOME - Neo4j installation directoryUnified CLI for Cypher querying (HTTP API — no driver), Aura management, and agent skill install. Intended to consolidate existing tools over time; existing tools remain valid.
Install:
npm install -g @neo4j-labs/cli@alpha
brew install neo4j-labs/tap/neo4j-cli # Homebrew
neo4j-cli -v
Self-installs its own agent skill (always in sync with the binary):
neo4j-cli skill install # all detected agents
neo4j-cli skill install claude-code # single agent
neo4j-cli skill check # detect drift after upgrades
Subcommands:
| Subcommand | Purpose |
|---|---|
neo4j-cli query [cypher] | Run Cypher via HTTP Query API — no driver needed |
neo4j-cli query :schema | Introspect labels, rel types, indexes, constraints |
neo4j-cli aura instance ... | Provision and manage Aura instances |
neo4j-cli aura graph-analytics ... | Manage Graph Analytics sessions |
neo4j-cli aura tenant/customermanagedkey | Tenant and CMK management |
neo4j-cli credential aura-client ... | Store Aura API credentials (not DB credentials — DB auth via env/flags only) |
neo4j-cli config get/set/list | Global CLI config |
neo4j-cli skill install/list/check | Agent skill management |
Key patterns:
# Run a Cypher query (bolt URIs auto-rewritten to HTTPS)
neo4j-cli query "MATCH (n:Person) RETURN n.name LIMIT 5" \
--uri neo4j+s://xxx.databases.neo4j.io \
--username neo4j --password $PASS
# Introspect schema
neo4j-cli query :schema --uri $NEO4J_URI -u $USER -p $PASS
# Store Aura API credentials
neo4j-cli credential aura-client add \
--name prod --client-id $ID --client-secret $SECRET
# Create Aura instance and block until ready
neo4j-cli aura instance create --name myapp --cloud-provider aws \
--region us-east-1 --type free-db --await
Agent output: Use -f toon — ~40% fewer tokens than JSON. Set as default: neo4j-cli config set format toon.
URI rewrite: Bolt-style URIs (neo4j+s://host:7687) auto-rewritten to https://host:7473.
Async operations: instance create/resize/destroy return immediately — add --await to block until terminal state.
Credentials for query: flags, env vars (NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD, NEO4J_DATABASE, NEO4J_INSECURE), or .env file (auto-discovered walking up from cwd; --env <path> to override). Precedence: .env < env vars < flags.
Full flag reference: run neo4j-cli skill install — the self-installed skill stays in sync with the binary.
neo4j-cli skill install run after install or upgradeNEO4J_USERNAME, NEO4J_PASSWORD); not hardcodedSHOW INDEXES + count