File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -135,15 +135,16 @@ You may provide either a MongoDB connection string OR Atlas API credentials:
135135
136136``` shell
137137docker 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
144144docker run --rm -i \
145145 -e MDB_MCP_CONNECTION_STRING=" mongodb+srv://username:password@cluster.mongodb.net/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:password@cluster.mongodb.net/myDatabase" ,
193+ " -e" ,
194+ " MDB_MCP_READ_ONLY=true" ,
192195 " mongodb/mongodb-mcp-server:latest" ,
193- " --readOnly"
194196 ]
195197 }
196198 }
You can’t perform that action at this time.
0 commit comments