agent-browser MCPサーバー
コミット 2026年10月14日AIクライアントが実際のChromiumブラウザを制御し、ウェブサイトの閲覧、フォーム入力、要素のクリック、スクリーンショットの取得を可能にします。
別名 codeChap/mcp-server-agent-browser, mcp-server-agent-browser
- スター
- 1
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.1.0
- 最終コミット
- 2026年10月14日
- ライセンス
- —
agent-browser MCPとは
agent-browserはMCPサーバーです。 AIクライアントが実際のChromiumブラウザを制御し、ウェブサイトの閲覧、フォーム入力、要素のクリック、スクリーンショットの取得を可能にします。.
プロジェクトのREADMEから生成された概要
agent-browser MCP server について
AIクライアント内から実際のChromiumブラウザを操作することで、単純なドキュメント取得では対応できない複雑なウェブ操作を自動化できます。このMCP serverはagent-browserツールをラップしており、ウェブサイトのナビゲーション、フォーム入力、特定の要素のクリック、スクリーンショットやアクセシビリティツリーのスナップショットの取得といった機能を提供します。静的なテキストを読むだけでなく、動的なウェブアプリケーションと対話するエージェントを必要とするユーザー向けに設計されています。
セットアップには、cargo経由でのagent-browser CLIのインストールと、stdioコマンドを使用したMCPクライアントの設定が必要です。ユーザーは設定ファイルを通じてセッションを管理し、永続化を有効にできます。これによりクッキーとlocalStorageが保存され、再起動後もログイン状態を維持できます。サーバーはヘッドレスモードとヘッドモードの両方をサポートしており、設定次第でブラウザウィンドウを表示できます。また、トラブルシューティング用のbrowser_doctorや、ページコンテンツに対して正規表現検索を実行するbrowser_get_textなどの専用ツールが含まれています。
できること
- 1ウェブフォーム送信の自動化AIエージェントが特定のURLに移動し、browser_fillツールを使用して入力フィールドにデータを入力できます。
- 2ウェブページの視覚的検証AIに対して、ウェブサイトの特定の部分の画像を取得させ、視覚的な変更を確認させることができます。
- 3特定のテキストパターンの抽出開発者は正規表現を使用して、ウェブページのテキスト内から特定の情報を検索できます。
- 4認証済みウェブセッションの維持サーバーがログイン状態を保存できるため、AIが新しいタスクを開始するたびに再認証を行う必要がありません。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
自動チェック
実行日 2026年11月15日完全なレポート →まだ検証されていません。サーバーには80点のスコア、重大な問題がないこと、および検証に必要な十分なデータが必要です。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能codechap/mcp-server-agent-browser is public and reachablegithub.com/codechap/mcp-server-agent-browser ↗合格
- パッケージがこのリポジトリをソースとして指定未チェック
- ビルドの来歴 (Sigstore 証明)未チェック
- オープンソースライセンス (OSI)No license検出事項
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-10-14github.com/codechap/mcp-server-agent-browser ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していない未チェック
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るmcp-server-agent-browser
Status: Beta — CLI wrapper is covered by unit tests and a fake-browser stdio smoke test. Cookie restore across a real Chromium restart is still a manual check.
Let LLMs drive a real browser. This MCP server wraps agent-browser (Vercel Labs) so any MCP client can navigate, fill forms, click, snapshot the accessibility tree, and screenshot.
It is not Grok's web_search / open_page. Those fetch documents. This one runs Chromium. Use search to find a URL, then browser_navigate.
Prerequisites
cargo install agent-browser
agent-browser install
Call browser_doctor if anything is missing.
Build
cargo build --release
Binary: target/release/mcp-server-agent-browser
cargo test
./tests/test-stdio.sh
Real Chromium login-restore is not in CI. After a headed login, restart the MCP process and confirm the next browser_navigate is still logged in.
Configuration
MCP client (stdio):
{
"mcpServers": {
"agent-browser": {
"command": "/path/to/mcp-server-agent-browser"
}
}
}
Optional TOML at ~/.config/mcp-server-agent-browser/config.toml (see config.example.toml). Missing file uses defaults. Override the path with MCP_AGENT_BROWSER_CONFIG.
| Setting | Default | Meaning |
|---|---|---|
headed |
false |
Show a window. Launch-time only; browser_close first if a headless daemon is already up. Also AGENT_BROWSER_HEADED=1. |
persist |
true |
--session-name <namespace>-<session_id> (default session key default). There's no --namespace CLI flag — namespace is folded into that name instead. |
keep_daemon |
false |
If false, MCP exit runs close so restore state is saved and Chrome does not leak. |
namespace |
mcp-server |
Prefix of the --session-name restore key, isolating this MCP's restore files from a human using the CLI directly. |
command_timeout_secs |
120 |
Wrapper timeout. Playwright's own 25s action timeout is left alone (CLI IPC is ~30s). |
idle_timeout |
1h |
Sets AGENT_BROWSER_IDLE_TIMEOUT_MS (env only — there's no --idle-timeout CLI flag). Use "0" with keep_daemon = true. |
download_dir |
~/Downloads |
--download-path. ~ is expanded. |
profile |
unset | Optional persistent Chrome user-data dir. Not your daily Chrome profile. |
encryption_key_file |
unset | Sets AGENT_BROWSER_ENCRYPTION_KEY. Restore files are credentials; plaintext unless this is set. |
AGENT_BROWSER_PATH |
agent-browser |
CLI binary. |
allowed_domains is optional. Localhost is allowed unless you set a list that excludes it.
What it can do
Same interaction set as before (navigate, click, type, snapshot, screenshot, cookies, eval, CDP, sessions), plus:
browser_doctor— CLI, config, persist, headed/DISPLAY, daemon guess. Does not launch Chrome.browser_get_textpattern— regex over page text with two lines of context.browser_wait—load/url/textas well as a selector.
Typical loop:
browser_navigatebrowser_snapshot(-ifor interactive)browser_click/browser_fillwith@refsbrowser_screenshotif you need pixels
Persistence
With persist = true (default), each session saves cookies and localStorage on close and on the CLI's autosave interval. State lives under ~/.agent-browser/, namespaced to mcp-server. Isolated session_ids do not share a restore key.
Headed login once, browser_close or exit the MCP, start again. The next navigate should restore that session.
A killed MCP process may leave the daemon running. browser_doctor reports that. Idle shutdown still saves if persist is on.
Limitations
- Chromium via
agent-browser(Playwright). No search. - Headed is ignored until the existing daemon is closed.
- Snap Chromium on Ubuntu can fail to advertise its DevTools port; prefer
agent-browser install's browser orexecutable_path. - Writes (screenshot, pdf, download) must be relative, under
/tmp, or underdownload_dir. - Element screenshots take a CSS selector or
@ref, plus a trailing:has-text("..."). The selector is checked first, so a miss is an error, not a silent full-viewport shot. Not combinable withfull_page. - 25s Playwright action timeout is an upstream CLI limit, not this wrapper.
License
MIT
agent-browser MCPのよくある質問
ウェブ検索ツールとは何が違うのですか?
単にドキュメントを取得するツールとは異なり、このMCP serverは実際のChromiumインスタンスを実行してウェブページと対話します。
ブラウザのログインセッションを維持できますか?
はい、デフォルトでクッキーとlocalStorageを保存するため、再起動後もセッションを復元できます。
動作中のブラウザウィンドウを表示するにはどうすればよいですか?
headed設定をtrueにすることで、ヘッドモードを有効にできます。
MCPプロセスが予期せず終了した場合はどうなりますか?
プロセスが終了してもブラウザのデーモンが実行されたままになる場合があり、その際はbrowser_doctorツールを使用して確認できます。