Neo4j
Read queries in read transactions with an agent statement guard (no LOAD CSV/APOC/dbms), schema, nodes by elementId, writes need an opt-in for agents, deletes are node only
Beta v0.1.0 Node.js 11 actions
About
A Graphrt plugin that runs Cypher on Neo4j through the HTTP Query API v2 (POST /db/<database>/query/v2). It works with self-managed Neo4j (5.x and 2025+ calendar versions with the Query API enabled) and Neo4j Aura. It is built with the declarative REST layer (definition.mjs), no driver, no Bolt.
What it can do
- Queries: run_read_query (accessMode: "Read", agent statements with write clauses are refused), run_write_query (accessMode: "Write", returns counters). Both take statement with $placeholders and parameters, plus an optional max_execution_time (seconds, Neo4j 2026.04+).
- Schema: list_labels, list_relationship_types, list_property_keys, list_indexes, list_constraints, get_schema (db.schema.visualization)
- Nodes: get_node and delete_node (node only) by elementId
- Server: get_server_info (version, edition, Query API versions, the discovery endpoint needs no auth)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Run read query
neo4j.run_read_query - Run write query
neo4j.run_write_query - List labels
neo4j.list_labels - List relationship types
neo4j.list_relationship_types - List property keys
neo4j.list_property_keys - List indexes
neo4j.list_indexes - List constraints
neo4j.list_constraints - Get schema
neo4j.get_schema - Get node
neo4j.get_node - Delete node
neo4j.delete_node
Show all 11 actions
- Server info
neo4j.get_server_info
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
NEO4J_URLOptionalHTTP(S) address, default http://localhost:7474, Aura: https://<instance-id>.databases.neo4j.io. Not neo4j:///bolt://. Plain http:// only for localhost. -
NEO4J_DATABASEOptionalDatabase name, default neo4j (one database per configuration) -
NEO4J_USERNAMERequiredBasic auth (Aura: the instance's credentials file) -
NEO4J_TOOL_ALLOW_WRITESOptional1 lets agent tools use run_write_query -
NEO4J_TOOL_ALLOWED_PROCEDURESOptionalMore procedures/functions agents may call, comma-separated: exact names (apoc.coll.sum) or prefixes (apoc.text., apoc.coll.*) -
NEO4J_PASSWORD
How to use it
In Graphrt Desktop
- Open Plugins and search for Neo4j.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install neo4j workflow.yaml
- id: movies
type: neo4j.run_read_query
statement: "MATCH (p:Person {name: $name})-[:ACTED_IN]->(m:Movie) RETURN m.title AS title, m.released AS year ORDER BY year"
parameters: { name: "{{#start.actor#}}" }
- id: tag
type: neo4j.run_write_query
statement: "MATCH (m:Movie {title: $title}) SET m.reviewed = true RETURN m.title"
parameters: { title: "{{#movies.data.records.0.title#}}" }