Five steps from install to a first question.
MCP Playwright is an MCP tool: you install it, point your agent at it, and then ask in plain language.
- Illustrative$ mcp-playwright versionmcp-playwright 2.2.10$ aidc install playwright latest nodejs@22Step 1 of 5
Check that it arrived
The MAIT image ships
mcp-playwrightand updates it with the image. It runs on Linux. On macOS and Windows, MCP Playwright runs in the managed Linux environment that AIDC Launch provides (see Prepare AIDC Launch). Install the browser integration and browsers with AIDC, which uses a private Node.js runtime.The service looks for the integration on its
PATH, then under~/.aidc/installs/playwright/<version>/bin/. Chromium and Firefox are enabled by default, and each must be installed. See AIDC and mait-image.What you getThe version command answers, and the browsers are installed where the service looks for them.
- Illustrative
mcp_registry_add { "name": "playwright", "transport": "stdio", "command": "/usr/local/bin/mcp-playwright", "args": ["serve"] }Step 2 of 5Register it as a backend of MCP Registry
If you reach your tools through the registry, add playwright once and every client sees it with the
playwright__prefix. Follow the registry guide and callmcp_registry_add.What you getOne entry in the registry that every client sees, with the tools prefixed
playwright__. { "mcpServers": { "playwright": { "command": "mcp-playwright", "args": ["serve"], "env": { "MCP_SUPPORTED_BROWSERS": "chromium,firefox" } } } }Step 3 of 5Configure your agent directly (generic)
Any client that accepts an
mcpServerslaunch entry uses this shape. Place it where your client keeps server configuration and restart the client.Leave
MAIT_LOG_FORMATunset in the launch environment.What you getA client that starts the service on its own and keeps one session open.
Client Where the entry goes Claude Code The mcpServersentry from step 3, in the project's.mcp.jsonCursor The same entry, in Cursor's mcp.jsonCodex, VS Code and other clients The same entry in the client's own MCP settings Step 4 of 5Agent CLI examples
The client must keep one session open and be able to read resources.
What you getThe same server entry in whichever client you use.
- Illustrative conversationYouOpen https://example.com in Chromium and tell me what is on the page.Tool callbrowser_start { "browser": "chromium" }What happensA Chromium instance starts and returns a browserId.Tool callbrowser_navigate { "browserId": "<chromium-id>", "url": "https://example.com" }Tool callbrowser_snapshot { "browserId": "<chromium-id>" }AgentThe page title is Example Domain, with one heading and a link to learn more.Illustrative conversationYouCompare this page in Chromium and Firefox and save a screenshot from each.Tool callbrowser_group_create { "groupId": "comparison", "browserIds": ["<chromium-id>", "<firefox-id>"] }Tool callbrowser_navigate { "browserId": "comparison", "url": "https://example.com" }What happensOne call reaches both browsers and returns a summary with one result per browser.Tool callbrowser_take_screenshot { "browserId": "<chromium-id>", "filename": "comparison-chromium.png" }Tool callbrowser_take_screenshot { "browserId": "<firefox-id>", "filename": "comparison-firefox.png" }What happensTwo screenshots are published as resources; the replies carry URIs, not image data.AgentBoth engines loaded the page. I saved one screenshot each, so you can compare them.Illustrative conversationYouUse a separate browser for the admin test account and stop it when done.Tool callbrowser_start { "browser": "firefox" }What happensA second browser with its own id and its own website state starts in this session.Tool callbrowser_list {}AgentTwo browsers are running in this session. I will sign in as the admin only in the Firefox one.Tool callbrowser_stop { "browserId": "<firefox-id>" }What happensThe browser ends and its id disappears from the list.Step 5 of 5
Talk to it
Ask in plain language. The agent starts browsers, keeps their ids and fetches captures by reference.
What you getAnswers from a real page, with evidence returned as references instead of pasted images.
Installed, reachable and answering.
MCP Playwright is installed, reachable from your agent and answering in conversation. Keep all calls on one connection: ids and resources belong to that session.