agentic-playwright-mcp
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., "@agentic-playwright-mcpOpen a new tab, navigate to the app, and use the shared login to access the dashboard"
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.
agentic-playwright-mcp
agentic-playwright-mcp lets multiple agents control one Chrome instance without sending
commands to the wrong tab. Each browser tool accepts a targetId. Agents can also use a
groupId to list and control only their own tabs.
This package is an independent fork of Playwright MCP. It is not a Microsoft package.
Run the MCP server
Use this command as the server command in your MCP client:
npx --yes agentic-playwright-mcpFor clients that use JSON configuration, add:
{
"mcpServers": {
"agentic-playwright-mcp": {
"command": "npx",
"args": ["--yes", "agentic-playwright-mcp"]
}
}
}The command starts an MCP server over standard input and output. It waits for requests from an MCP client, so running it directly does not open a prompt or web page.
Chrome starts when the client calls the first browser tool. The server uses one headed
Chrome instance and stores its profile in ~/.agentic-playwright-mcp.
To restart Chrome if it exits, add --keep-alive to the arguments:
"args": ["--yes", "agentic-playwright-mcp", "--keep-alive"]To connect to an existing browser, start Chrome with remote debugging and add
--cdp-endpoint:
"args": [
"--yes",
"agentic-playwright-mcp",
"--cdp-endpoint",
"http://localhost:9222"
]Related MCP server: agent-tab-bridge
Install the CLI
Install the package globally if you do not want the MCP client to run it through npx:
npm install --global agentic-playwright-mcp
apmcp --helpThe package installs these commands:
agentic-playwright-mcpandapmcpstart the MCP server.agentic-playwright-mcp-daemonandapmcp-daemonmanage the Chrome daemon.
Keep agent tabs separate
Call
browser_tab_groupwithaction: "create". Save the returnedgroupId.Call
browser_tabswithaction: "new"and thegroupId. Save the returnedtargetId.Pass the same
targetIdandgroupIdto later browser calls.
Cookies, local storage, and sign-in state remain shared because all groups use the same
Chrome profile. A person can complete an interactive sign-in, then the agent can continue
on the same targetId.
The package includes a companion extension and loads it through CDP when Chrome starts. When Chrome allows the extension, group listings include native groups that a person made in the tab strip. If browser policy blocks the extension, MCP group isolation still works.
Security
browser_run_code_unsafe runs JavaScript with access to the selected Playwright page.
Only let trusted clients call this tool.
The Chrome DevTools Protocol endpoint listens on localhost:9223 by default. Do not
expose this port to other machines.
Documentation
Develop from source
git clone https://github.com/TechyAditya/agentic-playwright-mcp.git
cd agentic-playwright-mcp
npm ci
npm run build
npm test
npm run test:e2eDifferences from Playwright MCP
Capability | agentic-playwright-mcp | Playwright MCP |
Tab selection | Each browser tool accepts | One implicit current tab |
Agent isolation |
| No tab groups |
Browser session | One headed Chrome profile with shared cookies | Separate browser by default |
Checkpoints | Captures checkpoints and generates reports | No checkpoint tools |
Use Playwright MCP when one agent owns the browser. Use this package when agents must share a signed-in browser without sharing tab control.
License and attribution
This project includes work by Patrick Menlove and code from OpenClaw. See the license file for attribution and license terms.
This server cannot be deployed
Maintenance
Related MCP Connectors
- TabfleetOAuthcom.tabfleet
Launch, inspect, control, and share isolated cloud browsers for your agents.
Undetectable cloud browser sessions for AI agents and scrapers. Navigate, extract, click, captcha.
Run multi-step tasks in a real Chrome browser: persistent environments, live view, human takeover.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA multi-agent orchestrator that enables multiple AI agents to share a single Chrome browser instance with tab isolation and shared state. It preserves local browser data like cookies and logins while allowing concurrent agent sessions through the official Playwright MCP.10-
- FlicenseNot gradedqualityCmaintenanceEnables local AI agents to control Chrome in parallel with isolated tab groups, supporting operations like navigation, clicks, and form filling without interference.-
- AlicenseNot gradedqualityDmaintenanceEnables multiple autonomous agents to concurrently control separate tabs in a single Chrome instance, with features like semantic search and network monitoring.1MIT
- AlicenseNot gradedqualityAmaintenanceBrowser automation for OpenCode using Chrome DevTools and a shared Chromium profile, with per-session tab isolation so concurrent agents don't interfere. Enables browser agents to use existing signed-in sessions with shared cookies and extensions.64 npm1MIT