Browser Use
ให้ AI ทำงานบนเว็บแทนคุณ เช่น กรอกฟอร์ม ค้นหา และดึงข้อมูล ใช้เบราว์เซอร์บนคลาวด์ของผู้ทำหรือรันในเครื่องก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Browser automation using Playwright with optional stealth mode to bypass anti-bot protection.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
STEALTH_MODE, STEALTH_USER_AGENT, STEALTH_MASK_LINUX, STEALTH_LOCALE, HEADLESS, TIMEOUT, NAVIGATION_TIMEOUT, SCREENSHOT_STORAGE_PATH, VIDEO_STORAGE_PATH, PROXY_URL, PROXY_USERNAME, PROXY_PASSWORD, PROXY_BYPASS, BROWSER_PERMISSIONS, IGNORE_HTTPS_ERRORSค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"playwright-stealth": {
"command": "npx",
"args": [
"-y",
"playwright-stealth-mcp-server"
],
"env": {
"STEALTH_MODE": "ใส่ค่าของคุณ",
"STEALTH_USER_AGENT": "ใส่ค่าของคุณ",
"STEALTH_MASK_LINUX": "ใส่ค่าของคุณ",
"STEALTH_LOCALE": "ใส่ค่าของคุณ",
"HEADLESS": "ใส่ค่าของคุณ",
"TIMEOUT": "ใส่ค่าของคุณ",
"NAVIGATION_TIMEOUT": "ใส่ค่าของคุณ",
"SCREENSHOT_STORAGE_PATH": "ใส่ค่าของคุณ",
"VIDEO_STORAGE_PATH": "ใส่ค่าของคุณ",
"PROXY_URL": "ใส่ค่าของคุณ",
"PROXY_USERNAME": "ใส่ค่าของคุณ",
"PROXY_PASSWORD": "ใส่ค่าของคุณ",
"PROXY_BYPASS": "ใส่ค่าของคุณ",
"BROWSER_PERMISSIONS": "ใส่ค่าของคุณ",
"IGNORE_HTTPS_ERRORS": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add playwright-stealth --env STEALTH_MODE='ใส่ค่าของคุณ' --env STEALTH_USER_AGENT='ใส่ค่าของคุณ' --env STEALTH_MASK_LINUX='ใส่ค่าของคุณ' --env STEALTH_LOCALE='ใส่ค่าของคุณ' --env HEADLESS='ใส่ค่าของคุณ' --env TIMEOUT='ใส่ค่าของคุณ' --env NAVIGATION_TIMEOUT='ใส่ค่าของคุณ' --env SCREENSHOT_STORAGE_PATH='ใส่ค่าของคุณ' --env VIDEO_STORAGE_PATH='ใส่ค่าของคุณ' --env PROXY_URL='ใส่ค่าของคุณ' --env PROXY_USERNAME='ใส่ค่าของคุณ' --env PROXY_PASSWORD='ใส่ค่าของคุณ' --env PROXY_BYPASS='ใส่ค่าของคุณ' --env BROWSER_PERMISSIONS='ใส่ค่าของคุณ' --env IGNORE_HTTPS_ERRORS='ใส่ค่าของคุณ' -- npx -y playwright-stealth-mcp-serverเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"playwright-stealth": {
"command": "npx",
"args": [
"-y",
"playwright-stealth-mcp-server"
],
"env": {
"STEALTH_MODE": "ใส่ค่าของคุณ",
"STEALTH_USER_AGENT": "ใส่ค่าของคุณ",
"STEALTH_MASK_LINUX": "ใส่ค่าของคุณ",
"STEALTH_LOCALE": "ใส่ค่าของคุณ",
"HEADLESS": "ใส่ค่าของคุณ",
"TIMEOUT": "ใส่ค่าของคุณ",
"NAVIGATION_TIMEOUT": "ใส่ค่าของคุณ",
"SCREENSHOT_STORAGE_PATH": "ใส่ค่าของคุณ",
"VIDEO_STORAGE_PATH": "ใส่ค่าของคุณ",
"PROXY_URL": "ใส่ค่าของคุณ",
"PROXY_USERNAME": "ใส่ค่าของคุณ",
"PROXY_PASSWORD": "ใส่ค่าของคุณ",
"PROXY_BYPASS": "ใส่ค่าของคุณ",
"BROWSER_PERMISSIONS": "ใส่ค่าของคุณ",
"IGNORE_HTTPS_ERRORS": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"playwright-stealth": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"playwright-stealth-mcp-server"
],
"env": {
"STEALTH_MODE": "ใส่ค่าของคุณ",
"STEALTH_USER_AGENT": "ใส่ค่าของคุณ",
"STEALTH_MASK_LINUX": "ใส่ค่าของคุณ",
"STEALTH_LOCALE": "ใส่ค่าของคุณ",
"HEADLESS": "ใส่ค่าของคุณ",
"TIMEOUT": "ใส่ค่าของคุณ",
"NAVIGATION_TIMEOUT": "ใส่ค่าของคุณ",
"SCREENSHOT_STORAGE_PATH": "ใส่ค่าของคุณ",
"VIDEO_STORAGE_PATH": "ใส่ค่าของคุณ",
"PROXY_URL": "ใส่ค่าของคุณ",
"PROXY_USERNAME": "ใส่ค่าของคุณ",
"PROXY_PASSWORD": "ใส่ค่าของคุณ",
"PROXY_BYPASS": "ใส่ค่าของคุณ",
"BROWSER_PERMISSIONS": "ใส่ค่าของคุณ",
"IGNORE_HTTPS_ERRORS": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
STEALTH_MODE envSTEALTH_USER_AGENT envSTEALTH_MASK_LINUX envSTEALTH_LOCALE envHEADLESS envTIMEOUT envNAVIGATION_TIMEOUT envSCREENSHOT_STORAGE_PATH envVIDEO_STORAGE_PATH envPROXY_URL envPROXY_BYPASS envBROWSER_PERMISSIONS envIGNORE_HTTPS_ERRORS envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันโดเมน pulsemcp.com แล้ว (registry ตรวจความเป็นเจ้าของโดเมน)
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: PROXY_USERNAME, PROXY_PASSWORD
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.3) เข้า registry 5 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Browser Use, Chrome DevTools MCP, MCP Server Browser
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ให้ AI ทำงานบนเว็บแทนคุณ เช่น กรอกฟอร์ม ค้นหา และดึงข้อมูล ใช้เบราว์เซอร์บนคลาวด์ของผู้ทำหรือรันในเครื่องก็ได้
ให้ AI ใช้เครื่องมือนักพัฒนาของ Chrome ตรวจหน้าเว็บ ดูว่าโหลดช้าตรงไหน และหาข้อผิดพลาด ทำโดยทีม Chrome DevTools
MCP server for browser use access
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A Model Context Protocol (MCP) server for browser automation using Playwright with optional stealth mode to bypass anti-bot protection.
browser_execute tool that exposes the full Playwright API instead of many specialized toolsplaywright-extra and puppeteer-extra-plugin-stealthpage objectnpx playwright-stealth-mcp-server
Or install globally:
npm install -g playwright-stealth-mcp-server
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" } } } }
| Variable | Description | Default |
|---|---|---|
STEALTH_MODE | Enable stealth mode with anti-detection measures | false |
STEALTH_USER_AGENT | Custom User-Agent string (stealth mode only) | Browser default |
STEALTH_MASK_LINUX | Mask Linux in User-Agent as Windows; set to false to avoid fingerprint mismatch | true |
STEALTH_LOCALE | Custom locale for Accept-Language header (stealth mode only) | en-US,en |
HEADLESS | Run browser in headless mode | true |
TIMEOUT | Default timeout for Playwright actions (click, fill, etc.) in milliseconds | 30000 |
NAVIGATION_TIMEOUT | Default timeout for page navigation (goto, reload, etc.) 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 (e.g., http://proxy.example.com:8080) | - |
PROXY_USERNAME | Proxy authentication username | - |
PROXY_PASSWORD | Proxy authentication password | - |
PROXY_BYPASS | Comma-separated list of hosts to bypass proxy | - |
BROWSER_PERMISSIONS | Comma-separated list of browser permissions to grant (see below) | All permissions |
IGNORE_HTTPS_ERRORS | Ignore HTTPS certificate errors (set to false for stricter security) | true |
browser_executeExecute 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_screenshotTake 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: falseselector (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 pixelsresultHandling (optional): How to handle the result:saveAndReturn (default): Saves to storage AND returns inline base64 imagesaveOnly: 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:
saveAndReturn: Inline base64 PNG image plus a resource_link with the file URIsaveOnly: Only a resource_link with the file:// URI to the saved screenshotbrowser_get_stateGet the current browser state including URL, title, and configuration.
browser_closeClose the browser session. A new browser will be launched on the next browser_execute call.
browser_start_recordingStart 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_recordingStop 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.
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 metadataresources/read: Read a screenshot or video by its file:// URIThis allows clients to access previously captured screenshots and recordings without needing to take new ones.
// 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;
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();
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;
Important: The browser_execute tool executes arbitrary JavaScript code. This design provides full Playwright API access but has security implications:
page objectThis is intentional for maximum flexibility - it allows LLMs to leverage their existing Playwright knowledge. For production use, ensure proper access controls are in place.
Enable stealth mode (STEALTH_MODE=true) when:
Stealth mode includes:
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:
navigator.platform still reports the actual OS (e.g., "Linux x86_64")STEALTH_MASK_LINUX=false disables this masking, allowing the real platform to showSTEALTH_USER_AGENT, you can present a consistent fingerprintConfigure proxy settings when:
The server supports HTTP/HTTPS proxies with optional authentication, making it compatible with:
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.
By default, the server ignores HTTPS certificate errors (IGNORE_HTTPS_ERRORS=true). This is convenient for common automation scenarios:
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
ตัดมาแค่ช่วงต้น อ่านต่อใน repo