/neo4j-skills:neo4j-aura-agent-skillfrom neo4j-skills
Manages Neo4j Aura Agents via the v2beta1 REST API — create, list, get, update, delete, and invoke agents backed by an AuraDB instance. Covers tool configuration (CypherTemplate, SimilaritySearch, Text2Cypher), system prompts, deployment to REST/MCP endpoints, and evaluation dataset generation.
Ships in neo4j-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
neo4j-aura-provisioning-skillneo4j-vector-index-skillneo4j-cypher-skillneo4j-aura-graph-analytics-skillGraphRAG agents on top of AuraDB — answer natural language questions via three tool types:
Expose your graph via natural language to users or apps without application code. Accessible as REST or MCP endpoint; single- and multi-turn. For full Cypher control, low-latency lookups, or direct writes — use neo4j-cypher-skill instead.
AURA_CLIENT_ID and AURA_CLIENT_SECRET from console.neo4j.io → Account Settings → API CredentialsAURA_ORG_ID, AURA_PROJECT_ID — see Step 2; AURA_INSTANCE_ID — resolved interactively in Step 2 if not already setuv sync in skill directory (or pip install neo4j neo4j-graphrag requests python-dotenv).env and schema.json in .gitignoreManual credential verification only — scripts call get_token() internally.
TOKEN=$(curl -s --request POST 'https://api.neo4j.io/oauth/token' \
--user "${AURA_CLIENT_ID}:${AURA_CLIENT_SECRET}" \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
| jq -r '.access_token')
echo "Token: ${TOKEN:0:20}..."
If blank token: verify AURA_CLIENT_ID/AURA_CLIENT_SECRET in .env. Stop and report.
Token TTL: 3600 s. Re-run on 401/403.
From console URL (fastest): open console.neo4j.io → navigate to a project. URL pattern:
/organizations/{AURA_ORG_ID}/projects/{AURA_PROJECT_ID}
Programmatic fallback:
curl -s https://api.neo4j.io/v1/tenants \
-H "Authorization: Bearer $TOKEN" | jq '.data[] | {id, name}'
# tenant id maps to AURA_PROJECT_ID
Set in .env:
AURA_ORG_ID=<organization-id>
AURA_PROJECT_ID=<project-id>
Check AURA_INSTANCE_ID — if it is already set in .env, skip the rest of this step.
If not set, list available instances and ask the user to choose:
curl -s "https://api.neo4j.io/v1/instances?tenantId=${AURA_PROJECT_ID}" \
-H "Authorization: Bearer $TOKEN" \
| jq '.data[] | {id, name, cloud_provider}'
List returns no status. Check status per candidate (must be running):
curl -s "https://api.neo4j.io/v1/instances/<instance-id>" \
-H "Authorization: Bearer $TOKEN" | jq '.data | {id, name, status, region, type}'
Show output to user. Ask: "Which instance should the agent connect to?" Then write to .env:
AURA_INSTANCE_ID=<chosen-instance-id>
NEO4J_URI=neo4j+s://<chosen-instance-id>.databases.neo4j.io
If the list is empty: no AuraDB instances exist in this project — an Aura Agent cannot be created without one. Stop and report.
If 401: re-run Step 1. If 404: verify AURA_PROJECT_ID. Stop and report.
uv run python3 scripts/manage_agent.py list # Linux/macOS
uv run python scripts\manage_agent.py list # Windows
Output: agent IDs, names, enabled status, endpoint URLs.
If 401: re-run Step 1. If 404: verify AURA_ORG_ID/AURA_PROJECT_ID. Stop and report.
Requires NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD in .env.
uv run python3 scripts/fetch_schema.py # Linux/macOS
uv run python scripts\fetch_schema.py # Windows
Saves schema.json. Output: node/rel-type counts, node labels + typed properties (with Aura data_type), relationship patterns, VECTOR indexes.
Data gate — script exits with error and does NOT write schema.json if:
If gate fails: load data into the database before proceeding. Stop and report.
If ServiceUnavailable: check NEO4J_URI uses neo4j+s://; instance must be running. Stop and report.
If neo4j-graphrag not found: uv add neo4j-graphrag. Stop and report.
Read schema.json before Step 5.
Before designing tools, read references/authoring-guide.md.
Take answers from request and schema; ask about gaps. Do NOT guess tool types or parameters.
schema.json → node_propsschema.json → metadata → vector_index
neo4j-vector-index-skill firstreferences/REFERENCE.md → Embedding Provider Options. Dimension from index (vector.dimensions). Do NOT guess provider/model.Tool selection:
| Use Case | Tool |
|---|---|
| Lookup by specific property value | cypherTemplate |
| Semantic text search | similaritySearch |
| Aggregation, counting, open-ended | text2cypher |
CypherTemplate parameters: for each parameter, read aura_data_type from schema.json → node_props or rel_props and use it as data_type. If the property has low_cardinality: true, the parameter description should list the valid values — copy them from the values array in schema.json. Example: "description": "Agreement type to filter by. Valid values: \"Distributor Agreement\", \"License Agreement\", \"NDA\"". Properties with has_fulltext_index: true are especially likely to be filter targets and should include valid values when low cardinality.
SimilaritySearch configuration — values from request; dimensions from index; ask about gaps; then draft tool config:
| Field | What to ask | Source |
|---|---|---|
provider | "openai" or "vertexai"? | Request, else user confirms |
model | Which model? | Request, else user picks from references/REFERENCE.md → Embedding Provider Options |
dimensions | What output dimension? | Optional; set when provider or index needs an explicit size (configurable models, see table) |
index: use name from schema.json → metadata → vector_index where state = ONLINE. dimensions must match vector.dimensions in the same index entry.
Signals inventory: for each label or relationship that appears in a tool or the user's stated questions, write a signal block in the system prompt. See references/authoring-guide.md → Signals inventory for the template and rules.
Draft config JSON → show to user for review → confirm → proceed to Step 6. Skip review if user said go ahead or request gives full config; state config, proceed.
Minimum required config:
{
"name": "My Agent",
"description": "Answers questions about the graph",
"dbid": "<AURA_INSTANCE_ID>",
"is_private": true,
"tools": [
{
"type": "text2cypher",
"name": "Query Graph",
"description": "Translates natural language questions into Cypher queries"
}
]
}
Show config to user and confirm before running (skip if user already asked to create with these details):
uv run python3 scripts/manage_agent.py create --config agent-config.json
is_private: true = internal: free, project members use it in the console only; no REST invoke, no MCP. is_private: false = external: REST endpoint (optionally MCP), billed. Keep internal while testing; set false only when user needs API/MCP access and accepts charges.
Response includes id (save as AURA_AGENT_ID). Endpoint link: list response (endpoint_link) or console […] menu. No MCP URL in create/get response; if is_mcp_enabled: https://mcp.neo4j.io/agent?project_id=<project_id>&agent_id=<agent_id> — see references/REFERENCE.md → External Access.
API invoke requires external agent (is_private: false, billed). Internal agents answer only in the console; API returns 403 ("agent is disabled or private"). Internal agent → test in console, or ask user before switching to external.
uv run python3 scripts/invoke_agent.py --agent-id "$AURA_AGENT_ID" "What can you help me with?"
--raw prints full JSON including reasoning chain and token usage.
Direct curl (uses token from Step 1):
curl -s -X POST \
"https://api.neo4j.io/v2beta1/organizations/${AURA_ORG_ID}/projects/${AURA_PROJECT_ID}/agents/${AURA_AGENT_ID}/invoke" \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"input": "What can you help me with?"}'
Patch JSON with only the fields to change:
{ "system_prompt": "Updated instructions.", "is_mcp_enabled": true }
tools in a PATCH replaces the whole tool list. A patch with only the new tool deletes all others. To add/change/remove a tool: manage_agent.py get → edit the full tools array → PATCH the full array → get again to verify.
Show to user and confirm before running:
uv run python3 scripts/manage_agent.py update --agent-id "$AURA_AGENT_ID" --config patch.json
IRREVERSIBLE. Configuration permanently removed.
Show to user and wait for explicit confirmation before running:
uv run python3 scripts/manage_agent.py delete --agent-id "$AURA_AGENT_ID"
Returns 202 Accepted.
Creates an importable evaluation dataset (max 50 questions) for Aura's Agent Evaluation feature. Read references/evaluation-dataset-guide.md first — it defines format, tool_type mapping, question budget and category rules.
uv run python3 scripts/manage_agent.py get --agent-id "$AURA_AGENT_ID" > agent.json
Ensure schema.json exists (Step 4).similaritySearch tool exists).env creds). No guessed answers. Keep Cypher + gap rationale in eval_dataset.provenance.json.eval_dataset.json and validate:
uv run python3 scripts/validate_eval_dataset.py eval_dataset.json --agent agent.json
Pre-defined parameterized queries for repeated, predictable lookups.
{
"type": "cypherTemplate",
"name": "<descriptive name>",
"description": "<what it looks up and when to use it>",
"enabled": true,
"config": {
"template": "MATCH (n:Label {prop: $param}) RETURN n",
"parameters": [
{
"name": "param",
"data_type": "<string|integer|number|boolean — from schema.json aura_data_type>",
"description": "<what the parameter represents. If low_cardinality=true in schema.json, append: Valid values: \"val1\", \"val2\", ...>"
}
]
}
}
Low-cardinality rule: if schema.json → node_props[Label][prop].low_cardinality is true, the description field must end with the exact values from schema.json → node_props[Label][prop].values. This applies to relationship properties in rel_props too.
Requires a VECTOR index (state = ONLINE). Get index name from schema.json → metadata → vector_index.
{
"type": "similaritySearch",
"name": "<descriptive name>",
"description": "<what text it searches and when to use it>",
"enabled": true,
"config": {
"provider": "openai",
"model": "text-embedding-3-small",
"index": "<name from schema.json metadata.vector_index[state=ONLINE].name>",
"top_k": 5,
"dimensions": "<optional; vector.dimensions from schema.json metadata.vector_index options.indexConfig>",
"post_processing_cypher": "<optional: Cypher to enrich similarity results with related nodes>"
}
}
provider/model combinations: see references/REFERENCE.md.
Natural language → Cypher. Use as fallback for aggregation and discovery.
{
"type": "text2cypher",
"name": "<descriptive name>",
"description": "<what questions it handles — and explicitly what it should NOT handle>",
"enabled": true
}
| Error | Cause | Fix |
|---|---|---|
401 Unauthorized | Token expired | Re-run Step 1 |
403 Forbidden on create | Not a project admin | Request admin access |
403 Forbidden on invoke | Agent disabled or internal (is_private: true) | Enable; make external only with user consent (billed) |
400 Bad Request | Invalid tool config or missing required field | Check type spelling: cypherTemplate, similaritySearch, text2cypher |
404 Not Found | Wrong org/project/agent ID | Re-run list to verify IDs |
400 on create with SimilaritySearch | Vector index missing | Create index first — use neo4j-vector-index-skill |
| Agent returns no results | top_k too low or index empty | Increase top_k; verify index is populated |
All scripts load credentials from .env automatically. Run with uv run python3 <script>.
| Script | Purpose |
|---|---|
scripts/fetch_schema.py | Fetch graph schema from AuraDB; save to schema.json |
scripts/manage_agent.py | CRUD: list, create, get, update, delete agents |
scripts/invoke_agent.py | Send a natural language query to an agent |
scripts/validate_eval_dataset.py | Validate an evaluation dataset JSON (optionally against agent.json) |
fetch_schema.py parameters:
| Parameter | Type | Required | Default |
|---|---|---|---|
NEO4J_URI | env | Yes | — |
NEO4J_USERNAME | env | No | neo4j |
NEO4J_PASSWORD | env | Yes | — |
NEO4J_DATABASE | env | No | neo4j |
manage_agent.py parameters:
| Parameter | Type | Required | Env fallback |
|---|---|---|---|
AURA_CLIENT_ID | env | Yes | — |
AURA_CLIENT_SECRET | env | Yes | — |
--org-id | arg | No | AURA_ORG_ID |
--project-id | arg | No | AURA_PROJECT_ID |
--agent-id | arg | get/update/delete | AURA_AGENT_ID |
--config | arg | create/update | — |
invoke_agent.py parameters:
| Parameter | Type | Required | Env fallback |
|---|---|---|---|
AURA_CLIENT_ID | env | Yes | — |
AURA_CLIENT_SECRET | env | Yes | — |
--org-id | arg | No | AURA_ORG_ID |
--project-id | arg | No | AURA_PROJECT_ID |
--agent-id | arg | Yes | AURA_AGENT_ID |
query | positional | Yes | — |
--raw | flag | No | — |
running, knowledge graph loaded.env populated: AURA_CLIENT_ID, AURA_CLIENT_SECRET, AURA_ORG_ID, AURA_PROJECT_ID, AURA_INSTANCE_ID, NEO4J_URI, NEO4J_PASSWORD.env and schema.json in .gitignorelist (Step 3)schema.json fetched and reviewed (Step 4) — data gate passed (≥2 nodes, ≥1 rel type)data_type taken from schema.json aura_data_typeindex from schema.json metadata.vector_index (state=ONLINE)name, description, dbid, is_private, tools (min 1)AURA_AGENT_ID saved from create responseagent.json (Step 10)README.md (opens in a new tab)pyproject.toml (opens in a new tab)references/REFERENCE.md (opens in a new tab)references/authoring-guide.md (opens in a new tab)references/evaluation-dataset-guide.md (opens in a new tab)scripts/fetch_schema.py (opens in a new tab)scripts/invoke_agent.py (opens in a new tab)scripts/manage_agent.py (opens in a new tab)scripts/validate_eval_dataset.py (opens in a new tab)uv.lock (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
30 skills in this plugin
/neo4j-agent-memory-skillAuthoritative reference for the neo4j-agent-memory Python package — a graph-native memory system for AI agents built on Neo4j — and for the hosted service (NAMS) at memory.neo4jlabs.com. Use this skill whenever the user mentions neo4j-agent-memory, agent memory with Neo4j, context graphs, the POLE+O model, MemoryClient/MemorySettings, the memory MCP server, or any of the framework integrations (LangChain, PydanticAI, CrewAI, AWS Strands, Google ADK, Microsoft Agent Framework, OpenAI Agents, LlamaIndex). Also use when the user mentions the hosted service at memory.neo4jlabs.com, NAMS, the Neo4j Agent Memory Service, the `nams_` API key prefix, or the hosted MCP endpoint. Also use when writing documentation, blog posts, tutorials, PRDs, or code samples for the project, when comparing agent memory approaches, or when positioning graph-native memory against vector-only approaches — even if the user doesn't explicitly name the package. Does NOT handle GraphRAG pipelines — use neo4j-graphrag-skill./neo4j-aura-graph-analytics-skillServerless Aura Graph Analytics (AGA) GDS Sessions — covers GdsSessions, AuraGraphDataScience, AuraAPICredentials, DbmsConnectionInfo, SessionMemory, get_or_create, remote graph projection with gds.graph.project.cypher and gds.graph.project.remote, gds.graph.project.native, gds.graph.construct, graphdatascience client 2.0 session endpoints, async compute and gds.jobs, AuraDB Cypher API memory/sessionId projection, algorithms, write-back, and session lifecycle. Use for AuraDB-connected, self-managed Neo4j, or standalone DataFrame/Spark session workloads. Does NOT cover the embedded GDS plugin on Aura Pro or self-managed Neo4j — use neo4j-gds-skill. Does NOT handle Cypher authoring — use neo4j-cypher-skill. Does NOT cover Snowflake Graph Analytics — use neo4j-snowflake-graph-analytics-skill./neo4j-aura-provisioning-skillProvisions and manages Neo4j Aura instances via CLI (aura-cli v1.7+) or REST API. Use when creating, pausing, resuming, resizing, or deleting AuraDB Free/Professional/Business Critical/VDC instances; downloading credentials; scripting CI/CD pipelines; polling async status; or using the Terraform neo4j-labs/neo4jaura provider. Covers auth setup (client credentials OAuth2), credential lifecycle (download once — never recoverable), instance type selection, region codes, and Python provisioning scripts. Does NOT handle Cypher queries — use neo4j-cypher-skill. Does NOT cover Graph Data Science algorithms — use neo4j-gds-skill or neo4j-aura-graph-analytics-skill. Does NOT cover neo4j-admin/cypher-shell — use neo4j-cli-tools-skill./neo4j-cli-tools-skillUse when working with Neo4j command-line tools — neo4j-cli (modern unified CLI — Cypher via Bolt, schema inspection, Aura management, Docker containers, credential management, agent skill catalog install; install with curl -sSfL https://neo4j.sh/install.sh | bash), neo4j-admin (backup, restore, import, memory sizing), cypher-shell (ad-hoc queries, scripting, CI/CD), or neo4j-mcp (quick MCP server install). Does NOT cover Cypher query authoring — use neo4j-cypher-skill. Does NOT cover driver upgrades — use neo4j-migration-skill. Does NOT cover full MCP editor configuration — use neo4j-mcp-skill. Does NOT cover the relate embedded engine (relatedb.ai) — use the relate skill; choice guide in neo4j-getting-started-skill./neo4j-cypher-skillGenerates, optimizes, and validates Cypher 25 queries for Neo4j 2025.x and 2026.x. Use when writing new Cypher queries, optimizing slow queries, graph pattern matching, vector or fulltext search, subqueries, or batch writes. Covers MATCH, MERGE, CREATE, WITH, RETURN, CALL, UNWIND, FOREACH, LOAD CSV, SEARCH, expressions, functions, indexes, and subqueries. Does NOT handle driver migration or API changes — use neo4j-migration-skill. Does NOT cover DB administration or server ops — use neo4j-cli-tools-skill. Does NOT cover Cypher on the relate embedded engine — use the relate skill./neo4j-document-import-skillIngests unstructured and semi-structured documents into Neo4j as a knowledge graph. Use when chunking PDFs, HTML, plain text, or Markdown; extracting entities and relationships from text with an LLM (SimpleKGPipeline, neo4j-graphrag); loading JSON via apoc.load.json; building Document→Chunk→Entity graph structures; or connecting LangChain/LlamaIndex document loaders to Neo4j. Covers neo4j-graphrag SimpleKGPipeline, LLM Graph Builder web UI, entity resolution, chunking strategies, and graph schema design for RAG pipelines. Does NOT handle structured CSV/relational import — use neo4j-import-skill. Does NOT handle GraphRAG retrieval after ingestion — use neo4j-graphrag-skill. Does NOT handle vector index creation — use neo4j-vector-index-skill.npx claudepluginhub neo4j/agent-skills --plugin neo4j-skillsOther plugins' skills for the same job