BP

blackwhite084/playwright-plus-python-mcp

Browser automation

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

188 stars 28 forks 品質 64 トレンド 17Apache-2.0

blackwhite084/playwright-plus-python-mcp は、https://github.com/blackwhite084/playwright-plus-python-mcp. からインポートされたMCPサーバー候補です。

概要

blackwhite084/playwright-plus-python-mcp は、https://github.com/blackwhite084/playwright-plus-python-mcp. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

\劇作家ツールを備えたMCPサーバー\

構成要素

リソース

サーバーは以下のシンプルなノート保存システムを実装しています:

  • 個々のノートにアクセスするためのカスタム note:// URI方式
  • 各ノートリソースには名前、説明、テキスト/プレーンミメタイプが割り当てられています

プロンプト

サーバーは単一のプロンプトを提供します:

  • 要約ノート:保存されたすべてのノートの要約を作成します
  • 詳細レベル(簡潔/詳細)制御のためのオプションの「スタイル」引数
  • 現在のすべてのノートをスタイルの好みで組み合わせてプロンプトを生成する

道具

サーバーは以下のツールを実装しています:

  • playwright_navigate:指定されたURLへナビゲートします。この操作はアクティブなセッションがなければ自動的に新しいセッションを作成します。
  • urlの引数(文字列)が必要です。
  • playwright_screenshot:現在のページや特定の要素のスクリーンショットを撮影します。
  • スクリーンショットファイル名に対してname引数(文字列)が必要です。
  • オプションのselector引数(文字列)で、スクリーンショットする要素のCSSセレクタを指定します。セレクタがない場合は、全ページのスクリーンショットが撮影されます。
  • playwright_click:CSSセレクターを使ってページの要素をクリックします。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

playwright-server MCP server

\A MCP server with playwright tools\

Components

Resources

The server implements a simple note storage system with:

  • Custom note:// URI scheme for accessing individual notes
  • Each note resource has a name, description and text/plain mimetype

Prompts

The server provides a single prompt:

  • summarize-notes: Creates summaries of all stored notes
    • Optional “style” argument to control detail level (brief/detailed)
    • Generates prompt combining all current notes with style preference

Tools

The server implements the following tools:

  • playwright_navigate: Navigates to a specified URL. This operation will automatically create a new session if there is no active session.
    • Requires a url argument (string).
  • playwright_screenshot: Takes a screenshot of the current page or a specific element.
    • Requires a name argument (string) for the screenshot file name.
    • Optional selector argument (string) to specify a CSS selector for the element to screenshot. If no selector is provided, a full-page screenshot is taken.
  • playwright_click: Clicks an element on the page using a CSS selector.
    • Requires a selector argument (string) to specify the CSS selector for the element to click.
  • playwright_fill: Fills out an input field.
    • Requires a selector argument (string) to specify the CSS selector for the input field.
    • Requires a value argument (string) to specify the value to fill.
  • playwright_evaluate: Executes JavaScript code in the browser console.
    • Requires a script argument (string) to specify the JavaScript code to execute.
  • playwright_click_text: Clicks an element on the page by its text content.
    • Requires a text argument (string) to specify the text content of the element to click.
  • playwright_get_text_content: Get the text content of all visiable elements.
  • playwright_get_html_content: Get the HTML content of the page.
    • Requires a selector argument (string) to specify the CSS selector for the element.

Configuration

[TODO: Add configuration details specific to your implementation]

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

"mcpServers": {
  "playwright-server": {
    "command": "uvx",
    "args": [
GitHub で README 全文を見る

インストール

uvx playwright-server
MCP 初心者?mcpskill.org のガイドから始めましょう →