Skip to content

Commit 87824ca

Browse files
committed
update docker
1 parent b379b23 commit 87824ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,16 @@ You may provide either a MongoDB connection string OR Atlas API credentials:
135135

136136
```shell
137137
docker run --rm -i \
138-
mongodb/mongodb-mcp-server:latest --readOnly
138+
mongodb/mongodb-mcp-server:latest
139139
```
140140

141141
##### Option B: With MongoDB connection string
142142

143143
```shell
144144
docker run --rm -i \
145145
-e MDB_MCP_CONNECTION_STRING="mongodb+srv://username:[email protected]/myDatabase" \
146-
mongodb/mongodb-mcp-server:latest --readOnly
146+
-e MDB_MCP_READ_ONLY="true" \
147+
mongodb/mongodb-mcp-server:latest
147148
```
148149

149150
##### Option C: With Atlas API credentials
@@ -189,8 +190,9 @@ With connection string:
189190
"-i",
190191
"-e",
191192
"MDB_MCP_CONNECTION_STRING=mongodb+srv://username:[email protected]/myDatabase",
193+
"-e",
194+
"MDB_MCP_READ_ONLY=true",
192195
"mongodb/mongodb-mcp-server:latest",
193-
"--readOnly"
194196
]
195197
}
196198
}

0 commit comments

Comments
 (0)