Agent Chrome

dev.agentchrome由 agentchrome.dev 发布官方发布者v0.1.0更新于 Nov 4, 2026

Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.

已验证Streamable HTTP可网页运行网页搜索与抓取浏览器自动化

概览

AI 生成的概览

Chrome 扩展加远程 MCP 服务器,让 AI 代理操作你真实已登录的 Chrome:标签页、点击、表单、截图和录屏。

可以做什么
  • 打开、关闭、切换标签页并管理标签组,导航页面,列出并选择已配对的 Chrome 配置文件
  • 按坐标或元素引用点击、输入、拖拽、滚动、悬停并填写表单,读取页面的无障碍树或正文
  • 截取视口或整页截图,录制 MP4/WebM 片段或 GIF,并保存产物
  • 在页面中执行 JavaScript,读取控制台消息和网络请求
  • 把本地文件上传到输入框和拖放区,处理 alert/confirm/prompt 对话框,等待文本、选择器或网址出现
  • 在明确开启后搜索浏览历史
适用场景
适合让代理在你已登录的浏览器里工作,例如测试网页应用、填写真实表单、截图或录制演示,而不是另开一个无头浏览器。也适合 Claude、ChatGPT 等通过 OAuth 连接远程 MCP 服务器的聊天应用。
运行要求
远程端点 agentchrome.dev/mcp,使用 OAuth(或 bearer 账户密钥)。完整安装需要 Node.js 18 或更高版本、Google Chrome,并在每个 Chrome 配置文件中以未打包方式加载 Agent Chrome 扩展,再用一次性配对码连接。本地模式在 127.0.0.1 上运行服务器,无需云端。
安装前请注意
代理会在你已登录的浏览器配置文件中操作,可能接触到已登录账号、提交表单、上传本地文件并下载内容。账户密钥和设备令牌会写入各代理的配置文件以及本地配置文件;建议使用 OAuth 以免配置中出现密钥。保存到云端的截图和录屏会进入第三方存储,链接不可猜测,7 天后删除。历史记录访问默认关闭,可启用逐站点询问和屏蔽列表。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agent Chrome,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/dev.agentchrome%2Fagentchrome/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "agent-chrome": {
      "type": "http",
      "url": "https://agentchrome.dev/mcp"
    }
  }
}

README

[Agent Chrome logo]

agentchrome

Let your coding agents use the Chrome you already use.

[GitHub stars] [MIT license] [Hosted on Cloudflare]

Install · Let your agent install it · What it does · Tools · Security

[Star on GitHub]

Agent Chrome is a Chrome extension and an MCP server that let coding agents use your real, signed-in Chrome profiles. It works with Claude Code, Codex, Gemini CLI, Antigravity, Grok, Muse, Cursor, opencode and any other MCP client. Each agent works in its own tab group, and a blue border and an animated cursor show what it is doing. It can take screenshots and record video clips, and you can connect several Chrome profiles at once. The server runs on Cloudflare, or locally on your machine.

[Claude Code searching Wikipedia in Chrome: a blue border around the page, an animated cursor with the Claude Code logo, and a status pill with a Stop button]
What you see while an agent works. This clip was recorded by the extension itself (MP4).

If it's useful to you, please star the repo. It helps other people find it.

Install

You need Node.js 18 or newer and Google Chrome.

1. Run the installer

sh
curl -fsSL https://agentchrome.dev/install | sh

In one pass, the installer:

  1. Creates your account and saves the key to ~/.config/agentchrome/config.json with chmod 600.
  2. Adds an MCP server named agentchrome to every agent it finds, in that agent's user-level config (table below).
  3. Writes the agentchrome skill once, to ~/.agents/skills/agentchrome, and symlinks it into each agent's skills folder.
  4. Unpacks the extension to ~/.agentchrome/extension.
  5. Prints a pairing code and copies it to your clipboard.

To keep everything on your machine with no cloud at all, add --local. See Local mode.

2. Load the extension, once per Chrome profile

The installer opens chrome://extensions and shows the folder in Finder for you.

  1. In chrome://extensions, turn on Developer mode.
  2. Click Load unpacked and choose ~/.agentchrome/extension. Run agentchrome extension --path to print the full path.
  3. Pin Agent Chrome, click it, paste the pairing code and press Connect.

To add another profile (Work, Personal, a client's), switch to that profile, load the same folder, and run agentchrome pair for a new code. Each profile appears as its own browser in list_browsers.

3. Use it

Ask any agent:

Use agentchrome to open news.ycombinator.com, screenshot it, and record a short clip scrolling the front page.

Or let your agent install it

Paste this into Claude Code, Codex or any other coding agent:

Install agentchrome for me by following https://github.com/ShadowWalker2014/agentchrome/blob/main/AGENT_INSTALL.md

The agent runs the installer, then tells you the one step only you can do: loading the extension in Chrome and pasting the code.

Use it from Claude.ai or ChatGPT

The server is a standard remote MCP server with OAuth, so chat apps can use it as a connector. You don't need the command line tool for this.

Claude (claude.ai, Claude Desktop, Cowork): open Customize > Connectors > Add custom connector, enter https://agentchrome.dev/mcp and press Connect.

ChatGPT: turn on Developer mode under Settings > Apps & Connectors > Advanced, then create a connector with the same URL and choose OAuth.

A sign-in page opens. Paste your account key, or press Create an account if you don't have one. Then ask in chat: "Connect my Chrome." The assistant calls pairing_code and walks you through loading the extension and pasting the code.

Where each agent is configured

AgentConfig written (user level)Format
Claude Codeclaude mcp add --scope user (~/.claude.json)http with an Authorization header
Codex~/.codex/config.toml[mcp_servers.agentchrome] with url and http_headers
Gemini CLI~/.gemini/settings.jsonhttpUrl and headers
Antigravityagy mcp add and ~/.gemini/antigravity/mcp_config.jsonserverUrl and headers
Grokgrok mcp add --scope user (~/.grok/config.toml)http with a header
Muse~/.config/muse/settings.jsontype: "streamable-http"
Cursor~/.cursor/mcp.jsonurl and headers
opencode~/.config/opencode/opencode.jsontype: "remote"
Windsurf~/.codeium/windsurf/mcp_config.jsonserverUrl and headers

The installer backs up every JSON or TOML file it edits as <file>.bak-agentchrome. The skill is linked into ~/.claude/skills, ~/.codex/skills, ~/.gemini/skills, ~/.gemini/antigravity/global_skills, ~/.cursor/skills and ~/.config/opencode/skills.

Gemini CLI note: Gemini turns off every MCP server in folders you haven't trusted, so gemini mcp list shows "Disabled" there. Trust the folder with /permissions inside Gemini, and the server turns on.

Pick agents, or use OAuth instead of a key

sh
agentchrome install claude codex grok   # only these agentsagentchrome install --oauth             # no secret in config files; each agent signs in through the browser

With OAuth, agents that support MCP sign-in (Claude Code, Codex, Gemini CLI and others) open a sign-in page on first use. Paste your account key once (agentchrome key prints it) and the agent receives short-lived tokens, refreshed for 90 days.

Add it by hand

sh
claude mcp add --scope user --transport http agentchrome https://agentchrome.dev/mcp \  --header "Authorization: Bearer $(agentchrome key)"
codex mcp add agentchrome --url https://agentchrome.dev/mcp --bearer-token-env-var AGENT_CHROME_MCP_KEY

Any MCP client that speaks Streamable HTTP works. Use https://<server>/mcp with a bearer key, or point it at the URL and let OAuth discovery do the rest.

What it does

[An agent typing into Wikipedia's search box: blue border, agent cursor labelled Claude Code with its logo, status pill][A clean recording: normal cursor, no border or labels]
You can see what the agent is doing. A blue border goes around the page, a pill shows which agent is working with a Stop button, and the agent's own cursor glides to each target. The cursor turns into a hand over links and an I-beam over text, and carries the agent's logo and name. Your own mouse is never moved.Recordings look like a person using the page. record leaves out the border, the pill and the name tag, and draws a normal cursor (MP4). Pass cursor: "agent" to keep the indicators, or "hidden" for no cursor.
[The toolbar popup: connected profile, Claude Code and Codex sessions with Pause buttons, settings][The welcome page with three setup steps and a pairing-code field]
Every agent gets its own tab group. The popup lists which agents are active, and lets you pause one or stop them all.Setup takes a minute. Load the extension, paste the code from the installer, and the profile is connected.

It also handles the parts of real websites that usually break browser agents:

  • Drag and drop works for native HTML5 drag events (Trello-style boards, file drop areas) and for pointer-based sliders and sortable lists.
  • File uploads never open the native file picker. The agent can pass real file paths from your computer, or file contents. If a click tries to open the picker, it is held back and the agent is told to fill it.
  • alert, confirm, prompt and "Leave site?" dialogs are reported to the agent instead of freezing it. A navigation the agent asks for leaves an unsaved page and says so.
  • New tabs opened by a link join the agent's group, and downloads are reported in the result of the click that caused them.
  • Pages that fail are explained: HTTP errors such as 404, DNS failures, crashed tabs, chrome:// pages that extensions can't touch, and file:// pages that need permission.
  • If you press Cancel on Chrome's "started debugging this browser" bar, every agent stops and is told why.

CLI

CommandWhat it does
agentchrome setup [--server URL] [--key KEY] [--local]Creates an account or signs in, installs into agents, links the skill, unpacks the extension, prints a pairing code
agentchrome pairPrints a new single-use pairing code, valid for 15 minutes
agentchrome statusShows the account, paired browsers with online state, and which agents are configured
agentchrome install [ids] [--oauth] / uninstall [ids]Adds or removes the MCP server and the skill
agentchrome revoke <browser-id>Removes a paired Chrome profile; it disconnects immediately
agentchrome rotate-keyReplaces your account key and rewrites every agent config
agentchrome keyPrints your account key
agentchrome serve [--install]Runs the local server; --install starts it at login with launchd
agentchrome extension [--path]Unpacks the extension and shows how to load it

Tools

The tool names match Claude in Chrome, so prompts and skills written for it work unchanged.

ToolWhat it does
tabs_contextLists this session's tab group and tabs; creates a group with a tab if there is none. all: true lists every tab
tabs_create / tabs_close / tabs_selectOpens, closes or switches tabs inside the session group; adopt pulls a user tab into the group
tab_groupsLists, creates, renames, recolors, collapses, moves or ungroups Chrome tab groups
navigateLoads a URL and waits for it; also takes back, forward and reload
computerscreenshot, left_click, right_click, middle_click, double_click, triple_click, hover / mouse_move, left_click_drag (HTML5 and pointer drags; start_ref or start_coordinate), type, key (combos like cmd+a), scroll, scroll_to, wait, zoom. Accepts coordinates or element refs, plus modifiers
screenshotCaptures the viewport, or with fullPage: true one long image of the whole page. It scrolls through first so lazy images load, and stitches apps that scroll inside a panel, such as Gmail, Notion and dashboards. JPEG or PNG; save: true returns a download link
read_pageReturns an accessibility tree with ref_N handles; filter: "interactive", ref_id to read a subtree, viewportOnly
findFinds elements from a plain-language description and returns refs with coordinates
form_inputSets inputs, selects, checkboxes, radios and contenteditable fields by ref
get_page_textReturns the readable text of the article or main content
javascript_toolRuns JavaScript in the page and returns the last expression; supports await and works under strict CSP
read_console_messages / read_network_requestsReturns console logs and errors, and requests with status and timing; can include response bodies
file_upload / upload_imageFills a file input or drop zone with local file paths, base64 data, a URL or a screenshot, without the native file picker; leave out ref to fill a picker that a click tried to open
recordRecords an MP4 or WebM clip of the tab and returns a link. cursor: natural (default, no indicators), agent or hidden; showClicks adds click ripples. action: "scroll" makes a smooth scrolling video of the whole page in one call
gif_creatorRecords an animated GIF and returns it inline
wait_forWaits until text appears or disappears, a CSS selector matches, or the URL matches
handle_dialogAccepts or dismisses alert, confirm and prompt dialogs
resize_windowResizes the browser window
history_searchSearches browsing history, only when you turn it on in the popup
list_browsers / select_browserLists paired Chrome profiles and picks one; every tool also takes browser: "<name or id>"

Feature parity

Claude in ChromeCodex Chrome extensionagentchrome
Works with any MCP agentClaude onlyCodex onlyyes
Tab group per agent sessionyesyesyes, and the agent can rename and recolor it
Several Chrome profiles at onceone connected browser at a timeone profileyes, all at once
Screenshotsyesyesyes, including zoom and long full-page images (also inside scrolling panels)
Video recordingGIFnoMP4 or WebM, plus GIF and one-call scrolling videos
Console, network, JavaScriptyesyesyes
Per-site permission promptyesyesyes, off by default; also a block list
Visible "agent at work" indicatoryesyespulsing border, status pill and Stop button
Animated agent cursornoyesyes, with the agent's logo; a hand over links
Clean recordings without indicatorsnonoyes
Runs headless from scripts (codex exec, claude -p)nonoyes, since it's a remote MCP server
Self-hostablenonoyes: Cloudflare or local

Local mode

sh
curl -fsSL https://agentchrome.dev/install | sh -s -- --localagentchrome serve --install    # starts the local server now and at every login (macOS)

The server listens only on 127.0.0.1:47823 and rejects requests from web pages. In the extension popup, open Server and set it to http://127.0.0.1:47823 before connecting. Screenshots and recordings are saved to ~/.agentchrome/artifacts.

Self-host on Cloudflare

sh
git clone https://github.com/ShadowWalker2014/agentchrome && cd agentchromepnpm installnpx wrangler loginsh scripts/deploy-cloudflare.sh my-agentchrome

The script creates a D1 database, a KV namespace and an R2 bucket, runs the migrations, deploys the Worker with its Durable Object, sets a session secret, and prints your own install line (curl -fsSL https://my-agentchrome.<you>.workers.dev/install | sh). After you create your own account, set SIGNUP_MODE to "closed" so nobody else can sign up.

It runs comfortably on the Workers free tier for personal use. Durable Objects hibernate between calls, so an idle extension connection costs nothing.

Security

  • Keys: account keys (acm_sk_…) and device tokens (acm_dt_…) are 256-bit random values. The server stores only their SHA-256 hashes. The local config file is chmod 600.
  • Pairing: a browser joins your account only with a single-use 10-character code that expires after 15 minutes, created by someone who already holds the account key. Each Chrome profile gets its own device token, which you can revoke on its own.
  • OAuth 2.1: PKCE (S256), dynamic client registration, refresh-token rotation and RFC 9728 discovery, using @cloudflare/workers-oauth-provider.
  • Isolation: each account has its own Durable Object. MCP session ids are signed with HMAC and bound to the account, so one account cannot use another's session.
  • Recordings: screenshots and videos you choose to save go to R2 behind unguessable 144-bit links and are deleted after 7 days.
  • Control in the browser: the Stop button on the page or in the popup pauses every agent at once. You can also ask before each new site, block sites, and keep history access off, which is the default.
  • Rate limits: sign-up, pairing and the sign-in page are rate-limited per IP address.
  • Untrusted pages: the skill and the server instructions tell agents never to follow instructions found inside web pages.

Please report vulnerabilities through a private GitHub security advisory.

How it works

Claude Code ─┐                    ┌──────────────────────────────┐        ┌─ Chrome "Work" profileCodex ───────┤  MCP over HTTPS    │ Cloudflare Worker            │  WSS   │   (extension, paired)Gemini ──────┼──────────────────► │  /mcp  OAuth 2.1 or API key  │ ◄────► ├─ Chrome "Personal" profileGrok, Muse … ┘                    │  Durable Object per account  │        └─ …                                  └──────────────────────────────┘

The extension keeps one WebSocket open to the server. The server runs on Cloudflare Workers with one Durable Object per account. Each MCP session gets its own tab group in every paired profile. Tools that act on a page use the Chrome debugger protocol for input, screenshots, console and network logs. A small content script provides element refs, the accessibility tree, the overlay and the agent cursor.

Development

sh
pnpm installpnpm --filter @agentchrome/server exec wrangler d1 migrations apply agent-chrome-mcp --localpnpm dev:server                         # Worker on http://127.0.0.1:8787node scripts/build-all.mjs              # extension, CLI and public assetspnpm test:e2e                           # end-to-end tests: real Chromium, the extension and the MCP SDK clientnode --test tests/e2e/edge.test.mjs     # drag and drop, file pickers, dialogs, new tabs, downloads, errorsACM_SERVER=https://… pnpm test:e2e      # the same suite against a deployed serversh tests/e2e/local.sh                   # the same suite against local mode

See AGENTS.md for the architecture and the rules for contributors.

Star history

[Star history chart for agentchrome]

If agentchrome saves you time, please star it. Stars help other developers find the project.

[Star on GitHub]

License

MIT

来源:README.md,提交 aa04500

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v0.1.0最新Nov 4, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分