Environment Variables
You’ll need to provide the following environment variables for the MCP server connection:NEO4J_URL
: The URL of your Neo4j server (e.g.,bolt://host.docker.internal:7687
)NEO4J_USERNAME
: Neo4j username (e.g.,neo4j
)NEO4J_PASSWORD
: Neo4j password (e.g.,password
)
Steps
-
Install Meshagent CLI
-
Sign Up & Authenticate
Follow the instructions at Getting Started to sign up and authenticate with Meshagent. -
Start MCP Neo4j Cypher Service in a Room
- This command starts a Meshagent Room with the MCP Neo4j Cypher service available.
- Note: Rooms close if they go inactive.
-
Join a Chatbot to the Room
- Starts a chatbot in the Meshagent Room using the Neo4j Cypher toolkit.
- Multiple toolkits can be enabled in the same room.
- A link to the room will be provided in the output.
-
Try It Out!
- Visit the room link in your browser and interact with the MCP Server tools by sending messages to the agent.
Project Level Deployment
To make the Neo4j Cypher MCP server and chatbot available in every new Meshagent Room in your project (ideal for persistent, production-ready deployments):-
Deploy MCP Neo4j Cypher Service to the Project
-
Deploy the Chatbot Service
Tools Available
Interact with Neo4j using Cypher graph queries via these MCP tools:Summary
Tools provided by this Server | Short Description |
---|---|
get_neo4j_schema | List all node, their attributes and their relationships to other nodes in the Neo4j database. |
read_neo4j_cypher | Execute a read Cypher query on the Neo4j database. |
write_neo4j_cypher | Execute a write Cypher query on the Neo4j database. |
Tool Details
get_neo4j_schema
List all node, their attributes and their relationships to other nodes in the Neo4j database.
If this fails with a message that includes “Neo.ClientError.Procedure.ProcedureNotFound”, suggest that the user install and enable the APOC plugin.
read_neo4j_cypher
Execute a read Cypher query on the Neo4j database.
Parameter | Type | Description |
---|---|---|
query | string | The Cypher query to execute. |
params | string | (optional) The parameters for the query. |
write_neo4j_cypher
Execute a write Cypher query on the Neo4j database.
Parameter | Type | Description |
---|---|---|
query | string | The Cypher query to execute. |
params | string | (optional) The parameters for the query. |