chrome-cli
Controls Google Chrome through a browser extension: starts named tasks with grouped background tabs, opens and navigates pages, reads page content such as titles, and cleans up owned tabs when tasks finish.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Chrome Task Groups for Codex CLI
Control Google Chrome from Codex CLI on macOS. Each task gets a named group of background tabs. When a task finishes, the connector ungroups and closes the tabs it owns. Other tasks can keep their groups open.
The connector runs on the same Mac as Chrome and Codex CLI. It includes a modified Microsoft Playwright Extension 0.5.0 and a local server that wraps Playwright MCP 0.0.85. The ChatGPT desktop app uses a separate OpenAI integration for @Chrome and its side chat.
Install on macOS
You need Google Chrome, Git, Node.js 22 with npm, Python 3, and a configured Codex CLI. Run the commands below in Terminal under your own account.
Clone the repository into a directory you plan to keep and install the dependencies.
git clone https://github.com/NikoVonLas/codex-chrome-task-groups.git cd codex-chrome-task-groups npm ci --ignore-scripts --no-audit --no-fundEnable automatic extension updates for your macOS account.
python3 scripts/update_extension.py installThe installer prints the permanent extension directory,
~/.local/share/codex-chrome-cli/task-extension. In the Chrome profile you want Codex to use, openchrome://extensions. Turn on Developer mode, choose Load unpacked, and select that directory. Chrome should show Playwright — task groups (local). This build shares an extension ID with the Microsoft Playwright extension from the Chrome Web Store. If you already use the store version, you can load this build in a separate profile. The official ChatGPT extension has its own ID and can stay enabled.Click Playwright — task groups (local) in Chrome’s extensions menu. On its status page, click the copy button next to
PLAYWRIGHT_MCP_EXTENSION_TOKEN. Run the following command in Terminal, paste the copied text at the hidden prompt, and press Return.python3 setup-token.pyEach profile has its own token. The setup script stores it on this Mac at
~/.codex-chrome-task-groups/extension-tokenwith file mode0600. The token allows repeated access to the browser, including signed-in sites. The extension requests debugger access and access to all sites. Use a separate Chrome profile to limit which accounts are available to Codex.Register the server with Codex CLI.
codex mcp add chrome-cli -- "$(command -v node)" "$PWD/start.mjs" codex mcp get chrome-cliThe server uses the
DefaultChrome profile unless you specify another one. To find the directory name of your profile, openchrome://versionand read the last component of Profile Path. For a directory namedProfile 1, use this registration command.codex mcp add chrome-cli --env 'CHROME_PROFILE_DIR=Profile 1' -- "$(command -v node)" "$PWD/start.mjs"Open a new Codex CLI session and try this request.
Use chrome-cli to start a task named “Connection check”. Open https://example.com in a new tab, read the page title, and finish the task.
The expected title is Example Domain. After
browser_finish, the session should report zero remaining tabs.
Related MCP server: firefox-browser-control
Automatic extension updates
A per-user LaunchAgent checks this GitHub repository for a new stable release every four hours while you are logged in. It verifies the ZIP against the SHA-256 digest from GitHub and checks the extension ID and version. If Chrome is running, it stages the update. Once a minute the agent checks whether Chrome has fully quit. It then swaps the extension directory atomically and keeps the previous version in ~/.local/share/codex-chrome-cli/task-updates/previous. Chrome loads the updated files on its next launch. New required permissions need a manual update.
For a previous ZIP or repository installation, run the installer once. If Chrome already loads the permanent directory printed by the installer, keep that registration. If you previously loaded a different directory, load the permanent directory once and check the token in step 3. Future releases use the same directory and extension ID. The updater manages the Chrome extension only. The MCP server and the updater script come from the repository checkout.
To check immediately, run python3 scripts/update_extension.py check. If it reports a staged update, quit Chrome and rerun the command to apply it immediately, or leave Chrome closed for a minute. To disable scheduled checks, run python3 scripts/update_extension.py disable. The installed extension stays available.
For manual installation, download the extension ZIP from the latest release, extract it into a permanent folder, and choose that folder with Load unpacked. Then complete steps 3–5.
Troubleshooting
Codex cannot find
browser_start_task. Check the registration withcodex mcp get chrome-cliand open a new Codex CLI session. If you moved the clone or changed the Node executable path, repeat step 4.Chrome reports
Invalid token provided. Check which profile Chrome is using. To replace a stale token, delete~/.codex-chrome-task-groups/extension-tokenand repeat step 3 using that profile.Local HTML files do not open. In the extension details in Chrome, turn on Allow access to file URLs. When registering the server, add
--allow-unrestricted-file-accessafter the path tostart.mjs. This flag also permits file operations outside the workspace.Task tabs close after a pause. The connector closes its task tabs after 120 seconds of inactivity. The timer pauses while an operation is running. Use
browser_start_taskto begin a new task.
To uninstall, disable automatic updates as described above, then run codex mcp remove chrome-cli and remove the extension from chrome://extensions.
Publishing a release
Set the release version in the package metadata, extension manifest, and MCP server info. Publish a GitHub release with the matching vX.Y.Z tag. GitHub Actions runs the tests and attaches chrome-task-groups-X.Y.Z.zip to the release. The ZIP contains the unpacked Chrome extension and its license notices. The MCP server is available in the source archive and repository.
Development and licensing
node --test extension.test.mjs lifecycle.test.mjs
python3 -m unittest discover -s scriptsThe tests cover tab ownership, group creation, and cleanup when a task ends, the client disconnects, or Chrome returns an error. The extension directory contains the unpacked build. The local changes update the manifest name and group handling in lib/background.mjs.
The extension is based on Microsoft Playwright. npm installs Microsoft’s Playwright MCP server. Playwright · Playwright MCP
The repository includes the applicable license and third-party notices. License · Notice · Third-party notices
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Control your Chrome from chat: open websites, read what's on the page, click buttons, and fill in f…
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Related MCP Servers
- AlicenseBqualityBmaintenanceExposes the Codex Chrome extension flow to other Agent tools through MCP, enabling Chrome automation via CDP and tab management.1673 npm12MIT
- AlicenseNot gradedqualityBmaintenanceEnables Codex to manage a local Firefox session by listing, grouping, opening, activating, navigating, and closing non-private tabs and native tab groups through a secure local native-messaging bridge.MIT
- AlicenseAqualityCmaintenanceEnables Codex to send text tasks to ChatGPT web, await responses, continue conversations, choose reasoning effort, and manage projects through MCP tools on macOS.2MIT
- AlicenseNot gradedqualityBmaintenanceLets Codex, Claude Code, and other local MCP agents control tabs in already-open Chrome profiles using existing website logins, with setup handled through the coding agent.MIT