Agent Tool Radar field guide
Choose MCP servers for browser automation by the evidence you need
For browser automation with Claude Code, start by connecting a browser MCP server and checking one observable page result. Use structured page information to choose an action and screenshots to inspect the visual outcome. This guide adds a source-documented Playwright MCP setup and a reproducible local-page exercise.
Two useful candidates with different emphasis
Microsoft’s Playwright MCP exposes browser automation using structured accessibility snapshots. Chrome DevTools MCP emphasizes live Chrome inspection, automation, network and console diagnostics, and performance traces. Their capabilities overlap, so the choice should follow your task rather than a broad claim that one is the best browser server.
For a form flow, begin by asking whether the agent can identify controls, enter data and verify the outcome. For a slow or failing page, ask whether it can inspect the failed request, console output or trace needed to explain the symptom. Read the current tool surface and prerequisites before adding the server to your client.
The Playwright MCP repository also discusses a CLI-plus-skills alternative for coding agents. MCP is therefore not a requirement for all browser work. If your existing runner and CLI already produce the necessary evidence, adding a persistent server may introduce complexity without improving the task.
| Need | Candidate to inspect | Evidence to request |
|---|---|---|
| Explore an accessible form flow | Playwright MCP | Page structure, interactions and visible outcome. |
| Investigate a Chrome request failure | Chrome DevTools MCP | Request details, console output and reproduction steps. |
| Understand rendering or loading cost | Chrome DevTools MCP | A trace with environment and concrete observations. |
| Maintain repeatable regression coverage | The project’s browser test runner | A committed assertion and rerunnable command. |
Set up Playwright MCP in Claude Code
The upstream Playwright MCP README documents a Claude Code installation command. Check the current runtime prerequisites in that README, open your intended project and choose the configuration scope deliberately. The command below follows the documented local process setup; it is not a claim that this directory installed or exercised the MCP connection.
Inspect the MCP connection in your client before asking for a page action. If it fails, resolve the server startup/runtime issue first. An account subscription for the coding agent and a browser server are separate prerequisites; this guide does not promise that an agent account or optional service is free.
claude mcp add playwright -- npx @playwright/mcp@latest # Inspect the connection in Claude Code: /mcp
A local-page exercise: snapshot, action, screenshot
Serve a development page you control and use a dedicated browser context. Give the agent the actual local URL and one task: open the page, read its current structure, search for a known resource, and verify the visible result. Do not attach an unrelated personal session just to avoid a setup step.
A snapshot gives the agent inspectable page structure for choosing a target. A screenshot records what was visible. Neither alone proves that a save or network operation succeeded. For a search task, verify the result names and count; for a form, verify the application’s accepted state.
The prompt below is an original exercise. The connection instructions are source-documented; the directory’s local browser check is separate from an end-to-end Playwright MCP or Claude Code test.
Open the local development URL I provide. Inspect the page before choosing a control. Search the directory for a known resource. Confirm that the matching resource link is visible. Capture a screenshot of that result. Do not submit tools, connect accounts or change remote data. Report the steps, visible outcome and any limitation.
A worked case: checkout reports a shipping error
A fictional shop shows “Shipping is unavailable” after a customer changes country. The agent should first reproduce that visible behavior in a controlled environment, using a non-production account and no real payment. Record the chosen country, the preceding steps and whether the error is consistent.
Next, inspect the request triggered by the country change. A request that never starts suggests a different problem from a 400 response, a failed preflight or a successful response rendered incorrectly. Console messages may reveal a parsing exception. The goal is to narrow the fault using observations, not to click repeatedly and guess.
Suppose the response contains a country-code validation error while the UI sends the full country name. That is a hypothetical diagnosis used to illustrate the method. Confirm the real contract in the application code or backend documentation before changing it. Then make the smallest fix and repeat the same interaction to check whether the observed failure changed.
- Reproduce
Record the country selection and visible shipping error.
- Inspect
Check the matching request, response and console output.
- Explain
Connect the observed failure to the actual code contract.
- Verify
Repeat the case and preserve a regression check where useful.
Connect the right browser state
A browser server can launch or attach to browser state according to its documented mode. Establish which profile, session and environment the agent can see. An automation window without the expected login can produce a misleading failure; attaching to a personal profile can expose unrelated pages and account data.
Prefer a dedicated profile or isolated session for application work. Keep authentication data out of committed files and public reports. When the task requires an existing authenticated session, verify the permitted scope and the tool’s documented connection method. Browser access includes the potential to act on logged-in services, not merely read a screenshot.
Use the setup instructions for your exact MCP client. A local process command and a remote server URL are different configurations. Check supported runtime and browser versions in upstream documentation rather than assuming another client’s JSON can be pasted unchanged. Recheck after upgrades if the server connects but tools disappear.
Ask for assertions, not only successful tool calls
A successful click means the tool performed an action. It does not establish that the application saved the change. Ask for an observable result such as the updated shipping option, a confirmation message or a relevant response. For a destructive action or real transaction, stop before the irreversible step unless it is explicitly authorized.
The following prompt is an original, bounded investigation example. It asks for a reproducible report and prevents accidental checkout completion. Adapt the route and product terms to the actual task; do not treat example wording as evidence that your client enforces those limits technically.
Investigate the shipping error in the local checkout. Use controlled account data and do not submit an order. Reproduce the country-change failure once. Inspect the related request and console output. Explain which observations support the diagnosis. After a code change, repeat the same case. Report the steps, observed outcome and any unresolved gap.
Troubleshoot connection, page state and evidence separately
If the server fails before tools appear, inspect the runtime, command, client configuration and server logs. If tools exist but navigation fails, check the URL, network access and browser launch or attachment mode. If the page loads but the wrong elements appear, check authentication, overlays, frames and whether the application has reached the expected state.
Chrome DevTools MCP documents default usage statistics and notes that performance tools may send trace URLs to Google CrUX. For private-site diagnostics, review the upstream data-flow settings: --no-usage-statistics opts out of the former and --no-performance-crux disables the latter. These are separate from Chrome browser metrics. Choose settings appropriate to the material being inspected before collecting a trace.
For a stale element reference, obtain a fresh view after the page changes instead of reusing an obsolete target. For a performance claim, retain the trace conditions and avoid presenting one local run as real-user experience. For a request failure, redact credentials and customer data before sharing diagnostic output.
Finally, turn an important reproduced bug into maintainable coverage where appropriate. Interactive exploration can discover the problem quickly; a focused test preserves the learned behavior for the next change. Record what was inspected and what remained outside the session rather than calling a browsing exercise a complete audit.
Documentation reviewed 2026-11-19 · Agent Tool Radar editorial. Source-based guidance; no independent benchmark implied.