Codex with IDrive® e2 MCP
IDrive® e2 MCP connects your IDrive® e2 object storage with AI assistants and applications using the open Model Context Protocol (MCP) standard. It enables compatible AI clients to securely access and work with your data using natural language, eliminating the need for custom integrations, scripts, or manual workflows. This guide explains how to connect Codex with IDrive® e2 storage using the hosted MCP.
Prerequisites
- An active IDrive® e2 account.
- Access to a Codex account.
Reference Architecture
Configure Codex for IDrive® e2 Hosted MCP
- Login to Codex and go to Plugins.

- Search for the IDrive e2 plugin.

- Click Install. You will be redirected to the IDrive® e2 web console.

- Click Sign in and choose any of the following methods.
- Enter your IDrive® e2 account email address and password
- Or you can proceed with Google Sign In
- Complete MFA if configured for your IDrive® e2 account.

- Set session timeout duration and access permission.

- Once authenticated, you will be redirected to Codex. Click Try Now.

- You can now use natural language prompts to interact with IDrive® e2 storage.
Connect the IDrive® e2 Hosted MCP Server to Codex CLI
You can connect the IDrive® e2 Hosted Model Context Protocol (MCP) server to Codex CLI using OAuth authentication.
- Add the IDrive® e2 MCP Server by executing the following command.
codex mcp add idrive-s3 \
--url https://mcp.idrivee2.com/s3 - Authenticate with IDrive® e2
After executing the command, Codex automatically detects that the MCP server uses OAuth authentication and initiates the sign-in flow. Your default web browser opens and you are redirected to the IDrive® e2 sign-in page.- Sign in using your IDrive® e2 credentials or choose Google Sign In.
- Complete MFA if configured for your IDrive® e2 account.
- Set session timeout duration and access permission.
- Click Authorize to grant Codex access to your IDrive® e2 account.
- After authorization, you are redirected back to Codex, which securely stores the OAuth credentials.
You can now start using the IDrive® e2 MCP tools from within Codex CLI.