by nikola_milosevic · v0.2.0
Secure Neo4j graph database integration with parameterized queries, write protection, and multi-database support. Query knowledge graphs with Cypher from Dify workflows and AI agents.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Version: 0.2.0
Type: Tool
The Neo4j Query Plugin is a secure and efficient integration tool that connects Dify.ai with Neo4j graph databases. It enables powerful graph-based data exploration, querying, and manipulation within Dify workflows and AI agents. The plugin supports both Neo4j Aura cloud instances and locally hosted Neo4j deployments.
Install Dify Plugin CLI
# Follow instructions from Dify documentation
# https://docs.dify.ai/plugin-dev-en/0211-getting-started-dify-tool
Package the Plugin
# Navigate to parent folder of dify_neo4j
./dify plugin package dify_neo4j
Upload to Dify
Configure Credentials
neo4j+s://xxxxx.databases.neo4j.io or bolt://localhost:7687)Use in Workflows
{
"query": "MATCH (p:Person) RETURN p.name, p.age LIMIT 10",
"parameters": {}
}
{
"query": "MATCH (p:Person {name: $name}) RETURN p",
"parameters": {"name": "Alice"}
}
{
"query": "MATCH (n:Node) RETURN n LIMIT 5",
"database": "movies"
}
{
"query": "CREATE (p:Person {name: $name, age: $age}) RETURN p",
"parameters": {"name": "Bob", "age": 30},
"allow_write_queries": true
}
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| query | string | Yes | - | Cypher query to execute |
| parameters | object | No | {} | Query parameters (JSON object) |
| database | string | No | null | Target database name |
| max_records | number | No | 1000 | Maximum records to return |
| allow_write_queries | boolean | No | false | Enable write operations |
When using the plugin with AI agents, provide the graph schema as context:
Provide your LLM with:
- Node labels and their properties
- Relationship types
- Constraints and indexes
For complex queries on large graphs:
# ✅ GOOD - Parameterized
MATCH (p:Person {name: $name}) RETURN p
# ❌ BAD - String concatenation
MATCH (p:Person {name: 'Alice'}) RETURN p
allow_write_queries disabled by defaultSee SECURITY.md for comprehensive security documentation including:
This plugin: