FIELD GUIDE

Playwright browser MCP permissions

Playwright MCP makes browser interaction available through a tool protocol, but its configuration options are not a substitute for an authorization system. Origin filters are helpful guardrails; Microsoft explicitly warns that they do not establish a security boundary. Agent developers must distinguish the server’s allowed browser behavior from the user’s authority to complete a business transaction.

Where the MCP server sits

The model client discovers tools, asks to navigate or interact, and the MCP server drives a browser instance. One source of confusion is treating that server as if it were the business application itself. It is only an operator of the browser UI, typically holding a browser profile and cookies. Permissions on the target website still determine which actions are possible; separate policy should decide which of those actions the agent is allowed to request.

Permissions need layers

Restrict MCP invocation to a known client identity and short-lived task. Isolate each browser context and workspace path. Use network-level egress controls to protect against off-target requests; keep a request-level allowlist for navigation policy; prevent unrestricted file access unless the task truly needs it. Test redirects, embedded resources, service workers and downloaded files. Microsoft documents origin and file-access options but warns about treating origin checks as security isolation, so require infrastructure controls as well.

Worked example: checking a supplier portal

A buyer asks an agent to locate an invoice and draft a comparison of line items. The agent may log in through a user-mediated step, search the portal, and extract non-sensitive details. It should not click a pay-now link, upload new banking instructions, or change the vendor profile. The operator sees the invoice URL, expected supplier account, observed invoice number and confidence caveats. A payment or contact update is an entirely different permission grant requiring exact approval and authoritative state verification.

Reliability and evidence

Playwright accessibility snapshots can be easier to interpret than raw pixels, but some controls are canvas-based, unlabeled or dynamic. A recorded selector can be stable while representing the wrong object after a rerender. Record page URL, navigation chain, tool inputs and sanitized response snapshots; do not store full session cookies. Validate important results against source documents rather than trusting the final chat answer. Distinguish the server reporting a successful click from the site confirming a successful transaction.

When not to use it

For a reliable application API with narrow scopes and idempotency keys, direct tool invocation usually beats UI automation in cost, latency and auditability. A browser tool is useful for legacy web portals, testing and supervised research. Its version-specific flags must be confirmed against a pinned release; this article describes the security design, not a guarantee about every release, hosted vendor plan, browser engine or geographic region.

Decide whether the UI bridge is justified

A browser MCP server can be useful for navigating one-off supplier portals, but it is unnecessarily powerful for reading data that an authenticated API exposes with narrower scopes. Require developers to explain why the browser is necessary and which browser controls the agent may invoke. If users can request arbitrary URLs, think through private-network access, authentication redirects and downloads before enabling this integration for untrusted requests.

Production acceptance and review test

Stage a mock portal containing legitimate content plus a malicious on-page command to upload an internal report. Confirm the client ignores the instruction, the MCP server cannot escape its filesystem boundary and independent network controls block exfiltration. Test the difference between opening a page and saving a persistent business change; only the latter should create a transaction record and require an approval bound to exact parameters.

Scope, version and availability

Features documented by a current vendor page are not assumed to have existed in earlier releases. Where a historical launch date is provided, it is supported by a dated first-party publication. Exact subscription tier, market availability, quotas, API billing, licensing permissions and deployment regions are not asserted without a directly applicable record. This is researched editorial guidance rather than a claim of independent hands-on testing, deployed operation or statutory certification.

Sources and Further Reading

CONTINUE EXPLORINGExplore related files ↗