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
@@ -268,7 +268,7 @@ The MongoDB MCP Server can be configured using multiple methods, with the follow
268
268
|`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. |
269
269
|`logPath`| Folder to store logs. |
270
270
|`disabledTools`| An array of tool names, operation types, and/or categories of tools that will be disabled. |
271
-
|`readOnly`| When set to true, only allows read and metadata operation types, disabling create/update/delete operations. |
271
+
|`readOnly`| When set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations. |
272
272
|`indexCheck`| When set to true, enforces that query operations must use an index, rejecting queries that perform a collection scan. |
273
273
|`telemetry`| When set to disabled, disables telemetry collection. |
274
274
@@ -301,10 +301,11 @@ Operation types:
301
301
-`delete` - Tools that delete resources, such as delete document, drop collection, etc.
302
302
-`read` - Tools that read resources, such as find, aggregate, list clusters, etc.
303
303
-`metadata` - Tools that read metadata, such as list databases, list collections, collection schema, etc.
304
+
-`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.
304
305
305
306
#### Read-Only Mode
306
307
307
-
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.
308
+
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.
308
309
309
310
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