How to integrate Control d MCP with Codex

Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Control d logo
Codex logo
divider

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.

Supported Tools & Triggers

Tools
Delete Device by IDPermanently delete a Control-D device/endpoint by its ID.
Delete ProfilePermanently deletes a Control D profile by its unique identifier (PK).
Delete Profile Rule by Rule IDDelete a custom DNS rule from a Control D profile by its rule identifier (hostname/domain).
Delete Rule from FolderDelete a custom DNS rule from a specific folder in a Control D profile.
Delete Profile ScheduleTool to delete a specific schedule within a profile.
List Known Access IPsList up to the latest 50 IP addresses that were used to query against a specific Device (resolver).
Get Analytics EndpointsTool to list analytics storage regions and their endpoints.
Get Analytics LevelsTool to retrieve available analytics log levels for Control D devices.
Get Billing PaymentsTool to retrieve billing history of all payments made.
Get Billing ProductsRetrieve all products currently activated on the Control D account.
Get DevicesLists all Control D devices (endpoints) associated with the account.
Get Device TypesList all allowed device types in Control D.
Get IPTool to retrieve the current IP address and datacenter information for the API request.
Get Network StatsTool to retrieve network stats on available services in different POPs (Points of Presence).
Get Organization MembersTool to view organization membership.
Get Organization DetailsTool to view the authenticated organization's details.
Get Sub-OrganizationsTool to view sub-organizations and their details.
Get ProfilesTool to list all profiles associated with the authenticated account.
Get Profile OptionsRetrieves all available configuration options for DNS profiles in Control D.
Get Profile by IDTool to retrieve details of a specific profile by its ID.
Get Profile AnalyticsRetrieve analytics data for a Control D profile.
Get Profile Analytics LogsRetrieves DNS query activity logs for a specific Control D profile.
Get Analytics Log EntryTool to retrieve a specific analytics log entry by its ID.
Get Profile Analytics SummaryTool to fetch a summary of analytics data for a given profile.
Get Profile Analytics Top DomainsTool to fetch top domains accessed within a specific profile.
Get Profile Top ServicesTool to fetch top services accessed within a profile.
Get Profile FiltersList all native (Control D curated) filters for a profile and their current states.
List External Filters for ProfileTool to list third-party filters for a specific profile.
Get Profile FoldersList all rule folders (groups) within a Control D profile.
List Custom DNS Rules for ProfileRetrieve custom DNS rules for a Control D profile.
Get Specific Rule in FolderTool to retrieve a specific rule within a folder by its ID.
Get Profile SchedulesTool to list schedules associated with a specific profile.
Get Profile ScheduleTool to retrieve a specific schedule by its ID within a profile.
Get Profile ServicesTool to list services associated with a specific profile.
Get ProxiesTool to retrieve the list of usable proxy locations that traffic can be redirected through.
Get Service CategoriesList all available service categories in Control D.
List Services by CategoryRetrieves all services within a specific ControlD service category.
Get UsersRetrieve the authenticated user's account information from Control D.
Create DeviceCreate a new device (DNS endpoint) in Control D.
Create ProfileCreate a new blank profile or clone an existing one.
Create Custom DNS RuleCreate custom DNS rules for a profile to control domain resolution.
Create Custom Rules in Profile FolderTool to create custom rules within a specific folder for a profile.
Create Profile ScheduleCreate a new time-based schedule within a Control D profile.
Modify DeviceModify an existing Control D device's settings.
Modify OrganizationModify organization settings such as name, contact details, website, and device limits.
Modify ProfileModify an existing profile by its ID.
Bulk Update Profile FiltersTool to bulk update filters on a specific profile.
Update External Filters for ProfileTool to update external filters for a specific profile.
Modify Profile FilterModify the enabled state of a specific native filter on a profile.
Modify Custom Rule for ProfileModify an existing custom DNS rule for a profile in Control D.
Update Custom Rule by Rule IDTool to update an existing custom rule by its ID.
Move Profile Rule to FolderTool to move a specific custom rule into a different folder.
Update Profile ScheduleTool to update a specific schedule within a profile.
Modify Service for ProfileTool to modify a specific service rule for a profile.

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

How to build Control d MCP Agent with another framework

FAQ

What are the differences in Tool Router MCP and Control d MCP?

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.

Can I use Tool Router MCP with Codex?

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.

Can I manage the permissions and scopes for Control d while using Tool Router?

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.

How safe is my data with Composio Tool Router?

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.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.