---
title: "Connect Neo4j"
description: "Write down the graph schema MERGE has been inferring for you."
slug: "neo4j"
type: connector
locale: en-US
canonical: "https://www.coremodels.io/connector/neo4j"
updatedAt: "2026-09-28T18:42:53+02:00"
last_updated: "2026-09-28T18:42:53+02:00"
---

# Connect Neo4j

Write down the graph schema MERGE has been inferring for you.

Import Neo4j constraints, indexes, and labels and CoreModels records the property graph as a governed model - nodes, relationships, keys, and the uniqueness rules MERGE assumed. GraphRAG grounding recipes then point agents at meaning, not at whatever happened to be loaded.

A duplicate-node incident throws nothing. A second ingestion path uses a slightly different key, and for months the graph looks fine. Neo4j will store whatever you write. The schema you thought you had was a convention in Cypher, not a governed definition.

Property graphs accumulate implicit schemas: labels, relationship types, property keys, uniqueness that exists only if someone created a constraint. Documentation is a diagram from last year.

CoreModels imports what the database will actually enforce and what the model files claim, then lets you govern the rest. Generate-back can emit constraints aligned with the definition. GraphRAG grounding uses that definition so retrieval is not guessing node shape.

Use this when the graph is a product surface - search, recommendations, agents - and silent duplicates are more expensive than a missing unique constraint looks.

## Recipes

- [Blank Neo4j project](https://www.coremodels.io/recipe/neo4j/generic): A preconfigured home for governing your Neo4j graph: bring artifacts now or later.
- [CI Drift Gate for Neo4j](https://www.coremodels.io/recipe/neo4j/ci-drift-gate): Fail the build when your graph drifts from the governed model.
- [First Governed Import for Neo4j](https://www.coremodels.io/recipe/neo4j/first-governed-import): Turn apoc.meta.schema() into a governed model in one upload.
- [Generate Neo4j Constraints from the Governed Model](https://www.coremodels.io/recipe/neo4j/generate-back): Close the loop: make Neo4j enforce the governed shape.
- [GraphRAG Grounding for Agents](https://www.coremodels.io/recipe/neo4j/graphrag-grounding): Stop agents guessing your graph schema: give them the governed model over MCP.

## Problem

- [The Schema You Never Wrote Down](https://www.coremodels.io/connector/neo4j/h1-need): A duplicate-node incident is one of the quietest failures in software. Nothing throws. No log line turns red. A `MERGE (p:Person {email: $email})` runs a few hundred thousand times a day and, for eleven months, does exactly what everyone expects. Then a second ingestion path is added — this one merges on `name`, because that is what the upstream file happened to carry — and the graph starts growing two `Person` nodes where there used to be one. Traversals still return results. Dashboards still render. The number of people in the company just slowly stops being true.

## Outcomes

- [Four Things That Exist Afterwards](https://www.coremodels.io/connector/neo4j/h2-outcomes): Adoption stories usually get told as a list of features. This one is easier to tell as an inventory: after a team wires CoreModels to their Neo4j instance, four artifacts exist that did not exist before, and almost everything that changes about the week is downstream of those four.

## Governance

- [Read the Roles, Not the Brochure](https://www.coremodels.io/connector/neo4j/h3-governance): You can predict how a tool will behave inside your systems by reading which of its operations require which permission. Roles are enforced by code paths; brochures are not.

## Ecosystem

- [Count the Homes of One Entity](https://www.coremodels.io/connector/neo4j/h4-ecosystem): Pick a single entity in your organization — `Customer`, `Patient`, `Instrument`, whatever your domain calls the thing everything else hangs off — and count where it physically lives. In a serious estate the count is rarely below four. It is a label in Neo4j. It is a table in a warehouse. It is a subject in a schema registry. It is a model in a transformation project, a form in a capture system, a class in an application's JSON Schema.

## Agents

- [Six Guesses Before the First Hop](https://www.coremodels.io/connector/neo4j/h5-agents): Ask an agent a question about your graph — "which companies do our top account contacts work for?" — and watch what it has to decide before it can write a single line of Cypher.

## Quickstart

- [Your First Neo4j Schema Audit: A Complete Worked Example](https://www.coremodels.io/connector/neo4j/t1-quickstart): Take a small graph — three labels, a handful of properties, three relationship types. By the end of this article that graph has a governed model in CoreModels and a recorded baseline audit that tells you, in machine-readable form, exactly what is under governance and where the graph is structurally weak. Total effort: two Cypher statements and two HTTP calls.

## API

- [The Neo4j Integration API, Route by Route](https://www.coremodels.io/connector/neo4j/t2-api): Ten routes, two surfaces, one rule about who is allowed to write. That is the core HTTP contract for governing a Neo4j estate with CoreModels, and this article documents it exhaustively — payloads, roles, response shapes, and the failure modes you will actually hit.

## MCP

- [Four Tools, One Knowledge Graph: Neo4j Governance from the Agent Side](https://www.coremodels.io/connector/neo4j/t3-mcp): An AI agent connected to CoreModels over MCP sees a small, deliberately shaped set of vendor-integration tools. Three of them cannot write anything at all; the fourth requires Admin membership on the project *and* a different endpoint. That shape is the point of this article: an agent can drive the entire Neo4j governance loop — discover, audit, report, generate the fix — while the only mutating step in the loop stays behind an explicit privilege boundary.

## Automation

- [Automating Neo4j Drift Control: The Gate, the Trail, the Badge, the Heartbeat](https://www.coremodels.io/connector/neo4j/t4-automation): Most CI integrations start with an artifact the build already produces. Neo4j does not produce one — there is no compile step for a property graph, no manifest, no migration file that reviewers can read. So the first job in automating Neo4j governance is not writing the gate. It is deciding where `meta_schema.json` comes from in your pipeline.

## Deep dive

- [Projecting a Property Graph onto a Governed Model: Inside the Neo4j Connector](https://www.coremodels.io/connector/neo4j/t5-deep-dive): CoreModels has one estate model and every vendor parses into it: **datasets** (table-shaped things) with **fields** and normalized **checks**, plus **lineage** edges and **projections**. A dbt project, a warehouse schema, and a schema registry all land in the same shape.

## Sitemap

- [Sitemap in markdown](https://www.coremodels.io/sitemap.md)
