Connect with ChatGPT Codex (CLI)
Prerequisites
To set up the connector
- Set the environment variable:
macOS / Linux
export DROPBOX_MCP_TOKEN="<your-access-token>"
Windows (PowerShell)
setx DROPBOX_MCP_TOKEN "<your-access-token>"
2. Add the connector:
codex mcp add dropbox-mcp \
--url https://mcp.dropbox.com/mcp \
--bearer-token-env-var DROPBOX_MCP_TOKEN
3. Update the OAuth token.
Update the environment variable and restart Codex or your terminal:
macOS / Linux
export DROPBOX_MCP_TOKEN="<your-new-access-token>"
Windows
setx DROPBOX_MCP_TOKEN "<your-new-access-token>"