@@ -244,8 +244,8 @@ Set environment variables with the prefix `MDB_MCP_` followed by the option name
244
244
245
245
``` shell
246
246
# Set Atlas API credentials (via Service Accounts)
247
- export MDB_MCP_API_CLIENT_ID=" your-atlas-client-id"
248
- export MDB_MCP_API_CLIENT_SECRET=" your-atlas-client-secret"
247
+ export MDB_MCP_API_CLIENT_ID=" your-atlas-service-accounts- client-id"
248
+ export MDB_MCP_API_CLIENT_SECRET=" your-atlas-service-accounts- client-secret"
249
249
250
250
# Set a custom MongoDB connection string
251
251
export MDB_MCP_CONNECTION_STRING=
" mongodb+srv://username:[email protected] /myDatabase"
@@ -281,8 +281,8 @@ export MDB_MCP_LOG_PATH="/path/to/logs"
281
281
"command" : " npx" ,
282
282
"args" : [" -y" , " mongodb-mcp-server" ],
283
283
"env" : {
284
- "MDB_MCP_API_CLIENT_ID" : " your-atlas-client-id" ,
285
- "MDB_MCP_API_CLIENT_SECRET" : " your-atlas-client-secret"
284
+ "MDB_MCP_API_CLIENT_ID" : " your-atlas-service-accounts- client-id" ,
285
+ "MDB_MCP_API_CLIENT_SECRET" : " your-atlas-service-accounts- client-secret"
286
286
}
287
287
}
288
288
}
@@ -294,7 +294,7 @@ export MDB_MCP_LOG_PATH="/path/to/logs"
294
294
Pass configuration options as command-line arguments when starting the server:
295
295
296
296
``` shell
297
- npx -y mongodb-mcp-server --apiClientId=
" your-atlas-client-id" --apiClientSecret=
" your-atlas-client-secret" --connectionString=
" mongodb+srv://username:[email protected] /myDatabase" --logPath=/path/to/logs
297
+ npx -y mongodb-mcp-server --apiClientId=
" your-atlas-service-accounts- client-id" --apiClientSecret=
" your-atlas-service-accounts -client-secret" --connectionString=
" mongodb+srv://username:[email protected] /myDatabase" --logPath=/path/to/logs
298
298
```
299
299
300
300
#### MCP configuration file examples
@@ -328,9 +328,9 @@ npx -y mongodb-mcp-server --apiClientId="your-atlas-client-id" --apiClientSecret
328
328
" -y" ,
329
329
" mongodb-mcp-server" ,
330
330
" --apiClientId" ,
331
- " your-atlas-client-id" ,
331
+ " your-atlas-service-accounts- client-id" ,
332
332
" --apiClientSecret" ,
333
- " your-atlas-client-secret"
333
+ " your-atlas-service-accounts- client-secret"
334
334
]
335
335
}
336
336
}
0 commit comments