プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Playwright Stealth

作者:pulsemcpバージョン 0.2.3i★ 81 (リポジトリ全体のスター)iパソコンで動く
レジストリ名com.pulsemcp/playwright-stealth

インストール方法

What it does

Browser automation using Playwright with optional stealth mode to bypass anti-bot protection.

  • Connects パソコンで動く
  • Account or key Needs PROXY_USERNAME, PROXY_PASSWORD
  • Category ウェブ・ブラウザ

インストール

使っているAIアプリを選んで、設定をコピーしてください。

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月14日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

Playwright Stealth のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

  1. Node.js を入れる

    1 回だけ。Node.js が必要なすべてのサーバーで使えます

    Node.js のダウンロードページを開く ↗

  2. Playwright Stealth に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。

    キーの取り方は下の提供元 README にあります

  3. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  4. この設定を貼り付けて保存

    {
      "mcpServers": {
        "playwright-stealth": {
          "command": "npx",
          "args": [
            "-y",
            "playwright-stealth-mcp-server"
          ],
          "env": {
            "PROXY_USERNAME": "your-value",
            "PROXY_PASSWORD": "your-value"
          }
        }
      }
    }

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  5. Claude を終了してもう一度開く

  6. 試してみる

    Playwright Stealth を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Playwright Stealth を使っていると言うか、回答に Playwright Stealth のツール名が出れば接続成功です

追加の設定 13 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • STEALTH_MODE Enable stealth mode with anti-detection measures. · 初期値 false
  • STEALTH_USER_AGENT Custom User-Agent string for stealth mode.
  • STEALTH_MASK_LINUX Mask Linux in User-Agent as Windows to avoid fingerprint mismatch. · 初期値 true
  • STEALTH_LOCALE Custom locale for Accept-Language header in stealth mode. · 初期値 en-US,en
  • HEADLESS Run browser in headless mode. · 初期値 true
  • TIMEOUT Default timeout for Playwright actions in milliseconds. · 初期値 30000
  • NAVIGATION_TIMEOUT Default timeout for page navigation in milliseconds. · 初期値 60000
  • SCREENSHOT_STORAGE_PATH Directory for storing screenshots. · 初期値 /tmp/playwright-screenshots
  • VIDEO_STORAGE_PATH Directory for storing video recordings. · 初期値 /tmp/playwright-videos
  • PROXY_URL Proxy server URL for connections.
  • PROXY_BYPASS Comma-separated list of hosts to bypass proxy.
  • BROWSER_PERMISSIONS Comma-separated list of browser permissions to grant.
  • IGNORE_HTTPS_ERRORS Ignore HTTPS certificate errors. · 初期値 true

説明は英語の原文のままです。

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Playwright Stealth につなげません

Playwright Stealth はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Playwright Stealth につなげるアプリを使う

  • Playwright Stealth のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • Playwright Stealth のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)
  • Playwright Stealth のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)
  • Playwright Stealth のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)

B · ウェブ・ブラウザ の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

Playwright Stealth のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)

  1. Node.js を入れる

    1 回だけ。Node.js が必要なすべてのサーバーで使えます

    Node.js のダウンロードページを開く ↗

  2. Playwright Stealth に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。

    キーの取り方は下の提供元 README にあります

  3. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  4. このコマンドを貼り付けて Enter

    claude mcp add --scope user playwright-stealth --env PROXY_USERNAME=your-value --env PROXY_PASSWORD=your-value -- npx -y playwright-stealth-mcp-server

    Enter の前に「your-value」を自分のキーに書き換えてください

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  5. Claude Code で /mcp と入力

    Playwright Stealth が一覧にあり、接続済みと表示されれば OK です

  6. 試してみる

    Playwright Stealth を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Playwright Stealth を使っていると言うか、回答に Playwright Stealth のツール名が出れば接続成功です

追加の設定 13 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • STEALTH_MODE Enable stealth mode with anti-detection measures. · 初期値 false
  • STEALTH_USER_AGENT Custom User-Agent string for stealth mode.
  • STEALTH_MASK_LINUX Mask Linux in User-Agent as Windows to avoid fingerprint mismatch. · 初期値 true
  • STEALTH_LOCALE Custom locale for Accept-Language header in stealth mode. · 初期値 en-US,en
  • HEADLESS Run browser in headless mode. · 初期値 true
  • TIMEOUT Default timeout for Playwright actions in milliseconds. · 初期値 30000
  • NAVIGATION_TIMEOUT Default timeout for page navigation in milliseconds. · 初期値 60000
  • SCREENSHOT_STORAGE_PATH Directory for storing screenshots. · 初期値 /tmp/playwright-screenshots
  • VIDEO_STORAGE_PATH Directory for storing video recordings. · 初期値 /tmp/playwright-videos
  • PROXY_URL Proxy server URL for connections.
  • PROXY_BYPASS Comma-separated list of hosts to bypass proxy.
  • BROWSER_PERMISSIONS Comma-separated list of browser permissions to grant.
  • IGNORE_HTTPS_ERRORS Ignore HTTPS certificate errors. · 初期値 true

説明は英語の原文のままです。

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

Playwright Stealth のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)

  1. Node.js を入れる

    1 回だけ。Node.js が必要なすべてのサーバーで使えます

    Node.js のダウンロードページを開く ↗

  2. Playwright Stealth に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。

    キーの取り方は下の提供元 README にあります

  3. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  4. キーを入力

    Playwright Stealth の設定で PROXY_USERNAME, PROXY_PASSWORD が空です。自分のキーを入れて保存します

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  5. Cursor の AI チャットを Agent モードで開く

  6. 試してみる

    Playwright Stealth を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Playwright Stealth を使っていると言うか、回答に Playwright Stealth のツール名が出れば接続成功です

追加の設定 13 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • STEALTH_MODE Enable stealth mode with anti-detection measures. · 初期値 false
  • STEALTH_USER_AGENT Custom User-Agent string for stealth mode.
  • STEALTH_MASK_LINUX Mask Linux in User-Agent as Windows to avoid fingerprint mismatch. · 初期値 true
  • STEALTH_LOCALE Custom locale for Accept-Language header in stealth mode. · 初期値 en-US,en
  • HEADLESS Run browser in headless mode. · 初期値 true
  • TIMEOUT Default timeout for Playwright actions in milliseconds. · 初期値 30000
  • NAVIGATION_TIMEOUT Default timeout for page navigation in milliseconds. · 初期値 60000
  • SCREENSHOT_STORAGE_PATH Directory for storing screenshots. · 初期値 /tmp/playwright-screenshots
  • VIDEO_STORAGE_PATH Directory for storing video recordings. · 初期値 /tmp/playwright-videos
  • PROXY_URL Proxy server URL for connections.
  • PROXY_BYPASS Comma-separated list of hosts to bypass proxy.
  • BROWSER_PERMISSIONS Comma-separated list of browser permissions to grant.
  • IGNORE_HTTPS_ERRORS Ignore HTTPS certificate errors. · 初期値 true

説明は英語の原文のままです。

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

Playwright Stealth のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)

  1. Node.js を入れる

    1 回だけ。Node.js が必要なすべてのサーバーで使えます

    Node.js のダウンロードページを開く ↗

  2. Playwright Stealth に登録してキーを作る

    提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。

    キーの取り方は下の提供元 README にあります

  3. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  4. キーを入力

    Playwright Stealth の設定で PROXY_USERNAME, PROXY_PASSWORD が空です。自分のキーを入れて保存します

    キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください

  5. VS Code の AI チャットを Agent モードで開く

  6. 試してみる

    Playwright Stealth を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Playwright Stealth を使っていると言うか、回答に Playwright Stealth のツール名が出れば接続成功です

追加の設定 13 項目(入力しなくても使えます)

上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。

  • STEALTH_MODE Enable stealth mode with anti-detection measures. · 初期値 false
  • STEALTH_USER_AGENT Custom User-Agent string for stealth mode.
  • STEALTH_MASK_LINUX Mask Linux in User-Agent as Windows to avoid fingerprint mismatch. · 初期値 true
  • STEALTH_LOCALE Custom locale for Accept-Language header in stealth mode. · 初期値 en-US,en
  • HEADLESS Run browser in headless mode. · 初期値 true
  • TIMEOUT Default timeout for Playwright actions in milliseconds. · 初期値 30000
  • NAVIGATION_TIMEOUT Default timeout for page navigation in milliseconds. · 初期値 60000
  • SCREENSHOT_STORAGE_PATH Directory for storing screenshots. · 初期値 /tmp/playwright-screenshots
  • VIDEO_STORAGE_PATH Directory for storing video recordings. · 初期値 /tmp/playwright-videos
  • PROXY_URL Proxy server URL for connections.
  • PROXY_BYPASS Comma-separated list of hosts to bypass proxy.
  • BROWSER_PERMISSIONS Comma-separated list of browser permissions to grant.
  • IGNORE_HTTPS_ERRORS Ignore HTTPS certificate errors. · 初期値 true

説明は英語の原文のままです。

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Playwright Stealth を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user playwright-stealth --env PROXY_USERNAME=your-value --env PROXY_PASSWORD=your-value -- npx -y playwright-stealth-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "playwright-stealth": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-stealth-mcp-server"
      ],
      "env": {
        "PROXY_USERNAME": "your-value",
        "PROXY_PASSWORD": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "playwright-stealth": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-stealth-mcp-server"
      ],
      "env": {
        "PROXY_USERNAME": "your-value",
        "PROXY_PASSWORD": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "playwright-stealth": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "playwright-stealth-mcp-server"
      ],
      "env": {
        "PROXY_USERNAME": "your-value",
        "PROXY_PASSWORD": "your-value"
      }
    }
  }
}

自分で入力する値

  • STEALTH_MODE env
    Enable stealth mode with anti-detection measures.
  • STEALTH_USER_AGENT env
    Custom User-Agent string for stealth mode.
  • STEALTH_MASK_LINUX env
    Mask Linux in User-Agent as Windows to avoid fingerprint mismatch.
  • STEALTH_LOCALE env
    Custom locale for Accept-Language header in stealth mode.
  • HEADLESS env
    Run browser in headless mode.
  • TIMEOUT env
    Default timeout for Playwright actions in milliseconds.
  • NAVIGATION_TIMEOUT env
    Default timeout for page navigation in milliseconds.
  • SCREENSHOT_STORAGE_PATH env
    Directory for storing screenshots.
  • VIDEO_STORAGE_PATH env
    Directory for storing video recordings.
  • PROXY_URL env
    Proxy server URL for connections.
  • PROXY_USERNAME 秘密 必須 env
    Proxy authentication username.
  • PROXY_PASSWORD 秘密 必須 env
    Proxy authentication password.
  • PROXY_BYPASS env
    Comma-separated list of hosts to bypass proxy.
  • BROWSER_PERMISSIONS env
    Comma-separated list of browser permissions to grant.
  • IGNORE_HTTPS_ERRORS env
    Ignore HTTPS certificate errors.

説明は英語の原文のままです。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

GitHubスターi
81 (リポジトリ全体のスター)
このリポジトリには複数の MCP があり、スターは順位で1件だけ数えます
週あたりのダウンロードi
281/週
確認済みドメイン
✓ pulsemcp.com
接続方法
パソコンで動く
最新バージョンi
0.2.3
レジストリ公開日i
2026年6月17日
コードの最終更新i
2026年10月10日
作者
pulsemcp
パッケージ
npm: playwright-stealth-mcp-server
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月14日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名はドメイン pulsemcp.com で確認済みです(レジストリがドメインの所有を確認しています)

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:35 日前

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

Google でログインして投稿

ユーザーレビュー

まだレビューはありません

Google でログインしてレビューを書く

ウェブ・ブラウザのほかのサーバーとの比較i

  • このカテゴリのほかの1513件のうち0%よりスターが多い
  • このカテゴリのほかの1513件のうち11%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1513件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Playwright Stealthは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:PROXY_USERNAME, PROXY_PASSWORD

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は35 日前、最新バージョン(0.2.3)がレジストリに届いたのは5 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Browser Use, Scrapling MCP Server, Chrome DevTools MCP

同じカテゴリのほかの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Browser Use

Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.

作者:browser-use広く使われている↓ 167.3万/週★ 12.1万24 日前更新

パソコンでもクラウドでも✓ 提供元 · browser-use.com

Scrapling MCP Server

Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.

作者:D4Vinci広く使われている↓ 39.7万/週★ 10.2万9 日前更新

パソコンで動く

Chrome DevTools MCP

MCP server for Chrome DevTools

作者:ChromeDevTools広く使われている↓ 186.9万/週★ 5.5万3 日前更新

パソコンで動く

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Playwright Stealth MCP Server

A Model Context Protocol (MCP) server for browser automation using Playwright with optional stealth mode to bypass anti-bot protection.

Features

  • Simplified API: Single browser_execute tool that exposes the full Playwright API instead of many specialized tools
  • Stealth Mode: Optional anti-detection measures using playwright-extra and puppeteer-extra-plugin-stealth
  • Persistent Sessions: Browser session persists across tool calls for multi-step automation
  • Screenshot Support: Capture page screenshots for visual verification
  • Video Recording: Record browser interactions as WebM videos with explicit start/stop controls
  • Code Execution: Run arbitrary Playwright code with access to the page object
  • Full Permissions: All browser permissions (notifications, geolocation, camera, etc.) granted by default for testing web apps

Installation

npx playwright-stealth-mcp-server

Or install globally:

npm install -g playwright-stealth-mcp-server

Configuration

Claude Desktop Configuration

Add to your Claude Desktop config file:

Non-Stealth Mode (Standard Playwright):

{

"mcpServers": { "playwright": { "command": "npx", "args": ["-y", "playwright-stealth-mcp-server"], "env": { "STEALTH_MODE": "false" } } } }

Stealth Mode (Anti-bot bypass):

{

"mcpServers": { "playwright-stealth": { "command": "npx", "args": ["-y", "playwright-stealth-mcp-server"], "env": { "STEALTH_MODE": "true" } } } }

With Proxy (e.g., BrightData Residential Proxy):

{

"mcpServers": { "playwright-proxy": { "command": "npx", "args": ["-y", "playwright-stealth-mcp-server"], "env": { "STEALTH_MODE": "true", "PROXY_URL": "http://brd.superproxy.io:22225", "PROXY_USERNAME": "brd-customer-XXXXX-zone-residential", "PROXY_PASSWORD": "your-password" } } } }

Environment Variables
VariableDescriptionDefault
STEALTH_MODEEnable stealth mode with anti-detection measuresfalse
STEALTH_USER_AGENTCustom User-Agent string (stealth mode only)Browser default
STEALTH_MASK_LINUXMask Linux in User-Agent as Windows; set to false to avoid fingerprint mismatchtrue
STEALTH_LOCALECustom locale for Accept-Language header (stealth mode only)en-US,en
HEADLESSRun browser in headless modetrue
TIMEOUTDefault timeout for Playwright actions (click, fill, etc.) in milliseconds30000
NAVIGATION_TIMEOUTDefault timeout for page navigation (goto, reload, etc.) in milliseconds60000
SCREENSHOT_STORAGE_PATHDirectory for storing screenshots/tmp/playwright-screenshots
VIDEO_STORAGE_PATHDirectory for storing video recordings/tmp/playwright-videos
PROXY_URLProxy server URL (e.g., http://proxy.example.com:8080)-
PROXY_USERNAMEProxy authentication username-
PROXY_PASSWORDProxy authentication password-
PROXY_BYPASSComma-separated list of hosts to bypass proxy-
BROWSER_PERMISSIONSComma-separated list of browser permissions to grant (see below)All permissions
IGNORE_HTTPS_ERRORSIgnore HTTPS certificate errors (set to false for stricter security)true

Available Tools

browser_execute

Execute Playwright code with access to the page object.

Parameters:

  • code (required): JavaScript code to execute. The page object is available in scope.
  • timeout (optional): Execution timeout in milliseconds.

Example:

await page.goto('https://example.com');

const title = await page.title(); return title;

browser_screenshot

Take a screenshot of the current page, a specific element, or a page region. Screenshots are saved to filesystem storage and can be accessed later via MCP resources.

Parameters:

  • fullPage (optional): Capture full scrollable page. Default: false
  • selector (optional): CSS selector of a specific element to screenshot (e.g., #main-content, .hero-banner, table.results)
  • clip (optional): Region of the page to screenshot as {x, y, width, height} in pixels
  • resultHandling (optional): How to handle the result:
  • saveAndReturn (default): Saves to storage AND returns inline base64 image
  • saveOnly: Saves to storage and returns only the resource URI (more efficient for large screenshots)

Note: fullPage, selector, and clip are mutually exclusive. Only one can be specified per call.

Returns:

  • With saveAndReturn: Inline base64 PNG image plus a resource_link with the file URI
  • With saveOnly: Only a resource_link with the file:// URI to the saved screenshot
browser_get_state

Get the current browser state including URL, title, and configuration.

browser_close

Close the browser session. A new browser will be launched on the next browser_execute call.

browser_start_recording

Start recording the browser session as a WebM video.

This tool recycles the browser context with video recording enabled. Session state (cookies, localStorage, sessionStorage) is automatically preserved across the context recycling.

If called while already recording, the current recording is automatically stopped and saved before starting a new one.

browser_stop_recording

Stop recording and save the video.

Returns a resource_link with the file:// URI to the saved video (WebM format). Session state is preserved — the browser navigates back to the previous URL automatically.

Returns an error if no recording is active.

MCP Resources

The server exposes saved screenshots and video recordings as MCP resources. Clients can use:

  • resources/list: List all saved screenshots and videos with their URIs and metadata
  • resources/read: Read a screenshot or video by its file:// URI

This allows clients to access previously captured screenshots and recordings without needing to take new ones.

Usage Examples

Navigate and Extract Data
// Navigate to a page

await page.goto('https://news.ycombinator.com');

// Extract headlines const headlines = await page.$$eval('.titleline > a', (links) => links.slice(0, 5).map((a) => a.textContent) );

return headlines;

Fill and Submit a Form
await page.goto('https://example.com/login');

// Fill credentials await page.fill('input[name="email"]', 'user@example.com'); await page.fill('input[name="password"]', 'password123');

// Submit form await page.click('button[type="submit"]');

// Wait for navigation await page.waitForNavigation();

return await page.title();

Handle Dynamic Content
await page.goto('https://spa-example.com');

// Wait for element to appear await page.waitForSelector('.loaded-content');

// Click to load more await page.click('.load-more-button');

// Wait for new content await page.waitForSelector('.new-items');

const items = await page.$$eval('.item', (els) => els.map((el) => el.textContent)); return items;

Security Considerations

Important: The browser_execute tool executes arbitrary JavaScript code. This design provides full Playwright API access but has security implications:

  • Only use this server with trusted input (e.g., from an LLM in a controlled environment)
  • The code runs in a Node.js context with access to the page object
  • Do not expose this server to untrusted users or public networks

This is intentional for maximum flexibility - it allows LLMs to leverage their existing Playwright knowledge. For production use, ensure proper access controls are in place.

When to Use Stealth Mode

Enable stealth mode (STEALTH_MODE=true) when:

  • Accessing sites with Cloudflare protection
  • Sites that block automation tools
  • Pages that detect headless browsers
  • OAuth flows that trigger CAPTCHA challenges

Stealth mode includes:

  • WebDriver property masking
  • Chrome automation flag removal
  • User-Agent normalization
  • Plugin/mime type spoofing
  • Navigator property patching
Fingerprint Configuration

When running in Docker/Linux environments, bot detection systems may identify a fingerprint mismatch between the User-Agent header and other browser signals like navigator.platform. Use these environment variables to configure consistent fingerprints:

Example: macOS Fingerprint (for Docker/Linux)

{

"mcpServers": { "playwright-stealth": { "command": "npx", "args": ["-y", "playwright-stealth-mcp-server"], "env": { "STEALTH_MODE": "true", "STEALTH_USER_AGENT": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", "STEALTH_MASK_LINUX": "false" } } } }

Why this matters:

  • By default, stealth mode masks Linux as Windows in the User-Agent header only
  • However, navigator.platform still reports the actual OS (e.g., "Linux x86_64")
  • This mismatch between User-Agent and platform triggers bot detection
  • Setting STEALTH_MASK_LINUX=false disables this masking, allowing the real platform to show
  • Combined with a custom STEALTH_USER_AGENT, you can present a consistent fingerprint

When to Use Proxy

Configure proxy settings when:

  • Scraping sites that rate-limit by IP address
  • Accessing geo-restricted content
  • Avoiding IP-based blocks or bans
  • Rotating IPs for large-scale data collection

The server supports HTTP/HTTPS proxies with optional authentication, making it compatible with:

  • BrightData (Residential, Datacenter, ISP proxies)
  • Oxylabs, Smartproxy, and other residential proxy providers
  • Self-hosted proxy servers
  • Corporate HTTP proxies

Note: When proxy is configured, the server performs a health check on startup to verify the proxy connection works. If the health check fails, the server will exit with an error.

HTTPS Certificate Errors

By default, the server ignores HTTPS certificate errors (IGNORE_HTTPS_ERRORS=true). This is convenient for common automation scenarios:

  • Docker environments where SSL certificates may not match hostnames
  • Corporate networks with MITM proxies that re-sign certificates
  • Self-signed certificates in development or staging environments
  • Residential proxies that perform HTTPS inspection

To enable strict certificate validation, set IGNORE_HTTPS_ERRORS=false:

{

"mcpServers": { "playwright": { "command": "npx", "args": ["-y", "playwright-stealth-mcp-server"], "env": { "IGNORE_HTTPS_ERRORS": "false" } } } }

Security Note: For production environments where certificate validation is important, se

冒頭だけを表示しています。続きはリポジトリで読めます