Codex with IDrive® MCP

Codex with IDrive® MCP

Codex with IDrive MCP

IDrive MCP connects your IDrive account with Codex using the open Model Context Protocol (MCP) standard, enabling Codex to access supported IDrive backup capabilities through standardized tools. This integration lets you manage supported backup tasks using natural language, without requiring custom integrations or scripts. This guide explains how to connect Codex with IDrive MCP and use it to perform supported backup operations.

Prerequisites

  • An active IDrive account.
  • Access to ChatGPT Codex and permission to add custom MCP servers/connectors, where required.

Reference Architecture

IDrive MCP architecture

Configure Codex with IDrive MCP

  1. Sign in to Codex and go to Settings.
    Codex Settings menu
  2. Select Integrations > Plugins.
    Codex Plugins settings
  3. Select MCPs.
  4. Click + Add and select Add MCP server.
    Add MCP server
  5. In the Add MCP server dialog box, provide the following details:
    1. Name: IDrive MCP
    2. Type: Streamable HTTP
    3. URL: https://mcp.idrive.com/mcp
  6. IDrive MCP configuration
  7. Click Save.
  8. Click Authenticate.
    Authenticate IDrive MCP
    You will be redirected to the IDrive authorization page. Sign in to your IDrive account.
    IDrive Codex sign-in
  9. On the Session Settings page, configure the following:
    1. Session timeout: Set how long the authorization remains valid. The timeout can be specified in hours or days.
    2. Permission: Select Read-Only or Read-Write access.
  10. Click Authorize Access.
    IDrive session settings
    After authorization is complete, you will be redirected back to Codex.

IDrive MCP is now connected to Codex. You can start using the supported IDrive tools through Codex to access supported IDrive account, device, and connectivity capabilities.

Configure Codex CLI with IDrive MCP

You can connect the IDrive MCP server to Codex CLI using OAuth authentication.

  1. Add the IDrive MCP server
    Execute the following command in your terminal:
    codex mcp add IDrive \
    --url https://mcp.idrive.com/mcp
  2. Authenticate with IDrive

    After executing the command, Codex CLI detects that the MCP server requires OAuth authentication and initiates the sign-in flow. Your default web browser opens and redirects you to the IDrive authorization page.

    1. Sign in to your IDrive account.
    2. On the Session Settings page, configure the session timeout and access permission.
    3. Select Read-Only or Read-Write access.
    4. Click Authorize Access to grant Codex CLI access to your IDrive account.
  3. Complete the connection
    After authorization, you are redirected back to Codex CLI, which securely stores the OAuth credentials.

You can now use the supported IDrive MCP tools through Codex CLI to access your IDrive account, device, and connectivity capabilities.

1-818-485-4333