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.
Check prerequisites
You need the following before running the CLI:
- Python 3.11+ — the CLI is a Python package.
uvis recommended for running it without a permanent install. - Node.js 18+ — required for the generated Next.js frontend.
- Neo4j 5+ — see step 3 for your options (cloud, Docker, or local).
- An LLM API key — most frameworks use Anthropic. Get one at console.anthropic.com.
If you choose the OpenAI Agents SDK framework, you need
OPENAI_API_KEY. For Google ADK (Gemini), you need GOOGLE_API_KEY.Run the CLI
No installation needed. Run directly with The interactive wizard guides you through selecting a domain, agent framework, and Neo4j connection. If you prefer to skip it, pass all required flags directly:Other non-interactive examples:When the CLI finishes, you’ll see a summary of what was generated and the exact commands to run next.
uvx (Python) or npx (Node.js):Set up Neo4j
The generated app connects to any Neo4j 5+ instance. Choose the option that fits your workflow:
- Neo4j Aura (cloud)
- Docker
- neo4j-local
The easiest option. Neo4j Aura provides a free cloud-hosted instance with no local setup required.Or copy the credentials into your project’s
- Go to console.neo4j.io and create a free instance.
- Download the
.envcredentials file from the Aura console. - Either pass it at scaffold time:
.env file manually after scaffolding.No
make neo4j-start or make docker-up needed — Aura is already running in the cloud.Configure the environment
The generated project includes a Then open
.env.example with all required variables. Copy it and fill in your credentials:.env and set your values:Install dependencies and seed data
Install the backend and frontend dependencies, then load the domain data into Neo4j:
make install is equivalent to running:make seed loads all fixture data: entities and relationships, professional documents, and multi-step decision traces.If you used
--demo (instead of --demo-data) during scaffolding, data was already ingested into Neo4j at generation time. You can still run make seed to re-seed.Start the app
Start the backend and frontend with a single command:This starts:
- Backend (FastAPI) on port
8000 - Frontend (Next.js) on port
3000
Explore your app
Once both services are running, open these URLs:Things to try in the chat interface:
Chat interface
http://localhost:3000 — Chat with your AI agent and explore the knowledge graph. Try asking about entities in your domain, or double-click a node in the graph to expand its neighbors.
Backend API docs
http://localhost:8000/docs — FastAPI auto-generated interactive API documentation. Useful for testing endpoints directly.
Neo4j Browser
http://localhost:7474 — Query the graph directly with Cypher. Try
MATCH (n) RETURN n LIMIT 25 to see the seeded data.Health check
http://localhost:8000/health — Confirms the backend and Neo4j connection are healthy.
- Ask a domain-specific question: “Show me all patients with a diabetes diagnosis” or “What are the highest-risk accounts?”
- Watch the tool call timeline on the right as the agent executes Cypher queries in real time
- Click any node in the graph to see its properties, then click Ask about [entity] to query the agent directly
- Open the Documents panel to browse the seeded professional documents
- Open the Decision Traces panel to see the pre-generated multi-step reasoning examples
Next steps
Neo4j setup options
Detailed guide to Aura, Docker, and neo4j-local setup
Custom domains
Generate a full ontology from a plain-English description
SaaS connectors
Import real data from GitHub, Slack, Jira, Notion, and more
CLI reference
Every flag and option, with defaults and examples
