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.
Constraints, indexes, and model export · neo4j.com
14-day free trial. Builder $49/mo after the trial. Cancel any time.
Blank Neo4j project
A preconfigured home for governing your Neo4j graph: bring artifacts now or later.
neo4jCI Drift Gate for Neo4j
Fail the build when your graph drifts from the governed model.
neo4jFirst Governed Import for Neo4j
Turn apoc.meta.schema() into a governed model in one upload.
neo4jGenerate Neo4j Constraints from the Governed Model
Close the loop: make Neo4j enforce the governed shape.
neo4jGraphRAG Grounding for Agents
Stop agents guessing your graph schema: give them the governed model over MCP.