Delegate coding tasks to the OpenAI Codex CLI, installed separately, with explicit model and effort.
To add Codex Subagent to Claude, run the install command below or copy the ready-made config for Claude Code, Claude Desktop, Cursor and VS Code further down. Restart your client after adding it and its tools show up in your next conversation. It declares 13 environment variables, listed below.
Install
npx -y codex-subagent-mcp@0.6.0Environment variables
CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOURSet in your MCP configCODEX_SUBAGENT_MAX_BACKGROUND_JOBSSet in your MCP configCODEX_SUBAGENT_USAGE_LOGSet in your MCP configCODEX_SUBAGENT_DEFAULT_MODELSet in your MCP configCODEX_SUBAGENT_DEFAULT_EFFORTSet in your MCP configCODEX_SUBAGENT_ALLOWED_MODELSSet in your MCP configCODEX_SUBAGENT_DEFAULT_SANDBOXSet in your MCP configCODEX_SUBAGENT_MAX_SANDBOXSet in your MCP configCODEX_SUBAGENT_MAX_EFFORTSet in your MCP configCODEX_SUBAGENT_MCP_SERVERSSet in your MCP configCODEX_SUBAGENT_PLUGINSSet in your MCP configCODEX_SUBAGENT_APPSSet in your MCP configCODEX_BINSet in your MCP configSet only if the maker requires them; this listing does not flag any of them as required.
Install with your client
claude mcp add codex-subagent --env CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR=<YOUR_CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR> --env CODEX_SUBAGENT_MAX_BACKGROUND_JOBS=<YOUR_CODEX_SUBAGENT_MAX_BACKGROUND_JOBS> --env CODEX_SUBAGENT_USAGE_LOG=<YOUR_CODEX_SUBAGENT_USAGE_LOG> --env CODEX_SUBAGENT_DEFAULT_MODEL=<YOUR_CODEX_SUBAGENT_DEFAULT_MODEL> --env CODEX_SUBAGENT_DEFAULT_EFFORT=<YOUR_CODEX_SUBAGENT_DEFAULT_EFFORT> --env CODEX_SUBAGENT_ALLOWED_MODELS=<YOUR_CODEX_SUBAGENT_ALLOWED_MODELS> --env CODEX_SUBAGENT_DEFAULT_SANDBOX=<YOUR_CODEX_SUBAGENT_DEFAULT_SANDBOX> --env CODEX_SUBAGENT_MAX_SANDBOX=<YOUR_CODEX_SUBAGENT_MAX_SANDBOX> --env CODEX_SUBAGENT_MAX_EFFORT=<YOUR_CODEX_SUBAGENT_MAX_EFFORT> --env CODEX_SUBAGENT_MCP_SERVERS=<YOUR_CODEX_SUBAGENT_MCP_SERVERS> --env CODEX_SUBAGENT_PLUGINS=<YOUR_CODEX_SUBAGENT_PLUGINS> --env CODEX_SUBAGENT_APPS=<YOUR_CODEX_SUBAGENT_APPS> --env CODEX_BIN=<YOUR_CODEX_BIN> -- npx -y codex-subagent-mcp@0.6.0
Run this in a terminal to add the server to Claude Code.
What this does
Codex Subagent exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation.
Requirements
This server declares the following environment variables. Set only the ones the maker requires for your setup; this listing does not flag any of them as required:
CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR CODEX_SUBAGENT_MAX_BACKGROUND_JOBS CODEX_SUBAGENT_USAGE_LOG CODEX_SUBAGENT_DEFAULT_MODEL CODEX_SUBAGENT_DEFAULT_EFFORT CODEX_SUBAGENT_ALLOWED_MODELS CODEX_SUBAGENT_DEFAULT_SANDBOX CODEX_SUBAGENT_MAX_SANDBOX CODEX_SUBAGENT_MAX_EFFORT CODEX_SUBAGENT_MCP_SERVERS CODEX_SUBAGENT_PLUGINS CODEX_SUBAGENT_APPS CODEX_BIN
Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).
Frequently asked questions
How do I install Codex Subagent?
Run the Claude Code command in the install section to add Codex Subagent to Claude Code, or copy the ready-made config for your client from the install section on this page. Restart your client afterwards and the tools appear in your next conversation.
Which clients work with Codex Subagent?
This page carries setup and config for Claude Code, Claude Desktop, Cursor and VS Code. Any other MCP client that accepts a standard server config can connect to Codex Subagent as well.
Does Codex Subagent need an API key?
This listing does not flag an API key as required. The server can use these environment variables: CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR, CODEX_SUBAGENT_MAX_BACKGROUND_JOBS, CODEX_SUBAGENT_USAGE_LOG, CODEX_SUBAGENT_DEFAULT_MODEL, CODEX_SUBAGENT_DEFAULT_EFFORT, CODEX_SUBAGENT_ALLOWED_MODELS, CODEX_SUBAGENT_DEFAULT_SANDBOX, CODEX_SUBAGENT_MAX_SANDBOX, CODEX_SUBAGENT_MAX_EFFORT, CODEX_SUBAGENT_MCP_SERVERS, CODEX_SUBAGENT_PLUGINS, CODEX_SUBAGENT_APPS, CODEX_BIN; the maker's docs say which of them your setup needs. They go in the env block of your MCP config.
Imported from the Official MCP Registry. The details above come from the registry entry; the maker can claim this listing to correct them, add docs, and see its traffic.
Is this your MCP server?
Claim this listing to see its traffic, fix details yourself, and skip the review queue on future updates.
Add this badge to your README
Show visitors this server is listed in the ClaudeRules directory. The badge links straight to this listing.
[](https://clauderules.net/mcp/io-github-parisbs-codex-subagent-mcp)<a href="https://clauderules.net/mcp/io-github-parisbs-codex-subagent-mcp" target="_blank" rel="noopener noreferrer"><img src="https://clauderules.net/api/badge/io-github-parisbs-codex-subagent-mcp" alt="Listed on clauderules.net" /></a>More AI MCP servers
Awesome MCP Servers by punkpeye
A curated, community-maintained list of Model Context Protocol (MCP) servers, organized by category, with sections for MCP clients, tutorials, and community resources. The repository is a directory of production-ready and experimental servers that extend AI capabilities through file access, database connections, and API integrations; it is a list, not a runnable MCP server itself.
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
FastMCP
🐍 - A high-level framework for building MCP servers in Python
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
