Skip to content

Commit ce9dd00

Browse files
chore: add security note about logPath and exportsPath
1 parent 7d74b29 commit ce9dd00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CONFIGURATION.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ When using the `disk` logger, log files are stored in:
8484

8585
You can override the log directory with the `logPath` option.
8686

87+
> **🔒 Security Note:** When configuring a custom `logPath`, ensure the directory is owned and writable only by the user running the MongoDB MCP server process. On Linux/macOS, use `chmod 700` and verify ownership with `chown`. On Windows, restrict write permissions to the service account only.
88+
8789
### Disabled Tools
8890

8991
You can disable specific tools or categories of tools by using the `disabledTools` option. This option accepts an array of strings,
@@ -153,6 +155,8 @@ The data exported by the `export` tool is temporarily stored in the configured `
153155
- **Windows:** `%LOCALAPPDATA%\mongodb\mongodb-mcp\exports`
154156
- **macOS/Linux:** `~/.mongodb/mongodb-mcp/exports`
155157

158+
> **🔒 Security Note:** When configuring a custom `exportsPath`, ensure the directory is owned and writable only by the user running the MongoDB MCP server process. Exported data may contain sensitive information from your database. On Linux/macOS, use `chmod 700` and verify ownership with `chown`. On Windows, restrict write permissions to the service account only.
159+
156160
The `exportTimeoutMs` configuration controls the time after which the exported data is considered expired and eligible for cleanup. By default, exports expire after 5 minutes (300000ms).
157161

158162
The `exportCleanupIntervalMs` configuration controls how frequently the cleanup process runs to remove expired export files. By default, cleanup runs every 2 minutes (120000ms).

0 commit comments

Comments
 (0)