# chrome-mcp [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/Mehmoodqureshi/chrome-mcp  
**GitHub Stars:** 6  
**npm Downloads (last month):** 1428  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/chrome-mcp

## Description
Drive your real Chrome over MCP: real logins and cookies, multi-tab automation, deny-all by default.

## Tools
Capabilities this server exposes over MCP:

- **tabs_list** — List open browser tabs.
- **screenshot** — Capture a screenshot (page or element). Default is JPEG (quality 70) at CSS-pixel size, which is several times smaller than PNG and reads fine. Pass format:"png" for lossless, quality 1-100 for JPEG, scale 2 for device pixels on a Retina display or 0.5 to shrink.
- **get_text** — Get visible text of the page or an element.
- **get_html** — Get HTML of the page or an element. Output is capped (see maxBytes) and cut at a tag boundary; narrow it with `selector` rather than raising the cap when you can. Password field values are always blanked.
- **snapshot** — Accessibility snapshot: interactive elements with refs to target by `ref` (more reliable than guessing CSS selectors). Pass diff:true to get only what changed since the last snapshot of this tab - far cheaper in a click/read loop. Password fields appear as secret:true with no value.
- **page_watch** — Save a local page checkpoint and compare it later. Actions: create (name), compare (watchId), list, delete. Stores accessibility labels and state, never form values. Site allowlist still applies.
- **get_cookies** — Cookies for the tab's URL (or url); values need --enable-cookie-values.
- **storage** — Read/write localStorage (or sessionStorage). op: get|set|remove|clear.
- **wait_for** — Wait for a selector or text to appear/disappear.
- **extract_links** — Extract anchors from the page or a subtree. dedupe=true collapses links sharing an href (nav/footer noise); limit caps the count.
- **read_as_markdown** — Read the page (or subtree) as readable markdown.
- **frames_list** — List the tab's frames (the top document plus every iframe the extension can reach), with each frame's id and URL. Use it when a selector that should match does not: the element is probably in one of these frames, and you can then pass frameId (or allFrames:true) to act inside it.
- **print_pdf** — Render the page to PDF through Chrome's own print pipeline and save it to the task's results/ dir. Returns the path and size, not the bytes - a PDF is not something to spend context on.
- **proxy_status** — The active profile's proxy and the IP sites see. The user sets it per Chrome profile; for another IP, profile_use another profile.
- **chrome_status** — Report backend/session status: paired browser profiles and how each was named, and flags for switched-off capabilities.
- **auth_check** — Is the tab sitting on a sign-in wall? Reads the page (URL, title, password fields, sign-in controls) and returns { authRequired, confidence, signals }. Use it after a navigate, or whenever a step fails unexpectedly, to tell "the session expired" apart from "the agent got lost". Pass failOnAuthWall:true to get an [AUTH_REQUIRED] error instead of a verdict, so a harness can bucket the run as an auth failure.
- **profile_use** — Switch the active browser profile (identity). Subsequent downloads, results, screenshots, and the action log are stored under profiles/<name>/. Resets the active task to "default" unless you then call task_new.
- **profile_rename** — Rename an automatically named browser profile (e.g. "profile-2" -> "work"). The name sticks across restarts; its saved artifacts move with it.
- **task_new** — Start a new task (run) under the active profile. Creates profiles/<profile>/tasks/<name>/ with downloads/, results/, screenshots/ and makes it the active task so all captured artifacts land there.
- **tasks_list** — List every task across all profiles under the data dir, with sizes and download counts.
- **task_status** — Report the active profile/task and the folder paths where this run's artifacts are stored.
- **batch** — Run multiple tool calls in one request — parallel (default) or serial. Each op is { tool, args } and goes through the same policy gate, rate limit, and error handling as a direct call. In parallel mode, tab-scoped ops MUST pass an explicit tabId (the active-tab default is unsafe under concurrency). Use to drive several tabs at once (e.g. open tabs, then batch get_text across them). Cannot be nested.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "chrome-mcp": {
    "command": "npx",
    "args": ["-y","mcp-browser-extension@latest"]
  }
}
```

## Documentation

## What chrome-mcp does

chrome-mcp lets an MCP client operate the Chrome browser already open on the user’s machine. The browser extension connects to a small MCP server started with `npx`, allowing an agent to work with existing tabs, sessions, cookies, and profile state rather than a newly launched, signed-out browser.

The server covers browser observation, page extraction, session state, profiles, task artifacts, and controlled automation. It can read visible text, HTML, links, Markdown, screenshots, accessibility snapshots, cookies, storage, frames, and page status. It can also wait for page conditions, render pages to PDF, inspect proxy state, and identify authentication walls.

## How it works

The system has two parts: the Chrome extension and the MCP server. The extension is required; the server does not launch or attach to its own Chromium instance. The extension communicates with the local server over WebSocket and uses Chrome browser APIs to access tabs and page content.

Browser access is subject to an approval and policy flow. Suspicious-site checks are enabled by default, and a named-domain allowlist can be enforced with `--no-site-grants`. Mutations, downloads, uploads, and page evaluation are separate capabilities that remain disabled unless explicitly enabled. Password values are not returned, and page reads can be configured to redact tokens, API keys, and JWTs.

Calls are recorded in an audit trail containing the URL, access decision, duration, and returned byte count. The extension also shows recent activity and provides a control to disconnect applications. An active command may finish after access is stopped, and completed actions cannot be undone.

## Setup and configuration

Register the MCP server with an MCP host using `npx -y mcp-browser-extension@latest`. Claude Code can add it with `claude mcp add`; Claude Desktop and other MCP hosts can use a JSON MCP server entry. Install the extension from the Chrome Web Store or load it unpacked, then approve the connection and website access in Chrome.

Useful command-line options include `--allow-domain` for domain policy, `--enable-mutations`, `--enable-downloads`, `--enable-uploads`, and `--unsafe-enable-eval` for higher-risk capabilities. `--persist-token` stores the pairing token with restricted permissions so the connection can survive restarts; `MCP_BROWSER_EXTENSION_TOKEN` can provide a token without writing it to disk. Email verification can be disabled for trusted local unattended use with `--no-email-verification` or `MCP_BROWSER_EXTENSION_EMAIL_VERIFICATION=0`.

## Tools and capabilities

- Inspect tabs with `tabs_list`, frames with `frames_list`, and session state with `chrome_status`.
- Capture page or element images with `screenshot`, including JPEG quality and scaling controls.
- Read visible text, HTML, links, or Markdown with `get_text`, `get_html`, `extract_links`, and `read_as_markdown`.
- Use `snapshot` to target interactive elements by accessibility references and request only changes with `diff:true`.
- Check authentication state with `auth_check`, wait for page conditions with `wait_for`, and save or compare page checkpoints with `page_watch`.
- Inspect cookies, local storage, session storage, proxies, and frames.
- Export pages through Chrome’s print pipeline with `print_pdf`.
- Switch browser identities, organize tasks, inspect artifact paths, and list task history with the profile and task tools.
- Combine multiple operations with `batch`, using serial or parallel execution.

## Limitations and notes

The extension must be installed and connected before any tool can run. The server does not log users in or store credentials; if a session expires, `auth_check` can signal that the user must authenticate again. Cookie values require the relevant enablement flag, and password field values remain blanked.

HTML output is capped and cut at a tag boundary, so narrowing the query with a selector is preferable to increasing the limit. Accessibility checkpoints store labels and state rather than form values. In parallel batches, tab-scoped operations must provide an explicit `tabId` to avoid relying on the active tab.

Uploads are disabled by default because they can expose local files to a website. When enabled, `--uploads-dir` can restrict upload paths and traversal outside that directory is blocked. Site permissions, capability flags, and the configured domain policy continue to apply to browser actions.

_Full upstream README: https://allmcps.com/mcp/chrome-mcp/readme_

