MCP-Server-Playwright
目次
Related MCP server: Playwright MCP Server for Security
特徴
🌐 完全なブラウザ自動化機能
📸 ページ全体または特定の要素のスクリーンショットキャプチャ
🖱️ 包括的なウェブインタラクション(ナビゲーション、クリック、フォーム入力)
📊 コンソールログ監視
🔧 ブラウザコンテキストでの JavaScript 実行
インストール
Smithery経由でインストール
Smithery経由で Claude Desktop 用の MCP Server Playwright を自動的にインストールするには:
npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client claudenpx または mcp-get を使用してパッケージをインストールできます。
npx の使用:
npx @automatalabs/mcp-server-playwright installこのコマンドは次のことを行います。
オペレーティングシステムの互換性を確認する(Windows/macOS)
Claude 構成ファイルを作成または更新する
Playwrightサーバー統合を構成する
構成ファイルは次の場所に自動的に作成/更新されます:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
mcp-get の使用:
npx @michaellatman/mcp-get@latest install @automatalabs/mcp-server-playwright構成
インストール プロセスにより、次の構成が Claude 構成ファイルに自動的に追加されます。
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@automatalabs/mcp-server-playwright"]
}
}
}コンポーネント
ツール
browser_navigate
ブラウザで任意のURLに移動する
{
"url": "https://stealthbrowser.cloud"
}browser_screenshot
ページ全体または特定の要素のスクリーンショットをキャプチャします
{
"name": "screenshot-name", // required
"selector": "#element-id", // optional
"fullPage": true // optional, default: false
}browser_click
CSSセレクターを使用してページ上の要素をクリックする
{
"selector": "#button-id"
}browser_click_text
ページ上の要素をテキストコンテンツでクリックします
{
"text": "Click me"
}browser_hover
CSSセレクターを使用してページ上の要素にマウスを移動します
{
"selector": "#menu-item"
}browser_hover_text
ページ上の要素のテキストコンテンツにマウスを移動します
{
"text": "Hover me"
}browser_fill
入力フィールドに記入してください
{
"selector": "#input-field",
"value": "Hello World"
}browser_select
CSSセレクタを使用してSELECT要素内のオプションを選択する
{
"selector": "#dropdown",
"value": "option-value"
}browser_select_text
SELECT要素内のオプションをテキストコンテンツで選択する
{
"text": "Choose me",
"value": "option-value"
}browser_evaluate
ブラウザコンソールでJavaScriptを実行する
{
"script": "document.title"
}リソース
コンソールログ(
console://logs)ブラウザコンソールの出力をテキスト形式でアクセスする
ブラウザからのすべてのコンソールメッセージが含まれます
スクリーンショット(
screenshot://<n>)キャプチャしたスクリーンショットのPNG画像にアクセスする
キャプチャ時に指定された名前で参照されます
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
Available Tools
10 toolsbrowser_clickB
Click an element on the page using CSS selector
Inputs: selector (required).
browser_click_textB
Click an element on the page by its text content
Inputs: text (required).
browser_evaluateC
Execute JavaScript in the browser console
Inputs: script (required).
browser_fillB
Fill out an input field
Inputs: selector (required), value (required).
browser_hoverA
Hover an element on the page using CSS selector
Inputs: selector (required).
browser_hover_textB
Hover an element on the page by its text content
Inputs: text (required).
browser_screenshotB
Take a screenshot of the current page or a specific element
Inputs: name (required), selector, fullPage.
browser_selectC
Select an element on the page with Select tag using CSS selector
Inputs: selector (required), value (required).
browser_select_textC
Select an element on the page with Select tag by its text content
Inputs: text (required), value (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose. Pairwise similar tools like click and click_text are differentiated by CSS selector vs text content, making ambiguity minimal.
All tools follow a consistent 'browser_verb' pattern, with optional '_text' suffix for text-based selectors. Snake_case is used uniformly.
10 tools is an appropriate number for browser automation, covering essential actions without being overwhelming. The scope is well-defined.
The set covers core browser interactions (navigation, click, fill, select, hover, evaluate, screenshot). Missing operations like waiting, scrolling, or keyboard input are minor gaps.
Maintenance
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Hosted browser for agents: open pages, search the web, extract data, read PDFs and take screenshots.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables LLMs to perform web browsing tasks, take screenshots, and execute JavaScript using Puppeteer for browser automation.41MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to perform browser automation tasks including web scraping, taking screenshots, and executing JavaScript using Playwright. It facilitates real-time interaction with web pages and the generation of automated test code.29 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to drive a real browser for web scraping, page interaction, screenshots, JavaScript execution, automated test generation, and responsive device emulation through natural language tool calls.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a browser through tools for web automation, including navigation, typing, clicking, and taking screenshots.Apache 2.0