Chrome browser automation MCP server for AI agents β drives real Chrome with your profiles
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Inspect callable tools, capabilities, and parameters exposed to AI agents by Pagerunner.
list_profilesList configured Chrome profiles
open_sessionLaunch Chrome for a profile, returns `session_id
attach_sessionAttach to an existing Chrome instance via `--remote-debugging-port
close_sessionKill a Chrome session
list_sessionsList active sessions
list_tabsList open tabs in a session
A Chrome browser automation MCP server. Connect Claude (or any MCP client) to a real Chrome session β using your existing profiles with their cookies, saved passwords, and history.
[!WARNING] Pagerunner is early-stage software (v0.x). APIs and configuration formats may change between releases.
Pagerunner launches Chrome with your existing user profile via CDP (Chrome DevTools Protocol) and exposes it as an MCP server over stdin/stdout. Claude can then navigate, click, type, screenshot, and run JavaScript in the live browser.
1. Install
2. Auto-detect Chrome profiles
This reads Chrome's profile list and writes ~/.pagerunner/config.toml automatically.
Run pagerunner status to verify.
Alternatively, write ~/.pagerunner/config.toml by hand β see pagerunner example-config for the format.
3. Register as MCP server
For Claude Desktop, add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Note: The
mcpsubcommand is required β registering just the binary path withoutmcpwill not work.Note: Chrome locks profile directories. Close any Chrome window using a profile before opening a Pagerunner session on it.
4. Set up in your project (optional)
In any project directory with a CLAUDE.md or AGENTS.md:
Pagerunner prints a ready-to-use usage snippet and offers to append it to your project file automatically. For scripting: pagerunner init --json.
5. (Optional, --features ner builds only) Download the NER model
Copy the example agent instructions into your project root so Claude (or any agent) immediately knows how to use Pagerunner:
Or paste the content manually and extend it with project-specific instructions.
For comprehensive guidance, workflows, and examples tailored to 4 different use cases, install the Pagerunner Skill:
Or explore the skill repository directly: pagerunner-skill
The skill includes:
Start with the skill's SKILL.md to find your use case and quick start path.
| Tool | Description |
|---|---|
list_profiles | List configured Chrome profiles |
open_session | Launch Chrome for a profile, returns session_id |
attach_session | Attach to an existing Chrome instance via --remote-debugging-port |
close_session | Kill a Chrome session |
list_sessions | List active sessions |
list_tabs | List open tabs in a session |
new_tab | Open a new tab, returns target_id |
close_tab | Close a specific tab |
| Tool | Description |
|---|---|
navigate | Navigate a tab to a URL |
wait_for | Wait for a CSS selector, URL pattern, or fixed delay |
get_content | Get visible text content of a tab |
screenshot | Capture a tab as PNG (saved to temp file or inline base64) |
evaluate | Run JavaScript in a tab, returns the result |
| Tool | Description |
|---|---|
click | Click an element by CSS selector |
type_text | Type text at the focused element or a given selector |
fill | Set input value with React/Vue/Angular synthetic events |
select | Choose a dropdown option by value |
scroll | Scroll the page by pixels or scroll an element into view |
| Tool | Description |
|---|---|
save_snapshot | Save current page cookies/localStorage to the encrypted DB |
restore_snapshot | Restore a saved snapshot into the current tab |
list_snapshots | List saved snapshots (optionally across all profiles) |
delete_snapshot | Delete a saved snapshot |
save_tab_state | Save all open tab URLs to the DB |
restore_tab_state | Reopen the previously saved tabs |
| Tool | Description |
|---|---|
kv_set | Store a value in a persistent namespace |
kv_get | Retrieve a value by key |
kv_delete | Delete a key |
kv_list | List keys in a namespace (with optional prefix filter) |
kv_clear | Delete all keys in a namespace |
| Tool | Description |
|---|---|
get_network_log | Inspect HTTP requests captured in a session |
get_console_log | Capture JavaScript console output from a tab |
| Tool | Description |
|---|---|
get_site_knowledge | Inspect what Pagerunner has learned about a site (adapters, auth tokens, selector health) |
register_adapter | Store a JS adapter for direct API calls against a site |
call_site_api | Execute a stored adapter in the browser tab |
generate_adapter | Auto-generate a JS adapter from network traffic using Claude (requires ANTHROPIC_API_KEY) |
| Tool | Description |
|---|---|
save_session_checkpoint | Save full tab state (URLs + scroll positions) for all tabs in a session |
restore_session_checkpoint | Reopen all saved tabs and navigate to stored URLs |
list_session_checkpoints | List saved checkpoints for a profile |
delete_session_checkpoint | Remove a checkpoint by ID |
Pagerunner learns about sites as you use them and can call site APIs directly using your session credentials β no separate auth setup required.
Adapters are short JS functions stored in the encrypted DB and executed in the browser tab. Use them to call APIs that a site exposes (typically the same API the web UI uses):
Seed adapters for GitHub, Linear, Jira, Notion, and Gmail are built in.
Auth token detection β Bearer tokens, API keys, and session cookies discovered in network traffic are stored in the encrypted site vault. Adapters automatically have access to them via the credentials argument.
Selector stability β click, fill, and select track success/failure rates per selector. A fragility warning appears in the tool response when a selector fails >30% of the time over β₯5 uses.
Save complete browser state (all open tabs with URLs and scroll positions) and restore it in any future session:
Checkpoints are stored in the encrypted DB and scoped to a profile.
A native Swift companion app lives at apps/menubar/. It shows all Chrome profiles, active sessions, open tabs, and daemon status from the menu bar β no terminal required.
Features:
Build and run:
Pass anonymize: true to open_session to strip PII from all get_content and evaluate
results before they reach Claude. Screenshots are blocked in anonymization mode.
Detected by default: EMAIL, PHONE, CREDIT_CARD, IBAN, SSN, IP
With --features ner build: also detects PERSON and ORG names via a local ONNX model
[EMAIL:a3f9b2]. Pass tokens back to
fill/type_text β Pagerunner de-tokenizes before writing to the DOM.[EMAIL] β no vault, no de-tokenization.Disable globally in ~/.pagerunner/config.toml:
Pass stealth: true to open_session to enable anti-detection: hides automation signals, injects scripts to mask navigator.webdriver, and adds human-like delays between inputs.
By default each pagerunner mcp process opens the database directly β only one can run at a time. If you open Pagerunner in a second Claude Code window you'll hit a DB lock error.
Start the daemon once to share state across any number of sessions:
Each pagerunner mcp instance automatically detects the daemon, connects to it over a Unix socket (~/.pagerunner/daemon.sock), and proxies all tool calls through it. All Claude Code windows share the same open browsers, KV store, and snapshots.
To stop:
Install as a background service (starts at login, restarts on crash):
The script detects your installed pagerunner binary automatically. Logs at ~/.pagerunner/daemon.log.
Note: After installing the daemon service, restart Claude Code. On the next launch, the daemon starts first (via launchd) and the MCP server connects to it in proxy mode. If Claude Code is already running when you install the daemon, you need two restarts: one to let launchd start the daemon, and one for the MCP server to reconnect to it.
Save authenticated browser state to the encrypted local DB:
Restore it in any future session:
Snapshots are encrypted with AES-256-GCM. The key is stored in macOS Keychain under pagerunner / db_key β never written to disk in plaintext.
Pagerunner automates a browser you own, using your own credentials. You are responsible for complying with the Terms of Service of any website you automate, applicable data protection laws (GDPR, CCPA), and authorized-access requirements (CFAA and equivalents).
Using anonymize: true is recommended for any workflow that involves processing personal
data belonging to other people.
See DISCLAIMER.md for the full legal disclaimer, limitation of liability, and responsible use obligations.
If this project helps you, star the repo β it helps others find it.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pagerunner)<a href="https://allmcps.com/mcp/pagerunner"><img src="https://allmcps.com/api/badge/pagerunner?style=directory" alt="Pagerunner on AllMCPs" /></a>