How to integrate Control d MCP with Codex

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With Control d MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

Control d logoControl d
Api Key

Control d is a customizable DNS filtering and traffic redirection platform. It helps you manage internet access, enforce policies, and monitor usage across devices and networks.

54 Tools

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With Control d MCP integration, you can draft, triage, summarise emails, and much more, all without leaving the terminal or the app, whichever you prefer.

Also integrate Control d with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 1000+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install Control d MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

What is the Control d MCP server, and what's possible with it?

The Control d MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Control d account. It provides structured and secure access to your DNS filtering and device management environment, so your agent can perform actions like managing devices, enforcing policies, retrieving analytics, and monitoring network access on your behalf.

  • Device inventory management: Easily list all devices on your account or remove specific devices by their identifier for streamlined device control.
  • Profile and rule administration: Direct your agent to delete profiles, custom rules, or schedules—helping you maintain and enforce up-to-date network policies.
  • Network access monitoring: Retrieve a list of known access IPs to keep tabs on which endpoints are connecting to your network infrastructure.
  • Analytics endpoints discovery: Quickly fetch available analytics storage regions and endpoints so you can integrate and analyze DNS traffic data efficiently.
  • Organization details access: Have the agent fetch and present your organization's account details for easy reference and auditing.

Conclusion

You've successfully integrated Control d with Codex using Composio's MCP server. Now you can interact with Control d directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for Control d operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 1000+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various Control d operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities
TOOLS

Supported Tools

Every Control d action and event your agent gets out of the box.

Delete Device by ID

Permanently delete a Control-D device/endpoint by its ID.

Delete Profile

Permanently deletes a Control D profile by its unique identifier (PK).

Delete Profile Rule by Rule ID

Delete a custom DNS rule from a Control D profile by its rule identifier (hostname/domain).

Delete Rule from Folder

Delete a custom DNS rule from a specific folder in a Control D profile.

Delete Profile Schedule

Tool to delete a specific schedule within a profile.

List Known Access IPs

List up to the latest 50 IP addresses that were used to query against a specific Device (resolver).

Get Analytics Endpoints

Tool to list analytics storage regions and their endpoints.

Get Analytics Levels

Tool to retrieve available analytics log levels for Control D devices.

Get Billing Payments

Tool to retrieve billing history of all payments made.

Get Billing Products

Retrieve all products currently activated on the Control D account.

Get Devices

Lists all Control D devices (endpoints) associated with the account.

Get Device Types

List all allowed device types in Control D.

Get IP

Tool to retrieve the current IP address and datacenter information for the API request.

Get Network Stats

Tool to retrieve network stats on available services in different POPs (Points of Presence).

Get Organization Members

Tool to view organization membership.

Get Organization Details

Tool to view the authenticated organization's details.

Get Sub-Organizations

Tool to view sub-organizations and their details.

Get Profiles

Tool to list all profiles associated with the authenticated account.

Get Profile Options

Retrieves all available configuration options for DNS profiles in Control D.

Get Profile by ID

Tool to retrieve details of a specific profile by its ID.

Get Profile Analytics

Retrieve analytics data for a Control D profile.

Get Profile Analytics Logs

Retrieves DNS query activity logs for a specific Control D profile.

Get Analytics Log Entry

Tool to retrieve a specific analytics log entry by its ID.

Get Profile Analytics Summary

Tool to fetch a summary of analytics data for a given profile.

Get Profile Analytics Top Domains

Tool to fetch top domains accessed within a specific profile.

Get Profile Top Services

Tool to fetch top services accessed within a profile.

Get Profile Filters

List all native (Control D curated) filters for a profile and their current states.

List External Filters for Profile

Tool to list third-party filters for a specific profile.

Get Profile Folders

List all rule folders (groups) within a Control D profile.

List Custom DNS Rules for Profile

Retrieve custom DNS rules for a Control D profile.

Get Specific Rule in Folder

Tool to retrieve a specific rule within a folder by its ID.

Get Profile Schedules

Tool to list schedules associated with a specific profile.

Get Profile Schedule

Tool to retrieve a specific schedule by its ID within a profile.

Get Profile Services

Tool to list services associated with a specific profile.

Get Proxies

Tool to retrieve the list of usable proxy locations that traffic can be redirected through.

Get Service Categories

List all available service categories in Control D.

List Services by Category

Retrieves all services within a specific ControlD service category.

Get Users

Retrieve the authenticated user's account information from Control D.

Create Device

Create a new device (DNS endpoint) in Control D.

Create Profile

Create a new blank profile or clone an existing one.

Create Custom DNS Rule

Create custom DNS rules for a profile to control domain resolution.

Create Custom Rules in Profile Folder

Tool to create custom rules within a specific folder for a profile.

Create Profile Schedule

Create a new time-based schedule within a Control D profile.

Modify Device

Modify an existing Control D device's settings.

Modify Organization

Modify organization settings such as name, contact details, website, and device limits.

Modify Profile

Modify an existing profile by its ID.

Bulk Update Profile Filters

Tool to bulk update filters on a specific profile.

Update External Filters for Profile

Tool to update external filters for a specific profile.

Modify Profile Filter

Modify the enabled state of a specific native filter on a profile.

Modify Custom Rule for Profile

Modify an existing custom DNS rule for a profile in Control D.

Update Custom Rule by Rule ID

Tool to update an existing custom rule by its ID.

Move Profile Rule to Folder

Tool to move a specific custom rule into a different folder.

Update Profile Schedule

Tool to update a specific schedule within a profile.

Modify Service for Profile

Tool to modify a specific service rule for a profile.

FAQ

Frequently asked questions

With a standalone Control d MCP server, the agents and LLMs can only access a fixed set of Control d tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Control d and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Codex fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Control d tools.

Yes, absolutely. You can configure which Control d scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Control d data and credentials are handled as safely as possible.

Start with Control d.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Control d tool your agent needs.Free to start.

Start building