Skip to content

Commit 693af75

Browse files
authored
Update http examples to not bind to all interfaces (#136)
1 parent 9471249 commit 693af75

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ To run a server in HTTP mode, use the `--transport http` flag:
5656
mcp-neo4j-cypher --transport http
5757

5858
# Custom HTTP configuration
59-
mcp-neo4j-cypher --transport http --host 0.0.0.0 --port 8080 --path /api/mcp/
59+
mcp-neo4j-cypher --transport http --host 127.0.0.1 --port 8080 --path /api/mcp/
6060
```
6161

6262
Environment variables are also supported:
6363

6464
```bash
6565
export NEO4J_TRANSPORT=http
66-
export NEO4J_MCP_SERVER_HOST=0.0.0.0
66+
export NEO4J_MCP_SERVER_HOST=127.0.0.1
6767
export NEO4J_MCP_SERVER_PORT=8080
6868
export NEO4J_MCP_SERVER_PATH=/api/mcp/
6969
mcp-neo4j-cypher

servers/mcp-neo4j-cloud-aura-api/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@ The server supports HTTP transport for web-based deployments and microservices:
173173
mcp-neo4j-aura-manager --transport http
174174

175175
# Custom HTTP configuration
176-
mcp-neo4j-aura-manager --transport http --host 0.0.0.0 --port 8080 --path /api/mcp/
176+
mcp-neo4j-aura-manager --transport http --host 127.0.0.1 --port 8080 --path /api/mcp/
177177
```
178178

179179
Environment variables for HTTP configuration:
180180

181181
```bash
182182
export NEO4J_TRANSPORT=http
183-
export NEO4J_MCP_SERVER_HOST=0.0.0.0
183+
export NEO4J_MCP_SERVER_HOST=127.0.0.1
184184
export NEO4J_MCP_SERVER_PORT=8080
185185
export NEO4J_MCP_SERVER_PATH=/api/mcp/
186186
mcp-neo4j-aura-manager

servers/mcp-neo4j-cypher/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ For custom HTTP configurations beyond the defaults:
107107

108108
```bash
109109
# Custom HTTP configuration
110-
mcp-neo4j-cypher --transport http --server-host 0.0.0.0 --server-port 8080 --server-path /api/mcp/
110+
mcp-neo4j-cypher --transport http --server-host 127.0.0.1 --server-port 8080 --server-path /api/mcp/
111111

112112
# Or using environment variables
113113
export NEO4J_TRANSPORT=http
114-
export NEO4J_MCP_SERVER_HOST=0.0.0.0
114+
export NEO4J_MCP_SERVER_HOST=127.0.0.1
115115
export NEO4J_MCP_SERVER_PORT=8080
116116
export NEO4J_MCP_SERVER_PATH=/api/mcp/
117117
mcp-neo4j-cypher
@@ -176,7 +176,7 @@ Syntax with `--db-url`, `--username`, `--password` and other command line argume
176176
"--transport",
177177
"sse",
178178
"--server-host",
179-
"0.0.0.0",
179+
"127.0.0.1",
180180
"--server-port",
181181
"8000"
182182
"--server-path",

servers/mcp-neo4j-data-modeling/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@ The server supports HTTP transport for web-based deployments and microservices:
178178
mcp-neo4j-data-modeling --transport http
179179

180180
# Custom HTTP configuration
181-
mcp-neo4j-data-modeling --transport http --host 0.0.0.0 --port 8080 --path /api/mcp/
181+
mcp-neo4j-data-modeling --transport http --host 127.0.0.1 --port 8080 --path /api/mcp/
182182
```
183183

184184
Environment variables for HTTP configuration:
185185

186186
```bash
187187
export MCP_TRANSPORT=http
188-
export NEO4J_MCP_SERVER_HOST=0.0.0.0
188+
export NEO4J_MCP_SERVER_HOST=127.0.0.1
189189
export NEO4J_MCP_SERVER_PORT=8080
190190
export NEO4J_MCP_SERVER_PATH=/api/mcp/
191191
mcp-neo4j-data-modeling

servers/mcp-neo4j-memory/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ The server supports HTTP transport for web-based deployments and microservices:
156156
mcp-neo4j-memory --transport http
157157

158158
# Custom HTTP configuration
159-
mcp-neo4j-memory --transport http --host 0.0.0.0 --port 8080 --path /api/mcp/
159+
mcp-neo4j-memory --transport http --host 127.0.0.1 --port 8080 --path /api/mcp/
160160
```
161161

162162
Environment variables for HTTP configuration:
163163

164164
```bash
165165
export NEO4J_TRANSPORT=http
166-
export NEO4J_MCP_SERVER_HOST=0.0.0.0
166+
export NEO4J_MCP_SERVER_HOST=127.0.0.1
167167
export NEO4J_MCP_SERVER_PORT=8080
168168
export NEO4J_MCP_SERVER_PATH=/api/mcp/
169169
mcp-neo4j-memory

0 commit comments

Comments
 (0)