Skip to content

Commit 99b034d

Browse files
committed
prep v0.2.3 release
1 parent c6e6717 commit 99b034d

File tree

3 files changed

+55
-9
lines changed

3 files changed

+55
-9
lines changed

servers/mcp-neo4j-cypher/README.md

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,25 @@ The server offers these core tools:
3131
- No input required
3232
- Returns: JSON serialized list of node labels with two dictionaries: one for attributes and one for relationships
3333

34+
### 🏷️ Namespacing
35+
36+
The server supports namespacing to allow multiple Neo4j MCP servers to be used simultaneously. When a namespace is provided, all tool names are prefixed with the namespace followed by a hyphen (e.g., `mydb-read-neo4j-cypher`).
37+
38+
This is useful when you need to connect to multiple Neo4j databases or instances from the same session.
39+
3440
## 🔧 Usage with Claude Desktop
3541

3642
### 💾 Released Package
3743

3844
Can be found on PyPi https://pypi.org/project/mcp-neo4j-cypher/
3945

40-
Add the server to your `claude_desktop_config.json` with the database connection configuration through environment variables. You may also specify the transport method with cli arguments.
46+
Add the server to your `claude_desktop_config.json` with the database connection configuration through environment variables. You may also specify the transport method and namespace with cli arguments or environment variables.
4147

4248
```json
4349
"mcpServers": {
4450
"neo4j-aura": {
4551
"command": "uvx",
46-
"args": [ "[email protected].2", "--transport", "stdio" ],
52+
"args": [ "[email protected].3", "--transport", "stdio" ],
4753
"env": {
4854
"NEO4J_URI": "bolt://localhost:7687",
4955
"NEO4J_USERNAME": "neo4j",
@@ -54,14 +60,50 @@ Add the server to your `claude_desktop_config.json` with the database connection
5460
}
5561
```
5662

63+
#### Multiple Database Example
64+
65+
Here's an example of connecting to multiple Neo4j databases using namespaces:
66+
67+
```json
68+
{
69+
"mcpServers": {
70+
"movies-neo4j": {
71+
"command": "uvx",
72+
"args": [ "[email protected]", "--namespace", "movies" ],
73+
"env": {
74+
"NEO4J_URI": "neo4j+s://demo.neo4jlabs.com",
75+
"NEO4J_USERNAME": "recommendations",
76+
"NEO4J_PASSWORD": "recommendations",
77+
"NEO4J_DATABASE": "recommendations"
78+
}
79+
},
80+
"local-neo4j": {
81+
"command": "uvx",
82+
"args": [ "[email protected]" ],
83+
"env": {
84+
"NEO4J_URI": "bolt://localhost:7687",
85+
"NEO4J_USERNAME": "neo4j",
86+
"NEO4J_PASSWORD": "password",
87+
"NEO4J_DATABASE": "neo4j",
88+
"NEO4J_NAMESPACE": "local"
89+
}
90+
}
91+
}
92+
}
93+
```
94+
95+
In this setup:
96+
- The movies database tools will be prefixed with `movies-` (e.g., `movies-read-neo4j-cypher`)
97+
- The local database tools will be prefixed with `local-` (e.g., `local-get-neo4j-schema`)
98+
5799
Here is an example connection for the movie database with Movie, Person (Actor, Director), Genre, User and ratings:
58100

59101
```json
60102
{
61103
"mcpServers": {
62104
"movies-neo4j": {
63105
"command": "uvx",
64-
"args": [ "[email protected].2" ],
106+
"args": [ "[email protected].3" ],
65107
"env": {
66108
"NEO4J_URI": "neo4j+s://demo.neo4jlabs.com",
67109
"NEO4J_USERNAME": "recommendations",
@@ -83,13 +125,15 @@ Syntax with `--db-url`, `--username` and `--password` command line arguments is
83125
"neo4j": {
84126
"command": "uvx",
85127
"args": [
86-
128+
87129
"--db-url",
88130
"bolt://localhost",
89131
"--username",
90132
"neo4j",
91133
"--password",
92-
"<your-password>"
134+
"<your-password>",
135+
"--namespace",
136+
"mydb"
93137
]
94138
}
95139
}
@@ -102,7 +146,7 @@ Here is an example connection for the movie database with Movie, Person (Actor,
102146
"mcpServers": {
103147
"movies-neo4j": {
104148
"command": "uvx",
105-
"args": ["[email protected].2",
149+
"args": ["[email protected].3",
106150
"--db-url", "neo4j+s://demo.neo4jlabs.com",
107151
"--user", "recommendations",
108152
"--password", "recommendations",
@@ -125,6 +169,7 @@ Here is an example connection for the movie database with Movie, Person (Actor,
125169
"-e", "NEO4J_URI=bolt://host.docker.internal:7687",
126170
"-e", "NEO4J_USERNAME=neo4j",
127171
"-e", "NEO4J_PASSWORD=<your-password>",
172+
"-e", "NEO4J_NAMESPACE=mydb",
128173
"mcp/neo4j-cypher:latest"
129174
]
130175
}
@@ -177,7 +222,7 @@ uv pip install -e ".[dev]"
177222
"command": "uv",
178223
"args": [
179224
"--directory", "parent_of_servers_repo/servers/mcp-neo4j-cypher/src",
180-
"run", "mcp-neo4j-cypher", "--transport", "stdio"],
225+
"run", "mcp-neo4j-cypher", "--transport", "stdio", "--namespace", "dev"],
181226
"env": {
182227
"NEO4J_URI": "bolt://localhost",
183228
"NEO4J_USERNAME": "neo4j",
@@ -200,6 +245,7 @@ docker build -t mcp/neo4j-cypher:latest .
200245
docker run -e NEO4J_URI="bolt://host.docker.internal:7687" \
201246
-e NEO4J_USERNAME="neo4j" \
202247
-e NEO4J_PASSWORD="your-password" \
248+
-e NEO4J_NAMESPACE="mydb" \
203249
mcp/neo4j-cypher:latest
204250
```
205251

servers/mcp-neo4j-cypher/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-neo4j-cypher"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "A simple Neo4j MCP server"
55
readme = "README.md"
66
requires-python = ">=3.10"

servers/mcp-neo4j-cypher/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)