The MongoDB MCP Server supports connections to MongoDB deployments and Atlas clusters through proxies.
MCP Environment Variables
To establish a connection with proxy configurations, use the following variables when configuring environment variables for the MCP server:
Variable | Description | Example | |
|---|---|---|---|
| Proxy connections to | The following example sets the | |
| Proxy connections to If you also set | The following example sets the | |
| Proxy connections to If you also set | The following example sets the | |
| Proxy all connections to the specified URL. | The following example sets the | |
| Comma-separated list of hostnames that should be excluded from proxying. | The following example sets the |
Note
The MongoDB MCP Server supports the following proxy types:
Socks5 proxies
HTTP proxies
CONNECT proxies
PAC URLs that resolve to one of the previously listed proxies