Register the Chrome DevTools MCP server in Codex by adding the TOML block to ~/.codex/config.toml and restarting Codex.
[mcp_servers."chrome-devtools"]
command = "npx"
args = ["chrome-devtools-mcp@latest"]
1/10/2025
Codex looks for Model Context Protocol servers in ~/.codex/config.toml. Adding the Chrome DevTools block lets Codex launch a dedicated Chrome instance with the correct debugging flags whenever a DevTools task runs.
~/.codex/config.tomlAfter Codex restarts, ask it to run a browser task such as:
Check the LCP of https://web.dev
Codex should spawn a Chrome window controlled through MCP and return a response. You can also target a local project:
Open http://localhost:3000 and report console errors
[mcp_servers."name"] block.--remote-debugging-port=9222 and rerun the command.