@@ -15,44 +15,40 @@ The server offers these core tools:
1515 - Execute Cypher read queries to read data from the database
1616 - Input:
1717 - ` query ` (string): The Cypher query to execute
18- - Returns: Query results as array of objects
18+ - ` params ` (dictionary, optional): Parameters to pass to the Cypher query
19+ - Returns: Query results as JSON serialized array of objects
1920
2021- ` write-neo4j-cypher `
2122 - Execute updating Cypher queries
2223 - Input:
2324 - ` query ` (string): The Cypher update query
24- - Returns: A result summary counter with ` { nodes_updated: number, relationships_created: number, ... } `
25+ - ` params ` (dictionary, optional): Parameters to pass to the Cypher query
26+ - Returns: A JSON serialized result summary counter with ` { nodes_updated: number, relationships_created: number, ... } `
2527
2628#### 🕸️ Schema Tools
2729- ` get-neo4j-schema `
2830 - Get a list of all nodes types in the graph database, their attributes with name, type and relationships to other node types
2931 - No input required
30- - Returns: List of node label with two dictionaries one for attributes and one for relationships
32+ - Returns: JSON serialized list of node labels with two dictionaries: one for attributes and one for relationships
3133
3234## 🔧 Usage with Claude Desktop
3335
3436### 💾 Released Package
3537
3638Can be found on PyPi https://pypi.org/project/mcp-neo4j-cypher/
3739
38- Add the server to your ` claude_desktop_config.json ` with configuration of:
39-
40- * db-url
41- * username
42- * password
43-
44-
45- Alternatively, you can set environment variables:
40+ Add the server to your ` claude_desktop_config.json ` with configuration through environment variables:
4641
4742``` json
4843"mcpServers" : {
4944 "neo4j-aura" : {
5045 "command" : " uvx" ,
5146 "args" : [ " mcp-neo4j-cypher==0.1.2" ],
5247 "env" : {
53- "NEO4J_URL " : " bolt://localhost:7687" ,
48+ "NEO4J_URI " : " bolt://localhost:7687" ,
5449 "NEO4J_USERNAME" : " neo4j" ,
55- "NEO4J_PASSWORD" : " <your-password>"
50+ "NEO4J_PASSWORD" : " <your-password>" ,
51+ "NEO4J_DATABASE" : " neo4j"
5652 }
5753 }
5854}
@@ -66,17 +62,17 @@ Here is an example connection for the movie database with Movie, Person (Actor,
6662 "movies-neo4j" : {
6763 "command" : " uvx" ,
6864 "args" : [" mcp-neo4j-cypher==0.1.2" ],
69- "env" : {
70- "NEO4J_URL " : " neo4j+s://demo.neo4jlabs.com" ,
71- "NEO4J_USERNAME" : " recommendations" ,
72- "NEO4J_PASSWORD" : " recommendations"
73- }
65+ "env" : {
66+ "NEO4J_URI " : " neo4j+s://demo.neo4jlabs.com" ,
67+ "NEO4J_USERNAME" : " recommendations" ,
68+ "NEO4J_PASSWORD" : " recommendations"
69+ }
7470 }
7571 }
7672}
7773```
7874
79- Syntax with ` --db-url ` , ` --username ` and ` --password ` was supported but will be removed in future versions :
75+ Syntax with ` --db-url ` , ` --username ` and ` --password ` command line arguments is still supported but environment variables are preferred :
8076
8177<details >
8278 <summary >Legacy Syntax</summary >
@@ -124,7 +120,7 @@ Here is an example connection for the movie database with Movie, Person (Actor,
124120 "args" : [
125121 " run" ,
126122 " --rm" ,
127- " -e" , " NEO4J_URL =bolt://host.docker.internal:7687" ,
123+ " -e" , " NEO4J_URI =bolt://host.docker.internal:7687" ,
128124 " -e" , " NEO4J_USERNAME=neo4j" ,
129125 " -e" , " NEO4J_PASSWORD=<your-password>" ,
130126 " mcp/neo4j-cypher:0.1.2"
@@ -164,6 +160,17 @@ source .venv/bin/activate # On Unix/macOS
164160uv pip install -e " .[dev]"
165161```
166162
163+ 3 . Run Integration Tests
164+
165+ ** CLOSE ANY LOCAL NEO4J DATABASES BEFORE RUNNING TESTS**
166+ * Tests will deploy a local docker container containing the test Neo4j instance.
167+ * However if a Neo4j database is running locally, then the test driver may connect here instead.
168+ * ** This will result in you local Neo4j database having its contents erased.**
169+
170+ ``` bash
171+ ./tests.sh
172+ ```
173+
167174### 🔧 Development Configuration
168175
169176``` json
@@ -175,7 +182,7 @@ uv pip install -e ".[dev]"
175182 " --directory" , " parent_of_servers_repo/servers/mcp-neo4j-cypher/src" ,
176183 " run" , " mcp-neo4j-cypher" ],
177184 "env" : {
178- "NEO4J_URL " : " bolt://localhost" ,
185+ "NEO4J_URI " : " bolt://localhost" ,
179186 "NEO4J_USERNAME" : " neo4j" ,
180187 "NEO4J_PASSWORD" : " <your-password>"
181188 }
@@ -192,7 +199,7 @@ Build and run the Docker container:
192199docker build -t mcp/neo4j-cypher:latest .
193200
194201# Run the container
195- docker run -e NEO4J_URL =" bolt://host.docker.internal:7687" \
202+ docker run -e NEO4J_URI =" bolt://host.docker.internal:7687" \
196203 -e NEO4J_USERNAME=" neo4j" \
197204 -e NEO4J_PASSWORD=" your-password" \
198205 mcp/neo4j-cypher:latest
0 commit comments