neo4j-schema

neo4j-schema is a command for Claude Code from lesleslie/neo4j-mcp. It costs 17 tokens per session (277 once invoked), scanned A, original, BSD-3-Clause.

A command for inspecting the live Neo4j database schema, meaning its node types, relationship types, indexes, and rules.

In plain words
What is it for?
Use it to check Neo4j connectivity and summarize labels, relationship types, indexes, or constraints.
Why use it?
It shows how the database is structured before you write queries or change data. Optional flags let you inspect only the parts you need.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the neo4j plugin — 3 commands shipped together

Good fit Use it to check Neo4j connectivity and summarize labels, relationship types, indexes, or constraints.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lesleslie/neo4j-mcp/neo4j-schema
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/lesleslie/neo4j-mcp

Made for: Claude Code.

Or install neo4j, the plugin that ships this one along with the rest of its 3 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neo4j-schema

README.md
[![agentmods](https://agentmods.dev/badge/commands/lesleslie/neo4j-mcp/neo4j-schema/github.svg)](https://agentmods.dev/commands/lesleslie/neo4j-mcp/neo4j-schema)
Your own site
<a href="https://agentmods.dev/commands/lesleslie/neo4j-mcp/neo4j-schema"><img src="https://agentmods.dev/badge/commands/lesleslie/neo4j-mcp/neo4j-schema/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neo4j-schema

Your own site · 80×15
<a href="https://agentmods.dev/commands/lesleslie/neo4j-mcp/neo4j-schema"><img src="https://agentmods.dev/badge/commands/lesleslie/neo4j-mcp/neo4j-schema.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 277 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00277
Opus 5 $0.00009 $0.00138
Sonnet 5 $0.00003 $0.00055
Haiku 4.5 $0.00002 $0.00028

Measured 11d ago against content hash 5fc849027206, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

neo4j-schema scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/neo4j-schema.md · 33 lines

What it actually says

/neo4j-schema

Inspect the live Neo4j schema using the neo4j MCP server.

Usage

/neo4j-schema [--labels] [--relationships] [--indexes] [--constraints]

Arguments:

  • --labels: include node labels and their property keys.
  • --relationships: include relationship types and their property keys.
  • --indexes: include index definitions.
  • --constraints: include constraint definitions.

By default the server returns the full schema snapshot. Use the flags to narrow the output when you only need a slice.

Workflow

  1. Call mcp__neo4j__health_check to confirm the server and database are reachable.
  2. Call mcp__neo4j__get_schema with the requested flag(s). If no flags are supplied, the full schema is returned.
  3. Report the structure as a compact summary: list of labels, relationship types, indexes, and constraints.

Example

/neo4j-schema --labels --indexes

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 33 lines · 17 tokens per session scan A 5fc849027206

Subscribe to this mod's changes

neo4j-schema is a command published in the GitHub repository lesleslie/neo4j-mcp (1 stars, last pushed 12d ago), licensed BSD-3-Clause. It adds 17 tokens to every session and 277 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.