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

  1. An active IDrive® e2 account.
  2. Access to a Codex account.

Reference Architecture

IDrive e2 mcp guides

Configure Codex for IDrive® e2 Hosted MCP

  1. Login to Codex and go to Plugins.
    idrive e2 mcp guides
  2. Search for the IDrive e2 plugin.
    idrive e2 mcp guides
  3. Click Install. You will be redirected to the IDrive® e2 web console.
    IDrive e2 mcp guides
  4. Click Sign in and choose any of the following methods.
    1. Enter your IDrive® e2 account email address and password
    2. Or you can proceed with Google Sign In
  5. Complete MFA if configured for your IDrive® e2 account.
    idrive e2 mcp guides
  6. Set session timeout duration and access permission.
    idrive e2 mcp guides
  7. Once authenticated, you will be redirected to Codex. Click Try Now.
    idrive e2 mcp guides
  8. 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.

  1. Add the IDrive® e2 MCP Server by executing the following command.
    codex mcp add idrive-s3 \
    --url https://mcp.idrivee2.com/s3
  2. 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.
    1. Sign in using your IDrive® e2 credentials or choose Google Sign In.
    2. Complete MFA if configured for your IDrive® e2 account.
    3. Set session timeout duration and access permission.
    4. Click Authorize to grant Codex access to your IDrive® e2 account.
  3. 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.