mcp-neo4j-knowledge-graph: Instructions file for Claude Code

CLAUDE.md

mcp-neo4j-knowledge-graph CLAUDE.md is an instructions file for Claude Code from henrychong-ai/mcp-neo4j-knowledge-graph. It costs 8,213 tokens per session, scanned C, original, MIT.

A set of instructions for working on a Neo4j knowledge graph project. Neo4j is a database designed to store connected facts, while the project also supports historical versions and meaning-based search.

In plain words
What is it for?
Use it when developing or reviewing the MCP server, its Neo4j database integration, semantic search, TypeScript code, tests, or linting setup.
Why use it?
Contributors need shared guidance on the project's structure, technologies, setup, commands, coding conventions, and tests. These instructions explain how to work consistently in the repository.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; positional $N argument; mentions Claude Code.

This is henrychong-ai/mcp-neo4j-knowledge-graph's own configuration. It tells Claude Code how to work on mcp-neo4j-knowledge-graph itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-neo4j-knowledge-graph configures →

Reuse

Borrowing it

Nothing to install: this file belongs to henrychong-ai/mcp-neo4j-knowledge-graph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/henrychong-ai/mcp-neo4j-knowledge-graph/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/henrychong-ai/mcp-neo4j-knowledge-graph

Made for: Claude Code.

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 mcp-neo4j-knowledge-graph CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/henrychong-ai/mcp-neo4j-knowledge-graph/claude-md/github.svg)](https://agentmods.dev/instructions/henrychong-ai/mcp-neo4j-knowledge-graph/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/henrychong-ai/mcp-neo4j-knowledge-graph/claude-md"><img src="https://agentmods.dev/badge/instructions/henrychong-ai/mcp-neo4j-knowledge-graph/claude-md/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 mcp-neo4j-knowledge-graph CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/henrychong-ai/mcp-neo4j-knowledge-graph/claude-md"><img src="https://agentmods.dev/badge/instructions/henrychong-ai/mcp-neo4j-knowledge-graph/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,213 This file is loaded in full into every session.
When invoked 8,213 The same file — it is already loaded in full.
Security scan C 1 finding. 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.08213 $0.08213
Opus 5 $0.04106 $0.04106
Sonnet 5 $0.01643 $0.01643
Haiku 4.5 $0.00821 $0.00821

Measured yesterday against content hash 91c630abc521, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

mcp-neo4j-knowledge-graph CLAUDE.md scanned grade C with 1 finding 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 yesterday.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

5. Clear npx cache after publishing: `rm -rf ~/.npm/_npx/*/node_modules/@henrychong-ai`
CLAUDE.md · 691 lines

How it starts

The opening of the file, as written. The whole thing — 691 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

@henrychong-ai/mcp-neo4j-knowledge-graph is a Model Context Protocol (MCP) server implementing a Neo4j-based knowledge graph with temporal versioning and semantic search capabilities. Maintained by Henry Chong, built on foundational work by Gannon Hall.

Key Features:

  • Temporal versioning for entities and relations (track historical changes)
  • Neo4j graph database as primary storage backend
  • Vector embeddings and semantic search via OpenAI
  • MCP server for Claude Desktop and Claude Code integration
  • Full test coverage with Vitest

Tech Stack

Layer Technology
Runtime Node.js >=24 LTS
Language TypeScript (ES2024 target)
Package Manager pnpm
Database Neo4j 5.13+ (Community/Enterprise)
Protocol MCP SDK
Validation Zod
Embeddings OpenAI-compatible (OpenAI / Cloudflare Workers AI / any); default text-embedding-3-small; optional bge reranker (v2.5.0+)
Testing Vitest + @vitest/coverage-v8
Linting Oxlint (import, promise, node, vitest plugins)
Formatting Biome (formatter-only, linter disabled)
Git Hooks Husky + lint-staged

Getting Started

See README.md for complete setup instructions covering installation, Neo4j setup, MCP client configuration, and testing.

Development Commands

Build & Development

pnpm run build              # TypeScript compilation + executable permissions
pnpm run dev               # Watch mode for development
pnpm run prepare           # Pre-publish build (runs automatically)

Testing

pnpm test                  # Run all tests
pnpm run test:watch        # Watch mode
pnpm run test:verbose      # Detailed output
pnpm run test:coverage     # Coverage report
pnpm run test:integration  # Integration tests (requires Neo4j)

Read the full file on GitHub · 691 lines

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. yesterday Changed · +4 lines · +214 tokens per session 91c630abc521
  2. 8d ago Changed · +29 lines · +860 tokens per session 7cd858ef3446
  3. 12d ago First seen · 658 lines · 7,139 tokens per session scan C 7c0cd98b0df1

Subscribe to this mod's changes

mcp-neo4j-knowledge-graph CLAUDE.md is an instructions file published in the GitHub repository henrychong-ai/mcp-neo4j-knowledge-graph (1 stars, last pushed yesterday), licensed MIT. It adds 8,213 tokens to every session, about $0.0411 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,126 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens