[](https://www.npmjs.com/package/@agentclientprotocol/codex-acp)
Codex MCP server exists for a simple reason — assistants are far more useful when they can act on Codex directly instead of describing what you should do. .
codex-acp is a stdio ACP agent server. It starts the Codex App Server, translates ACP requests into Codex operations, and maps Codex events back into the client.
The server ships on npm as @agentclientprotocol/codex-acp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Once Codex is connected, these are the calls the assistant has available:
Client — provided MCP servers over command-based stdio config and HTTP transportCODEX_API_KEY — API key used when the API-key auth method is selected. Takes precedence over OPENAI_API_KEYOPENAI_API_KEY — fallback API key used when the API-key auth method is selectedCODEX_PATH — run a specific Codex executable instead of the bundled package dependencyCODEX_CONFIG — JSON object merged into the Codex session configMODEL_PROVIDER — model provider to pass to Codex for new sessionsDEFAULT_AUTH_REQUEST — ACP auth request JSON used when Codex requires authenticationINITIAL_AGENT_MODE — initial mode id: read-only, agent, or agent-full-accessNO_BROWSER — hide browser-based ChatGPT auth when setAPP_SERVER_LOGS — directory for adapter logsYou will need 3 environment variables: CODEX_PATH, CODEX_API_KEY, OPENAI_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the browser automation group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Codex's toolset — Client, CODEX_API_KEY, OPENAI_API_KEY and 7 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Codex's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| Client | provided MCP servers over command-based stdio config and HTTP transport. |
| CODEX_API_KEY | API key used when the API-key auth method is selected. Takes precedence over OPENAI_API_KEY. |
| OPENAI_API_KEY | fallback API key used when the API-key auth method is selected. |
| CODEX_PATH | run a specific Codex executable instead of the bundled package dependency. |
| CODEX_CONFIG | JSON object merged into the Codex session config. |
| MODEL_PROVIDER | model provider to pass to Codex for new sessions. |
| DEFAULT_AUTH_REQUEST | ACP auth request JSON used when Codex requires authentication. |
| INITIAL_AGENT_MODE | initial mode id: read-only, agent, or agent-full-access. |
| NO_BROWSER | hide browser-based ChatGPT auth when set. |
| APP_SERVER_LOGS | directory for adapter logs. |
{
"mcpServers": {
"codex": {
"command": "npx",
"args": ["-y", "@agentclientprotocol/codex-acp"],
"env": {
"CODEX_PATH": "your-value",
"CODEX_API_KEY": "your-value",
"OPENAI_API_KEY": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| CODEX_PATH | Filesystem location the server is allowed to use. | Optional |
| CODEX_API_KEY | Credential the server authenticates with. | Yes |
| OPENAI_API_KEY | Credential the server authenticates with. | Yes |
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
Industrial-strength web extraction — render, scrape, crawl and search entire sites into clean markdown.
The original Chromium automation reference server — simple, screenshot-driven browser control.
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Puppeteer-powered browser control that drives pages from the accessibility tree instead of pixels.
Cloud browsers for AI agents — automation sessions that run in Browserbase's fleet, not on your machine.