MCP Browser Automation Server

local-only server

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

MCPブラウザ自動化

これは、Playwright によるブラウジングの自動化を目的とした、モデルコンテキストプロトコルベースのサーバー実装を練習するためのデモプロジェクトです。Claude デスクトップクライアントと連携してユーザープロンプトを受け付け、サーバーを介してブラウザを制御します。

前提条件

建物

  1. リポジトリをクローンします: git clone https://github.com/hrmeetsingh/mcp-browser-automation.git
  2. 依存関係をインストール: npm install
  3. 出力実行ファイルがdistフォルダに存在することを確認します

統合

  1. ~/Application\ Support/Claude/claude_desktop_config.jsonに設定ファイルを作成します(これは macOS 用です)
  2. 次の内容をファイルにコピーします。
{ "mcpServers": { "mcp-browser-automation": { "command": "node", "args": ["/path/to/mcp-browser-automation/dist/index.js"] } } }
  1. Claudeデスクトップを起動

使用法

  1. クロードデスクトップを開く
  2. 新しい会話を開始してブラウザを開き、URL に移動します

  • MCPサーバーオプションを追加しました
  • URL に移動して Playwright でアクションを実行する

You must be authenticated.

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

Claude Desktop を介して対話し、ユーザー定義のプロンプトと操作を実行することで、Playwright を使用してブラウザー タスクの自動化を有効にします。

  1. Pre-requisites
    1. Building
      1. Integration
        1. Usage
          1. Example
            ID: hokppvk1dy