agentic-playwright-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: SpidexLab's Multi-Tenant Browser MCP
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.
Selecting a tab does not raise Chrome. If the window is minimized or behind another app,
it stays there. Tools keep using targetId, so the tab does not have to be in front.
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
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Launch, inspect, control, and share isolated cloud browsers for your agents.
Your own browser in the cloud, logged in to your sites, shared by you and your AI.
Let AI agents observe and control Chrome tabs you explicitly share via Browse Bridge.
Related MCP Servers
- AlicenseNot 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.10MIT
- 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 gradedqualityBmaintenanceBrowser 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.90 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely control a user's existing signed-in Chrome browser through isolated tab groups, with strict per-session ownership and no cookie or token exposure.4 npmISC