
seleniumhq/mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
@selenium/mcp は、Selenium プロジェクトから公式モデルコンテキストプロトコルサーバーです。 これは、コーディングエージェントがSeleniumを介して実際のブラウザを駆動させることを可能にします:エージェントは、ページをアクセシビリティとして読み込みます...
概要
@selenium/mcp は、Selenium プロジェクトから公式モデルコンテキストプロトコルサーバーです。 コーディングエージェントは、Selenium を介して実際のブラウザをドライブできます。エージェントは、要素の ref でアクセス可能なスナップショットとしてページを読み込み、それらの ref で動作します。 セレクターを書いたり推測したりする必要はありません。 テストランナーではなく、ツールとして露出されているセレンバインディングです。 Selenium マネージャーはバインディングが付属していますので、インストールするドライバはありません。 デフォルトではChrome、stdio、サーバーごとの1つのブラウザ上のヘッドレス。 カバー内容を見る Node.js が必要です。^22.23.4 ||24.22.1 ||>=26.12.1 と Chrome が必要です。 それからあなたの代理店にサーバーを加えて下さい: : .cursor/mcp.json (または~/.cursor/mcp.json) に追加します。 他の MCP クライアント: npx @selenium/mcp@latest を stdio サーバーとして実行します。 フラグ名は @playwright/mcp と一致します。 ツール名と引数は @playwright/mcp と一致します。操作は同じなので、習慣やスキルファイルが引き継がれます.
概要(AI 翻訳)
[[@selenium/mcp]は、Seleniumの公式モデルコンテキストプロトコルサーバーです。
プロジェクト コーディングエージェントは、Seleniumを介して実際のブラウザを駆動させます。エージェントはページをアクセシビリティとして読み込みます
要素の ref でスナップショットし、それらの ref で動作します。 セレクターを書いたり推測したりする必要はありません。
テストランナーではなく、ツールとして露出されているセレンバインディングです。 Selenium マネージャーにはバインディングが付属しています。 取付ける運転者無し。
ステータス:v1進行中 デフォルトではChrome、stdio、サーバーごとの1つのブラウザ上のヘッドレス。 お問い合わせ カバーするもの
セットアップ
Node.js ^22.23.4 || ^24.22.1 || >= 26.12.1 と Chrome が必要です。 それからあなたの代理店にサーバーを加えて下さい:
ロードコード
コーデックス
カーソル: .cursor/mcp.json (または ~/.cursor/mcp.json]) に追加します。
VSコード:[.vscode/mcp.jsonに追加]:
他の MCP クライアント: stdio サーバーとして npx @selenium/mcp@latest を実行します。
オプション
| 旗 | 意味 |
| --------------------------------------------------------------------------------------------------------------------------
| [--browser | [chrome (デフォルト). [edge および [firefox] は、まだテストされていません。 |
| [--headless / [--headed | ヘッドレス(デフォルト)を実行するか、ウィンドウを表示します。 お問い合わせ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Selenium MCP server
@selenium/mcp is the official Model Context Protocol server from the Selenium
project. It lets a coding agent drive a real browser through Selenium: the agent reads the page as an accessibility
snapshot with element refs, and acts on those refs. It never has to write or guess a selector.
It is the Selenium bindings exposed as tools, not a test runner. Selenium Manager comes with the bindings, so there is no driver to install.
Status: v1 in progress. Chrome, headless by default, over stdio, one browser per server. See What it covers.
Setup
You need Node.js ^22.23.4 || ^24.22.1 || >= 26.12.1 and Chrome. Then add the server to your agent:
Claude Code
claude mcp add selenium -- npx @selenium/mcp@latest
Codex
codex mcp add selenium -- npx @selenium/mcp@latest
Cursor: add to .cursor/mcp.json (or ~/.cursor/mcp.json):
{ "mcpServers": { "selenium": { "command": "npx", "args": ["@selenium/mcp@latest"] } } }
VS Code: add to .vscode/mcp.json:
{ "servers": { "selenium": { "command": "npx", "args": ["@selenium/mcp@latest"] } } }
Any other MCP client: run npx @selenium/mcp@latest as a stdio server.
Options
| Flag | Meaning |
|---|---|
--browser |
chrome (default). edge and firefox start but are not yet tested. |
--headless / --headed |
Run headless (the default) or show the window. |
--grid |
Run the browser on a Selenium Grid instead of locally. |
--allowed-origins |
Semicolon-separated origins or hosts (*.example.com) the browser may navigate to. |
--blocked-origins |
Semicolon-separated origins or hosts it may not navigate to. |
--allow-unrestricted-file-access |
Let browser_navigate open file:// URLs, and browser_file_upload send files from outside the working directory (both blocked by default). |
--allow-evaluate |
Offer browser_evaluate, which runs JavaScript the agent writes in the page. |
--caps |
Comma-separated optional tool groups: vision, pdf, storage. See Optional tools. |
--log-level |
Log to stderr: severe, warning (default), info, fine, all. all includes raw WebDriver traffic, so typed text such as passwords. |
Flag names match @playwright/mcp wherever they mean the same thing.
Tools
Tool names and arguments match @playwright/mcp wherever the operation is the same, so habits and skills files carry
over.
| Tool | What it does |
インストール
npx @selenium/mcp@latest設定
{ "mcpServers": { "selenium": { "command": "npx", "args": ["@selenium/mcp@latest"] } } }