Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/neo4j-labs/create-context-graph/llms.txt

Use this file to discover all available pages before exploring further.

Create Context Graph supports four ways to connect to Neo4j. Choose the option that fits your workflow.
Neo4j Aura is a fully managed cloud graph database with a free tier. It requires no local installation and is the fastest way to get started.

Prerequisites

1

Create an Aura instance

  1. Go to console.neo4j.io.
  2. Click New Instance.
  3. Choose AuraDB Free (or a paid tier for production).
  4. Select a region close to you.
  5. Click Create.
  6. Save the generated password — you need it in the next step.
2

Download the .env file

After the instance is created, click the Download .env button. The file contains your connection credentials:
NEO4J_URI=neo4j+s://xxxxxxxx.databases.neo4j.io
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=your-generated-password
Save this file somewhere accessible.
3

Scaffold your project

Pass the --neo4j-aura-env flag to import your Aura credentials directly:
uvx create-context-graph my-app \
  --domain healthcare \
  --framework pydanticai \
  --neo4j-aura-env /path/to/Neo4j-xxxxxxxx-Created-2026-03-28.txt \
  --demo-data
This parses the .env file, configures the generated project to use your Aura instance, and sets neo4j_type to aura automatically.
4

Verify the connection

cd my-app
make test-connection
You should see:
✅ Connected to Neo4j Aura (neo4j+s://xxxxxxxx.databases.neo4j.io)
5

Seed data and start

make install
make seed
make start
  • Ensure your Aura instance is Running (not paused).
  • Free-tier instances pause after 3 days of inactivity — resume from the Aura console.
  • Check that NEO4J_URI starts with neo4j+s:// (TLS is required for Aura).
  • Double-check the password in your .env file.
  • If you lost the password, reset it from the Aura console under Instance settings.
Free-tier Aura instances have limited resources — queries may take 2–5 seconds. Upgrade to a paid tier for better performance.