playwright-mcp-humanized
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@playwright-mcp-humanized Search Google for 'best MCP servers' and click the first result."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Playwright MCP Humanized š¤
A 100% drop-in replacement for Microsoft's @playwright/mcp that adds stealth anti-bot capabilities to AI agents.
By default, AI agents utilizing Playwright MCP operate completely like bots: cursor movements instantly teleport to coordinates, scrolling happens abruptly via CDP, and typing fills inputs in 0ms. This gets your agent immediately blocked by Cloudflare, DataDome, PerimeterX, and generic bot protection systems.
This project wraps Playwright's browser and context at runtime to automatically inject human-like behavior into the MCP layer:
ā
Curved Mouse Movements: Injects Bezier-curve cursor paths using ghost-cursor-playwright.
ā
Humanized Typing (fill() override): Types character-by-character with a log-normal distribution (30-150ms per keystroke) + longer pauses at word boundaries.
ā
Randomized Clicks: Clicks inside the element's bounding box are varied dynamically.
ā
Auto-Scroll Fix: Manual, chunked mouse.wheel() scroll-to-reveal overrides Playwright's instantaneous CDP leaps.
ā
Dropdown Scanning: selectOption() pauses for 150-350ms to simulate the user visually scanning options before clicking.
ā
Complete Scope Penetration: The humanized locators recursively propagate through page.locator(), filter(), nth(), and even penetrate frameLocator().
Fork note (v1.1.0, 2026-09-05): Ported to Playwright
1.63.0-alpha-2026-08-31so--extensionmode speaks MCP extension protocol v2 (required by the current Playwright Chrome extension). Upstream1.0.0is pinned to1.59.0-alpha/ protocol v1 and fails with "The client uses an unsupported protocol version." Changes: dependency bump; entry points now importdecorateMCPCommand/createConnectionfromplaywright-core/lib/coreBundle(Microsoft moved them out ofplaywright/lib/mcp). Humanizer (patch.js,humanize.js) unchanged.
ā” Setup / Installation
Because this tool shares the same API as @playwright/mcp, all you have to do is change the command pointing to your MCP configuration in Claude Desktop, OpenCode, or Cursor.
Install this fork from GitHub
{
"mcpServers": {
"playwright-bridge": {
"command": "npx",
"args": [
"-y",
"-p", "github:nicholasjayantylearns/playwright-mcp-humanized",
"playwright-mcp-humanized",
"--extension"
],
"env": {
"PLAYWRIGHT_MCP_EXTENSION_TOKEN": "YOUR_EXTENSION_TOKEN"
}
}
}
}-p <package> <bin> is required for tarball or GitHub specs ā the package ships two bins, so npx cannot infer which one to run and will otherwise try to execute the spec string itself. Get the token from the Playwright Extension's options page in the Chrome profile you automate with.
With npx from npm (upstream 1.0.0 ā protocol v1, does not work with the current extension)
Just change your config command to point to playwright-mcp-humanized:
{
"mcpServers": {
"playwright-humanized": {
"command": "npx",
"args": ["-y", "playwright-mcp-humanized"]
}
}
}With Playwright Bridge Extension (Connect to your real browser session)
If you're using Microsoft's Playwright Chrome Extension to connect to your actively logged-in Chrome session, this works perfectly out-of-the-box! Just pass the --extension flag and your token as usual:
{
"mcpServers": {
"playwright-extension": {
"command": "npx",
"args": [
"-y",
"playwright-mcp-humanized",
"--extension"
],
"env": {
"PLAYWRIGHT_MCP_EXTENSION_TOKEN": "YOUR_EXTENSION_TOKEN"
}
}
}
}Related MCP server: CloakBrowser MCP
How It Works
This project does not fork the internal protocol engine of Microsoft's MCP server. Doing so would mean missing out on upstream updates to the core MCP layer.
Instead, we monkey-patch Playwright at runtime. Before the MCP server initializes:
We intercept
playwright.chromium.launch(),connect(), andconnectOverCDP().We wrap new
ContextsandPages.We override the raw
page.mouseandpage.locator()APIs withhumanize.js.The MCP protocol handles standard parsing, while our interceptors translate its final actions into stealthy ones.
Credits & Dependencies
Original MCP Protocol Architecture by Microsoft / playwright-mcp.
Mouse humanization algorithms powered by ghost-cursor-playwright.
Built out of necessity to stop our AI agents from getting instantly IP banned.
Available Tools
24 toolsbrowser_clickBDestructive
Perform click on a web page
Inputs: target (required), button, element, modifiers, +1 more.
browser_closeBDestructive
Close the page
Inputs: no named parameters.
browser_console_messagesBRead-only
Returns all console messages
Inputs: level (required), all, filename.
browser_dragADestructive
Perform drag and drop between two elements
Inputs: endTarget (required), startTarget (required), endElement, startElement.
browser_dropADestructive
Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.
Inputs: target (required), data, paths, element.
browser_evaluateBDestructive
Evaluate JavaScript expression on page or element
Inputs: function (required), target, element, filename.
browser_file_uploadBDestructive
Upload one or multiple files
Inputs: paths.
browser_fill_formBDestructive
Fill multiple form fields
Inputs: fields (required).
browser_findARead-only
Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.
Inputs: text, regex.
browser_handle_dialogCDestructive
Handle a dialog
Inputs: accept (required), promptText.
browser_hoverADestructive
Hover over element on page
Inputs: target (required), element.
browser_network_requestARead-only
Returns full details (headers and body) of a single network request, or a single part if part is set. Use the number from browser_network_requests.
Inputs: index (required), part, filename.
browser_network_requestsARead-only
Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.
Inputs: static (required), filter, filename.
browser_press_keyBDestructive
Press a key on the keyboard
Inputs: key (required).
browser_resizeBDestructive
Resize the browser window
Inputs: width (required), height (required).
browser_run_code_unsafeADestructive
Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.
Inputs: code, filename.
browser_select_optionBDestructive
Select an option in a dropdown
Inputs: target (required), values (required), element.
browser_snapshotBRead-only
Capture accessibility snapshot of the current page, this is better than screenshot
Inputs: boxes, depth, target, filename.
browser_tabsADestructive
List, create, close, or select a browser tab.
Inputs: action (required), url, index.
browser_take_screenshotARead-only
Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
Inputs: scale (required), type, target, element, +2 more.
browser_typeBDestructive
Type text into editable element
Inputs: text (required), target (required), slowly, submit, +1 more.
browser_wait_forARead-only
Wait for text to appear or disappear or a specified time to pass
Inputs: text, time, textGone.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 24 tools
Most tools are clearly distinct (navigate, click, snapshot, screenshot, wait, tabs), but a few pairs could be confused: browser_evaluate vs browser_run_code_unsafe both execute JavaScript, and browser_drag vs browser_drop both describe drag/drop behavior. The descriptions do enough to clarify most boundaries.
All tools share the consistent browser_ prefix and snake_case style, which creates a predictable pattern. Minor deviations exist where some tools are noun-phrases rather than verb commands (browser_network_requests, browser_tabs, browser_snapshot), but these are not disruptive.
At 24 tools, the set is on the heavy side for the border of the recommended range. The domain is broad enough to justify many of them, but there is some redundancy (fill_form vs type, drag vs drop, evaluate vs run_code_unsafe) that makes the count feel slightly inflated.
The set covers the major browser automation lifecycle: navigation, interaction, form filling, waiting, snapshots, screenshots, console/network inspection, dialogs, tabs, and uploads. The main gap is browser forward navigation, and there is no dedicated reload action, but these can be worked around with browser_navigate or browser_run_code_unsafe.
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Browser automation MCP for whole web tasks in a cloud browser: saved logins, bot checks, replays.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Stealth web automation for AI agents. Login, signup, navigate, screenshot.
Related MCP Servers
- AlicenseCqualityBmaintenanceAn MCP server that provides a stealth-enhanced Playwright browser automation engine with anti-detection features, enabling AI agents to navigate websites, interact with elements, and bypass anti-bot systems.2492 PyPI4Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to drive a Playwright-compatible browser (with humanized mouse, keyboard, and scroll behavior, persistent profiles, extensions, and GeoIP-aware proxies) to research the web, automate daily tasks, and run tests, with unchanged upstream @playwright/mcp tools plus two local introspection tools. It installs via npm or Docker and speaks stdio or Streamable HTTP.297 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to automate a real Chromium browser through the unchanged upstream Playwright MCP tool surface, covering navigation, research, testing, and daily web workflows in plain language. It ships via npm or Docker over stdio or Streamable HTTP, and supports persistent login profiles, Chrome extension loading, proxy/GeoIP matching, and humanized mouse, keyboard, and scroll behavior.297 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents and MCP clients to automate real browser sessions through Playwright-compatible tools, including web research, testing, persistent profiles, proxy matching, and humanized interactions, with npm, Docker, stdio, and Streamable HTTP deployment options.297 npmMIT