Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Cypher Shell

$ cypher-shell Official High Risk
Neo4j · Database & Data · GPL-3.0 · macos / linux / windows

cypher-shell connects to Neo4j instances over Bolt (bolt://, neo4j+s://) to execute Cypher queries interactively or in scripts. Passing --non-interactive and --format plain yields clean, uncolored tab/CSV-like output for automated graph inspection.

FCRS-1.0 Score
75 /100
Good
Medium Confidence
Zero-Friction Install
brew install cypher-shell
CLI vs MCP Decision CLI Preferred vs MCP

cypher-shell streams Cypher files and queries directly over Neo4j's Bolt protocol with env-var auth and --non-interactive execution.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Supports --non-interactive and --format plain, plus NEO4J_* env vars, but offers no --json output mode (only auto, verbose, plain).

  • Supports --non-interactive and --format plain; lacks JSON output format
Trust & Safety 19 / 25

Supports TLS URI schemes (neo4j+s://), --encryption true, and env-var credentials, though there is no --read-only or --dry-run CLI flag.

  • Env var auth and explicit --encryption flag; lacks --read-only mode
Setup & Portability 11 / 15

Available via Homebrew and official archives across macOS, Linux, and Windows, but requires a JVM runtime.

  • Available via brew install cypher-shell; requires Java/JVM
Utility & Efficiency 13 / 15

Reliable official client for running .cypher scripts, schema queries, and admin commands over Bolt.

  • Full Cypher and Neo4j system database support over Bolt
Maintenance & Lineage 9 / 10

First-party Neo4j tool (neo4j/cypher-shell) maintained alongside Neo4j Server.

  • Official neo4j/cypher-shell repository
Docs & Verifiability 7 / 10

Well-documented in Neo4j Operations Manual and --help.

  • Official docs at neo4j.com

Security, Auth & Guardrails

Auth Modes
Env API Key No Auth
Credential Storage

Accepts NEO4J_USERNAME, NEO4J_PASSWORD, NEO4J_URI, and NEO4J_DATABASE environment variables so secrets stay out of process arguments.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

GPL-3.0 open-source CLI; Neo4j AuraDB cloud tiers incur vendor charges.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Cypher Shell Agent Rules
- Always pass `--non-interactive --format plain` and authenticate via `NEO4J_USERNAME` / `NEO4J_PASSWORD` env vars.
- End Cypher statements with `;` and include `LIMIT` on exploratory `MATCH` queries.
- Never run `DETACH DELETE` or `DROP DATABASE` without explicit human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run a non-interactive read-only Cypher query
cypher-shell -a bolt://localhost:7687 --non-interactive --format plain "MATCH (n) RETURN labels(n) AS labels, count(n) AS total LIMIT 20;"

Counts node labels using NEO4J_USERNAME/NEO4J_PASSWORD env vars with plain machine-friendly formatting.

List graph databases and status
cypher-shell -a bolt://localhost:7687 -d system --non-interactive --format plain "SHOW DATABASES;"

Queries the system database for available Neo4j databases and online status.

Strengths for Agents

  • + --non-interactive and --format plain prevent hangs and table-art clutter in scripts.
  • + Supports NEO4J_USERNAME, NEO4J_PASSWORD, and NEO4J_URI environment variables.

Caveats & Pitfalls

  • ! No --json output option; --format plain outputs comma/header text that requires CSV-style parsing.
  • ! Requires a JVM, adding noticeable startup overhead per invocation.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI