Skip to main content
Glama

Playwright Server MCP

プレイライトサーバー MCP サーバー

\Playwrightツールを備えたMCPサーバー\

コンポーネント

リソース

サーバーは、次の機能を備えたシンプルなメモ保存システムを実装します。

  • 個々のノートにアクセスするためのカスタム note:// URI スキーム
  • 各ノートリソースには、名前、説明、text/plain mimetype があります。

プロンプト

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

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

ツール

サーバーは次のツールを実装します。

  • playwright_navigate : 指定されたURLへ移動します。アクティブなセッションがない場合、この操作は自動的に新しいセッションを作成します。
    • url引数 (文字列) が必要です。
  • playwright_screenshot : 現在のページまたは特定の要素のスクリーンショットを撮ります。
    • スクリーンショット ファイル名にはname引数 (文字列) が必要です。
    • スクリーンショットを撮影する要素のCSSセレクターを指定するためのオプションのselector引数(文字列)。セレクターが指定されていない場合は、ページ全体のスクリーンショットが撮影されます。
  • playwright_click : CSS セレクターを使用してページ上の要素をクリックします。
    • クリックする要素の CSS セレクターを指定するには、 selector引数 (文字列) が必要です。
  • playwright_fill : 入力フィールドに入力します。
    • 入力フィールドの CSS セレクターを指定するには、 selector引数 (文字列) が必要です。
    • 入力する値を指定するには、 value引数 (文字列) が必要です。
  • playwright_evaluate : ブラウザコンソールで JavaScript コードを実行します。
    • 実行する JavaScript コードを指定するには、 script引数 (文字列) が必要です。
  • playwright_click_text : ページ上の要素をテキストコンテンツでクリックします。
    • クリックする要素のテキスト コンテンツを指定するには、 text引数 (文字列) が必要です。
  • playwright_get_text_content : 表示されているすべての要素のテキスト コンテンツを取得します。
  • playwright_get_html_content : ページの HTML コンテンツを取得します。
    • 要素の CSS セレクターを指定するには、 selector引数 (文字列) が必要です。

構成

[TODO: 実装に固有の構成の詳細を追加する]

クイックスタート

インストール

クロードデスクトップ

MacOS の場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

発達

建築と出版

配布用のパッケージを準備するには:

  1. 依存関係を同期し、ロックファイルを更新します。
uv sync
  1. パッケージディストリビューションをビルドします。
uv build

これにより、 dist/ディレクトリにソースとホイールのディストリビューションが作成されます。

  1. 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 C:\Users\YUNYING\Documents\project\python\mcp\playwright-server run playwright-server

起動すると、ブラウザでアクセスしてデバッグを開始できる URL がインスペクタに表示されます。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

サーバーは、Playwright を使用した Web 自動化ツールを提供し、Web ページでのナビゲーション、インタラクション、JavaScript 実行を可能にし、要約機能を備えたメモの保存をサポートします。

  1. コンポーネント
    1. リソース
    2. プロンプト
    3. ツール
  2. 構成
    1. クイックスタート
      1. インストール
    2. 発達
      1. 建築と出版
      2. デバッグ

    Related MCP Servers

    • A
      security
      F
      license
      A
      quality
      A server that enables browser automation using Playwright, allowing interaction with web pages, capturing screenshots, and executing JavaScript in a browser environment through LLMs.
      Last updated -
      12
      9,457
      1
      TypeScript
    • A
      security
      F
      license
      A
      quality
      This TypeScript-based MCP server enables users to manage and summarize text notes, providing tools for note creation and summarization prompts.
      Last updated -
      1
      598
      9
      TypeScript
      • Apple
    • A
      security
      A
      license
      A
      quality
      This TypeScript-based server implements a simple notes system using MCP concepts, enabling users to create, list, and summarize text notes through natural language prompts.
      Last updated -
      5
      198
      193
      JavaScript
      MIT License
      • Apple
    • -
      security
      F
      license
      -
      quality
      Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.
      Last updated -
      2
      TypeScript

    View all related MCP servers

    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/blackwhite084/playwright-plus-python-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server