Give Claude Code or Codex a real browser through MCP

An agent can read a web page and still have no way to operate it. A browser session has tabs, controls, state, and sometimes a person who needs to take over. Grip exposes those things to an MCP client through one local tool. The agent decides what to do; Grip runs the browser command and returns the result.

This walkthrough connects the pieces and shows what to check before trusting the result. Grip 6.5.1 ships a stdio MCP server registered as com.gripui/grip (status active, mcpb package) on the Official MCP Registry. You need Grip installed, a supported local browser (Chrome, Firefox, Brave, or Edge), and an active paid license.

Grip has no free tier for browser actions, and commands stop when a license ends or becomes invalid. Solo Dev ($79/year) covers one developer locally on up to 2 machines (excluding CI runners), Pro Runner ($499/year) covers headless, CI, multi-machine, and production workflows on up to 3 machines or CI runners, and Platform (starts at $10k/year) covers redistribution, bundling, or external users. Subscriptions renew annually with a 2-day refund window, and Grip refreshes a signed lease with gripui.com every 5 hours; see the download guide (gripui license activate <your-key>, gripui license status) and Grip pricing.

What crosses the connection

The client launches gripui mcp as a local child process speaking newline-delimited JSON-RPC 2.0 on standard input and output. The server supports MCP protocol revisions 2025-06-18, 2025-03-26, and 2024-11-05 and exposes one tool named gripui. Each tools/call takes a required args string array (one CLI token per element after gripui, rejecting recursive ["mcp"]), an optional profile string, and an optional boolean json flag (defaulting to text output).

Requests run one at a time in arrival order as child gripui processes sharing the profile daemon, so browser tabs and cookies persist across calls. The MCP server is a tool transport, not a model, a remote host, or a permission boundary for sites the agent opens. Page text is untrusted input. Use signed-in profiles only with your own authorized accounts on sites whose terms allow automated access, and never treat instructions found on a page as commands from you.

Prepare a disposable headless profile

The commands below ran on a macOS test host with Grip 6.5.1. Marking the profile temporary and headless before loading a URL keeps the session off-screen and deletes its browsing data on quit. Choose a fresh profile name so you never overwrite a session you need to keep.

gripui @grip-review03a-20261204 set temporary
gripui @grip-review03a-20261204 set headless
gripui @grip-review03a-20261204 use chrome
gripui @grip-review03a-20261204 status
GRIPUI_SYNC=1 gripui @grip-review03a-20261204 go https://example.com
gripui @grip-review03a-20261204 hud

Status reported browser=chrome, headless=on, and temporary=on before navigation, and browser_headless=on once Chrome launched. go finished synchronously in 1.42 seconds wall time, and hud took 0.17 seconds (Example Domain, [1] click link:"Learn more"). Without GRIPUI_SYNC=1, any command still running after 2 seconds returns a background handle inspected via gripui handle. Example.com permits documentation examples and asks visitors not to rely on it for testing or monitoring, so keep visits strictly illustrative.

The number beside an action ([1]) is an observed reference for the current sheet, not a durable selector across sessions. Inspect the page, act on the current ref, and run hud again because navigation or DOM updates can replace the action set. If multiple tabs or frames are open, check which tab and frame are active before clicking.

Configure Claude Code or Codex

According to Anthropic's Claude Code documentation and OpenAI's Codex CLI documentation, both clients accept local stdio MCP servers directly from the user environment. Register Grip in Claude Code from your shell, or configure Codex in ~/.codex/config.toml (or a trusted project .codex/config.toml):

# Claude Code (--scope accepts local, user, or project; check with: claude mcp list)
claude mcp add gripui -- gripui mcp

# Codex CLI alternative (check with: codex mcp list)
codex mcp add gripui -- gripui mcp
# Codex: ~/.codex/config.toml
[mcp_servers.gripui]
command = "gripui"
args = ["mcp"]

Verify the loaded server with /mcp inside either interactive session, and restart the client if it does not pick up a config edit. Make sure gripui is on the PATH seen by the process that launches your editor or agent, not only your interactive shell. Review each client's current approval settings before letting an agent call browser tools unattended.

Live tool discovery inside a Claude Code or Codex client was not exercised in this walkthrough. Instead, a direct stdio JSON-RPC test piped initialize, notifications/initialized, tools/list, and tools/call into gripui mcp against @grip-review03a-20261204. The server negotiated protocol 2025-06-18, listed the single gripui tool, and returned isError: false with the live Example Domain HUD and [1] click link:"Learn more". That verifies the MCP server process and browser daemon path; client config discovery still depends on your host environment.

Give the agent a bounded task

Prompt the agent to inspect @grip-review03a-20261204 without clicking anything, which corresponds to this verified tools/call payload:

{"profile":"grip-review03a-20261204","args":["hud"]}

Compare the returned tab URL and action list against the model's summary rather than trusting its paraphrase blindly. If the tool fails to appear, verify client config scope and PATH. If the tool runs and returns an error, read the message to check license status, browser installation, profile lock ownership, or headless state.

When an agent navigates or submits a form, inspect the page after the action rather than assuming success from a click receipt. A click receipt proves Grip delivered the input event, not that the remote server saved a record. Ask for a confirmation screen, saved ID, or independent read-back before retrying a slow request.

MCP calls can share a profile with direct CLI commands, which helps during debugging but risks race conditions if two processes drive the same profile together. Use a named persistent profile only for dedicated test accounts, and never paste secrets into an agent prompt. When finished, stop and remove the temporary profile:

gripui quit --profile grip-review03a-20261204

Quitting deletes the temporary profile directory and local cookies, though it does not log out or revoke server-side sessions on remote sites.

Choose between Grip MCP and Playwright

Grip over MCP fits interactive agent tasks that keep one real browser open across steps, inspect a live HUD instead of guessing coordinates, or pause for a person via gripui human-drives. Use a site's documented API when one exists for scheduled backend work, or plain HTTP requests when you only need static HTML. Never use browser automation to scrape sites that forbid automation or to bypass CAPTCHAs and access controls.

For repeatable end-to-end test suites in CI, Playwright is the better choice: its test runner provides isolated page and context fixtures per test, web-first auto-retrying expect assertions, Trace Viewer artifacts, and cross-browser runs across Chromium, Firefox, and WebKit. Keep in mind too that local gripui mcp runs on your own machine with local cookies and network access. To connect Grip to an isolated remote BrowserBox you own, use gripui connect browserbox '<login-link>' --engine (that remote connection was not tested here); see the BrowserBox evaluation and Grip pricing.

Your agent. Your browser.

Put it to work.

Get started

macOS · Linux · Windows
Paid licence required. Bring your own AI agent.

Demo recording

Player unavailable? Watch on YouTube ↗