Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MDB_MCP_LOGGERS | No | Comma separated values, possible values are mcp, disk and stderr. | disk,mcp |
| MDB_MCP_LOG_PATH | No | Folder to store logs. | |
| MDB_MCP_HTTP_HOST | No | Host to bind the http server. | 127.0.0.1 |
| MDB_MCP_HTTP_PORT | No | Port number for HTTP server. | 3000 |
| MDB_MCP_READ_ONLY | No | When set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations. | false |
| MDB_MCP_TELEMETRY | No | When set to disabled, disables telemetry collection. | enabled |
| MDB_MCP_TRANSPORT | No | Either 'stdio' or 'http'. | stdio |
| MDB_VOYAGE_API_KEY | No | API key for communicating with Voyage AI. Used for generating embeddings for Vector search. | |
| MDB_MCP_INDEX_CHECK | No | When set to true, enforces that query operations must use an index, rejecting queries that perform a collection scan. | false |
| MDB_MCP_EXPORTS_PATH | No | Folder to store exported data files. | |
| MDB_MCP_API_CLIENT_ID | No | Atlas API client ID for authentication. Required for running Atlas tools. | |
| MDB_MCP_DISABLED_TOOLS | No | An array of tool names, operation types, and/or categories of tools that will be disabled. | |
| MDB_MCP_IDLE_TIMEOUT_MS | No | Idle timeout for a client to disconnect (only applies to http transport). | 600000 |
| MDB_MCP_API_CLIENT_SECRET | No | Atlas API client secret for authentication. Required for running Atlas tools. | |
| MDB_MCP_CONNECTION_STRING | No | MongoDB connection string for direct database connections. Optional, if not set, you'll need to call the connect tool before interacting with MongoDB data. | |
| MDB_MCP_EXPORT_TIMEOUT_MS | No | Time in milliseconds after which an export is considered expired and eligible for cleanup. | 300000 |
| MDB_MCP_MAX_BYTES_PER_QUERY | No | The maximum size in bytes for results from a find or aggregate tool call. | 16777216 |
| MDB_MCP_MAX_DOCUMENTS_PER_QUERY | No | The maximum number of documents that can be returned by a find or aggregate tool call. | 100 |
| MDB_MCP_NOTIFICATION_TIMEOUT_MS | No | Notification timeout for a client to be aware of disconnect (only applies to http transport). | 540000 |
| MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS | No | Time in milliseconds between export cleanup cycles that remove expired export files. | 120000 |
| MDB_MCP_CONFIRMATION_REQUIRED_TOOLS | No | An array of tool names that require user confirmation before execution. | create-access-list,create-db-user,drop-database,drop-collection,delete-many |
| MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS | No | Time in milliseconds that temporary database users created when connecting to MongoDB Atlas clusters will remain active before being automatically deleted. | 14400000 |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |