You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,7 +285,7 @@ The MongoDB MCP Server can be configured using multiple methods, with the follow
285
285
|`connectionString`| MongoDB connection string for direct database connections. Optional, if not set, you'll need to call the `connect` tool before interacting with MongoDB data. |
286
286
|`logPath`| Folder to store logs. |
287
287
|`disabledTools`| An array of tool names, operation types, and/or categories of tools that will be disabled. |
288
-
|`readOnly`| When set to true, only allows readand metadata operation types, disabling create/update/delete operations.|
288
+
|`readOnly`| When set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations. |
289
289
|`indexCheck`| When set to true, enforces that query operations must use an index, rejecting queries that perform a collection scan. |
290
290
|`telemetry`| When set to disabled, disables telemetry collection. |
291
291
@@ -318,10 +318,11 @@ Operation types:
318
318
-`delete` - Tools that delete resources, such as delete document, drop collection, etc.
319
319
-`read` - Tools that read resources, such as find, aggregate, list clusters, etc.
320
320
-`metadata` - Tools that read metadata, such as list databases, list collections, collection schema, etc.
321
+
-`connect` - Tools that allow you to connect or switch the connection to a MongoDB instance. If this is disabled, you will need to provide a connection string through the config when starting the server.
321
322
322
323
#### Read-Only Mode
323
324
324
-
The `readOnly` configuration option allows you to restrict the MCP server to only use tools with "read" and "metadata" operation types. When enabled, all tools that have "create", "update" or "delete" operation types will not be registered with the server.
325
+
The `readOnly` configuration option allows you to restrict the MCP server to only use tools with "read", "connect", and "metadata" operation types. When enabled, all tools that have "create", "update" or "delete" operation types will not be registered with the server.
325
326
326
327
This is useful for scenarios where you want to provide access to MongoDB data for analysis without allowing any modifications to the data or infrastructure.
0 commit comments