Playwright MCP
劇作家-MCP
MCP(モデルコンテキストプロトコル)用のPlaywrightラッパー。このサーバーにより、LLM対応クライアントはブラウザを制御でき、自動化タスクを実行できます。
コンポーネント
リソース
サーバーはブラウザのスクリーンショットにアクセスするためのリソースを公開します。
スクリーンショットリソースURI:
screenshot://{page_id}スクリーンショットリソースは、開いているすべてのページで自動的に利用可能になります。
プロンプト
サーバーは、クライアントが Web ページを解釈できるようにプロンプトを提供します。
interpret-page: 現在のウェブページのコンテンツと構造を分析します解釈するページを選択するためのオプションの
page_id引数特定の側面(フル、フォーム、ナビゲーション、テキスト)に焦点を当てるためのオプションの
focus引数テキスト分析とページのスクリーンショットの両方を返します
ツール
サーバーは包括的なブラウザ自動化ツールのセットを実装します。
ブラウザナビゲーション
navigate: 特定のURLに移動するnew_page: 特定のIDで新しいブラウザページを作成するswitch_page: 別のブラウザページに切り替えるget_pages: 利用可能なすべてのブラウザページを一覧表示する
ページインタラクション
click: CSSセレクターを使用して要素をクリックするtype: 入力要素にテキストを入力するwait_for_selector: 要素がページに表示されるまで待つ
コンテンツ抽出
get_text: 要素からテキストコンテンツを取得するget_page_content: ページ全体のHTMLを取得するtake_screenshot: ページまたは要素の視覚的な状態をキャプチャします
Related MCP server: playwright-mcp-server
構成
依存関係をインストールする
uv add playwright
playwright install chromiumクイックスタート
インストール
クロードデスクトップ
MacOSの場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"playwright-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/shannon/Workspace/artivus/playwright-mcp",
"run",
"playwright-mcp"
]
}
}"mcpServers": {
"playwright-mcp": {
"command": "uvx",
"args": [
"playwright-mcp"
]
}
}発達
建築と出版
配布用のパッケージを準備するには:
依存関係を同期し、ロックファイルを更新します。
uv syncパッケージディストリビューションをビルドします。
uv buildこれにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。
PyPI に公開:
uv publish注: 環境変数またはコマンド フラグを使用して PyPI 資格情報を設定する必要があります。
トークン:
--tokenまたはUV_PUBLISH_TOKENまたはユーザー名/パスワード:
--username/UV_PUBLISH_USERNAMEおよび--password/UV_PUBLISH_PASSWORD
デバッグ
MCPサーバーはstdio経由で実行されるため、デバッグが困難になる場合があります。最適なデバッグ環境を実現するには、 MCP Inspectorの使用を強くお勧めします。
次のコマンドを使用して、 npm経由で MCP Inspector を起動できます。
npx @modelcontextprotocol/inspector uv --directory /Users/shannon/Workspace/artivus/playwright-mcp run playwright-mcp起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceExposes Playwright browser automation as MCP tools, enabling AI assistants to control a real browser tab-by-tab for form filling, navigation, and more, while preserving the user's active session.
- AlicenseAqualityDmaintenanceStateful MCP server wrapping Playwright for browser automation. Provides tools to navigate, interact, and extract data from web pages via a persistent browser session.191,251MIT
- FlicenseBqualityBmaintenanceAn MCP server for generic browser automation using Playwright. Enables MCP clients to navigate pages, inspect elements, execute JavaScript, capture screenshots, and monitor console logs and network traffic via a headless Chromium instance.7
- AlicenseNot gradedqualityBmaintenanceEnables autonomous web QA by exposing Playwright browser control as MCP tools for navigation, accessibility snapshotting, interaction, and bug detection.3MIT
Related MCP Connectors
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/misanthropic-ai/playwrite-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server