Playwright MCP server enterprise setup: official server, bridge extension and HTTP mode

The official Playwright MCP server from Microsoft is self-hosted by design: it runs from the @playwright/mcp npm package locally or as a standalone HTTP server, and the bridge extension adds per-connection approval. Single sign-on, admin policy and audit logging are not documented for it, so those need controls outside the server.

On this page

Does the Playwright MCP server meet an enterprise deployment requirement without a paid edition?

The Playwright MCP server is installed from Microsoft's @playwright/mcp npm package and runs either as a local process started by the AI client or as a standalone HTTP server that your organization hosts, so the deployment is entirely self-managed. The documentation cited for this topic describes no paid edition, SSO, admin approval or audit feature, so any enterprise control you need must come from your own identity provider, network and logging stack. Start by mapping each team's intended use to one of three paths: the default local launch, which the README shows with npx @playwright/mcp@latest; the Playwright MCP Bridge extension, which attaches the server to an existing Chrome, Edge or Chromium browser when the server runs with --extension; or HTTP mode, which serves a client URL of the form

The bridge extension carries the most approval weight. The extension README says each connection must be approved by default and that the user chooses which tab the LLM may reach, but it also says the approval dialog can be bypassed by setting PLAYWRIGHT_MCP_EXTENSION_TOKEN, a token unique to the browser profile. Decide whether that bypass is permitted, and if it is, who issues and stores the token. In HTTP mode, the host defaults to localhost, --host 0.0.0.0 binds every interface, and --allowed-hosts * disables the host check. Keep the default binding unless a reviewed design requires otherwise, and confirm the server's behavior against the configuration page before you publish an internal standard.

Two items must be confirmed before anyone pins a version. The repository README lists Node.js 18 or newer, while the Playwright getting started page lists Node.js 20 or newer, so check the current page and set the runtime to the stricter requirement unless the vendor resolves the conflict. Also read the license and any terms in the repository yourself at the time of approval, since the sources reviewed here do not settle those questions for your procurement file.

Which deployment options are built in, and which need outside components

This table compares each deployment option and control in the official Playwright MCP server documentation against four questions: whether it is built in, paid only, dependent on an outside component, or not documented. Read the rows as a checklist of what you can enforce with the server alone and what you must add yourself, such as identity, approval and audit tooling.

OptionWhat it providesBuilt inOutside component needed
Official npm package run locally with npxRuns @playwright/mcp@latest as a local MCP server for clients such as VS Code, Cursor and Claude DesktopYesNot applicable
Playwright MCP Bridge extension with --extensionConnects the server to an existing Chrome, Edge or Chromium browser, installed from the Chrome Web StoreNoChrome Web Store extension and an existing browser profile
Per-connection approval and tab selectionEach connection must be approved by default, and the user picks which browser tab the LLM usesYesNot applicable
PLAYWRIGHT_MCP_EXTENSION_TOKENA token unique to the browser profile that can bypass the approval dialog, so it is a control to review and protectNoYour own secret handling for the token
Standalone HTTP mode at localhost:8931/mcpRuns the server as a network endpoint that clients reach by URL instead of a local processYesNot applicable
--host and --allowed-hosts settings--host 0.0.0.0 binds all interfaces, and --allowed-hosts limits which hosts may be served; a value of * disables that checkYesNetwork controls such as firewall rules and a reverse proxy
--save-session and --output-dirSaves the MCP session and output files to disk, which affects what data persists on the machineYesRetention and disk controls you apply yourself
SSO and OAuth for the serverNot documented in the cited pagesNot applicableIdentity provider or gateway placed in front of HTTP mode
Admin approval of clientsNot documented in the cited pagesNot applicableEndpoint management or a controlled allowlist of client configurations
Audit logging of tool actionsNot documented in the cited pagesNot applicableLogging at the browser, proxy or client layer, confirmed with the vendor

How the server, the bridge extension and HTTP mode split the control points

In local mode, the control point is the MCP client that launches the server process, which then starts a browser profile on the user's machine. Whoever can edit the client configuration decides what the server can reach, so the first control is who may change that file and which server entries a managed endpoint allows. The server itself runs with the rights of the logged-in user, so anything the browser profile can open, including sites where the user is already signed in, is in reach. Confirm with the vendor how the server behaves when the profile is isolated, and treat the local profile as the place where user credentials and cookies live.

With the --extension option, the control point moves into the browser. The Playwright MCP Bridge extension, installed from the Chrome Web Store, connects the server to a Chrome, Edge or Chromium browser the user already runs. The user selects which tab the model may connect to, and each connection must be approved by default. That makes the extension's approval dialog a human decision point, so reviewers should ask how staff are trained to read it, whether the browser profile is managed, and whether the extension itself is allowed through the organization's browser policy. The extension README also says the approval dialog can be bypassed by setting PLAYWRIGHT_MCP_EXTENSION_TOKEN, a token unique to the browser profile. Any such token is a secret to store, rotate and keep out of shared configuration files, and anyone holding it can connect without the prompt.

In standalone HTTP mode, the server listens on a host and port that the organization chooses, so the controls are network ones: the bind address, the firewall path and the --allowed-hosts list. The host defaults to localhost, while --host 0.0.0.0 binds every interface, and the docs state that a value of * disables the allowed-hosts check. Reviewers should confirm that the server is reachable only from the intended clients, that it does not sit on a shared network segment, and that the allowed-hosts list names the real host headers in use. The pages cited here document no OAuth, SSO or admin approval for this mode, so authentication in front of the listener must come from a gateway or network control that the organization runs itself.

Decisions the organization must make before approving the setup

Before approving the Playwright MCP server, the team has to settle how it runs, which browser it reaches, and where its files land. Each choice below changes what an agent can reach and what a reviewer can later inspect, so the decisions should be recorded in writing before rollout.

Local package or shared HTTP instance

The standard client configuration runs the @playwright/mcp package locally through npx, so each developer's agent gets its own server process on their machine. A standalone HTTP server, reached at a client URL such as is one process that many clients can share. Decide which model fits your controls, because a shared instance concentrates browser state and access in one place that someone must operate, patch and monitor.

Configuration options

Extension use on managed browsers

The Playwright MCP Bridge extension, installed from the Chrome Web Store, attaches the server to an existing Chrome, Edge or Chromium browser when the server runs with --extension. That browser may hold signed-in sessions for internal systems. Decide whether the extension is allowed on managed devices at all, and whether it may run only on profiles that hold no production sign-ins.

Extension README

Who approves each connection

The extension README says each connection must be approved by default, and the user selects which browser tab the LLM connects to. Decide who is allowed to approve those requests, whether staff may approve tabs that open internal admin consoles, and whether reviewers expect a documented rule for tab selection. Confirm this behavior in your own test before writing it into policy.

Whether the extension token is permitted

The extension README says the approval dialog can be bypassed by setting PLAYWRIGHT_MCP_EXTENSION_TOKEN, a token unique to the browser profile. A bypass removes the human check on every connection, so the default position should be that it is not used. If an exception is granted, decide where the token is stored, who can read it, how it is rotated, and how it is removed from shell history and CI logs.

Bind address and allowed hosts

The HTTP mode host defaults to localhost. The --host 0.0.0.0 option binds all network interfaces, which exposes the browser control endpoint to the wider network, and --allowed-hosts sets which host names the server accepts. A value of * disables that host check entirely. Keep the bind address on localhost unless there is a reviewed network design, and list only the specific host names that clients need.

Configuration options

Browser profile and file locations

Choose which browser profile the server uses and who can reach it, since a profile may carry cookies and saved logins. The --save-session and --output-dir options write session and output files to paths you choose, and those paths decide what a reviewer can later inspect and who else can read them. Set the directories in the approved configuration, restrict their file permissions, and confirm where retention and cleanup happen.

How the three deployment paths connect the client, the server and the browser

The diagram starts with an MCP client on a developer workstation or hosted runner and shows the Playwright MCP server running either as a local process or as a standalone HTTP service. On the HTTP path, the allowed-hosts check decides which host names the server will answer, and --host 0.0.0.0 widens the bind address. The bridge path reaches a user's existing Chrome, Edge or Chromium through the extension, where each connection needs user approval unless PLAYWRIGHT_MCP_EXTENSION_TOKEN is set. Check that bypass first.

Three paths from client to browser, with the approval and allowed-hosts decision points.

What the server does not provide and how organizations usually cover each gap

The cited Microsoft and Playwright pages document several controls that enterprises usually expect, including SSO, admin approval, audit logs and HTTP authentication. None of them are documented for this server, so each gap has to be closed by the client, the host, the network or a gateway the organization runs. The cards below set out each gap and what to confirm before approving the server.

No documented SSO or OAuth

The cited pages describe no OAuth, SSO or identity provider integration for the server. Any sign-in that ties a session to a named employee has to come from the MCP client, the host operating system account or a gateway the organization operates. Confirm which identity each developer's session runs under, and whether the AI client itself is restricted to approved users before the server is started on a shared machine.

Configuration options

No documented central policy

The docs describe no admin approval workflow or central policy for enabling the server. Enforcement therefore depends on managed client configuration, such as settings deployed through endpoint management, and on controls that block unapproved MCP servers from being added. Ask who can edit the client configuration file and whether that file is locked on managed devices.

No documented audit logging product

The server offers no audit trail product. The --save-session and --output-dir options save session and output files, but they are not an audit log of who approved which action. Logs must come from the host, the MCP client, network egress records or a collector the organization runs. Decide what must be retained, where it is stored and who can read it before rollout.

Extension token bypasses approval

The extension README says the per-connection approval dialog can be bypassed by setting PLAYWRIGHT_MCP_EXTENSION_TOKEN, a token unique to the browser profile. Anyone or any process that holds the token can attach without a prompt. Treat the token as a credential: keep it out of shared shell profiles and repositories, restrict who can read the environment, and use browser policy on managed Chrome, Edge or Chromium profiles to limit which extensions and sites are reachable.

HTTP mode lacks documented authentication

The configuration docs describe standalone HTTP mode at a URL such as with --host 0.0.0.0 binding all interfaces and --allowed-hosts set to * disabling the host check. No authentication is documented for this mode in the cited pages. Keep the host on localhost where possible, and if remote access is required, place a reverse proxy and network restriction under the organization's control in front of it. Avoid a wildcard allowed-hosts value.

Community servers are separate projects

Several community projects use similar names. The Microsoft docs and the package @playwright/mcp cover only the official server in the microsoft/playwright-mcp repository. Any other server found in a registry or blog post carries its own code, maintainers and security history. Require that approved configurations name the exact package and repository, and review any other package before it is added to a developer machine.

How the deployment choice changes by team size, browser policy and data sensitivity

A small team that runs the server locally through npx on managed laptops keeps the browser, the profile and any output on each person's machine. The main control is the endpoint itself, so the review centers on what the laptop policy allows and what the agent can reach from it. The standard client configuration in the Microsoft README launches the server with npx and the argument @playwright/mcp@latest, which means the version is not pinned unless the team changes that argument.

  • Package version: Replace the floating @latest tag with a version the team has tested, and record which version each laptop runs.
  • Node.js runtime: Confirm the Node.js version against the current playwright.dev page, because the README and that page list different minimums.
  • Profile location: Check where the browser profile and output files are written, and whether those folders sync to cloud storage.
  • Launch scope: Decide which sites the agent may open and whether developers may point it at production applications.

Ask who owns the laptop baseline, who approves a new package version, and whether the endpoint tooling can detect unapproved MCP clients.

The order of work to put the setup under review before production

This sequence turns the three deployment paths into one reviewed configuration, so the security reviewer approves a known package version, a single path per team and documented settings for browser access, network exposure, files and logs.

  1. Confirm the Node.js version against current docs

    The engineering lead checks the Node.js requirement on the Playwright getting started page before pinning anything, because the repository README lists Node.js 18 or newer while the getting started page lists Node.js 20 or newer. The two sources conflict, so the lead records which version the current page states and installs that runtime on every machine or host that will run the server. The step is done when the team has a written runtime version and a note of the page and date it was checked against.

  2. Pin the @playwright/mcp package version

    The platform engineer replaces the standard client configuration that uses the @playwright/mcp@latest argument with an exact published version chosen after review. Using the latest tag means a new release can change tool behavior without a new review, so the pinned version becomes the only version the security team approves. The step is done when the client configuration and any startup scripts reference one exact version, and the team has a process to re-test before changing it.

  3. Choose one deployment path per team

    The engineering manager decides whether each team runs the server locally over stdio, uses the bridge extension with an existing browser, or runs standalone HTTP mode for shared use. Mixing paths within a team multiplies the settings a reviewer must check, so each team gets one documented path and a named owner. The step is done when a table lists each team, its path and the owner, and the security reviewer has accepted that list.

  4. Verify the extension policy and approval behavior

    For extension use, the endpoint administrator confirms the browser policy that allows the Playwright MCP Bridge extension from the Chrome Web Store, and the security reviewer confirms that each connection to a tab still requires approval as the extension README describes. The reviewer also decides whether PLAYWRIGHT_MCP_EXTENSION_TOKEN may be used, because that token bypasses the approval dialog and is unique to the browser profile. The step is done when the policy decision, the approval behavior tested in a non-production profile, and the token decision are written down.

  5. Confirm bind address, allowed hosts and network limits

    For HTTP mode, the network engineer confirms that the server stays on the default localhost host unless a documented need exists, and that any use of --host 0.0.0.0 is limited by firewall rules and by the organization's own network controls. The engineer sets --allowed-hosts to the exact host names required, and confirms that the wildcard value, which disables that check, is not used. The step is done when a test from an unapproved host fails to reach the endpoint and the approved host list is recorded.

  6. Set session and output file locations and retention

    The platform engineer decides where --save-session and --output-dir write files, on which volume, under which permissions, and for how long they are kept. Session and output files can hold browser state and captured content, so the location should sit inside controlled storage with a defined deletion routine. The step is done when the paths, file permissions and retention period are listed in the configuration record and a test run shows files landing only in those locations.

  7. Place logs and secrets under organizational controls

    The security engineer routes any logs the team enables and any credentials used by the client into the organization's existing logging and secret management systems. The configuration docs do not describe SSO, OAuth or admin approval for the server, so these controls must sit outside the server, and the engineer confirms which ones apply. The step is done when the team can name the log destination, the secret store and the access group for each, and the reviewer has confirmed that no credential is stored in plain client configuration.

  8. Record decisions for the security review

    The security lead compiles one decision record that lists the Node.js version, the pinned package version, the deployment path per team, the extension policy and token decision, the HTTP bind and host settings, the file locations and retention, and the log and secret controls. The record names the owner of each decision and the date of the last test. The step is done when the record is filed with the security review package and the reviewer signs off on the configuration before any production use.

What a security reviewer asks to see for this setup and where it comes from

This table lists the evidence a reviewer should collect for each deployment path of the Playwright MCP server, along with the question each item answers and where the record comes from. Use it as a checklist against the actual configuration, not against the vendor pages alone. Each row should be backed by a vendor document, a file or setting in your environment, or an internal record.

Evidence itemQuestion it answersSource in the tool or organization
Pinned package version and Node.js runtimeWhich exact @playwright/mcp release and Node.js version run on each machine?Lockfile or launch config in your environment; the README and getting started page for supported Node.js versions, which conflict, so confirm the current page
Extension install source and versionIs the bridge extension the Chrome Web Store build, and which version is installed?Browser extension management console or installed extensions list; the extension README for the Chrome Web Store listing
Approval mode and extension token statusDoes each browser connection require approval, and is PLAYWRIGHT_MCP_EXTENSION_TOKEN set anywhere?Launch environment and secrets store for each host; the extension README on the approval dialog and token
HTTP bind address and allowed-hosts valueIs the standalone server bound to localhost or to all interfaces, and which hosts may it serve?Server start command or service unit; the configuration options page for --host and --allowed-hosts
Location and retention of session and output filesWhere are session and output files written, how long are they kept, and who can read them?Output directory and session settings in the launch config; file system policy and backup records in your environment; the configuration options page for --save-session and --output-dir
MCP client configuration as deployedWhich clients are configured, with which arguments, and who can edit those files?Client configuration files on managed devices; the README for the standard npx configuration
Internal record of who may run which pathWho is approved to run local, extension or HTTP mode, and against which sites?Access approval records and the written usage standard kept by your IT or security team; no vendor source covers this

Questions procurement, legal and security reviewers ask before approving the setup

Is there a license or fee to use the Playwright MCP server?

The cited sources, the Microsoft README and the Playwright getting started and configuration pages, describe the server as published under the microsoft/playwright-mcp repository and installed from the npm package @playwright/mcp, and they describe no paid tier. Before approval, confirm the license terms on the repository and the package listing, and ask the vendor in writing whether any commercial terms apply to your use. Also confirm the license of any browser extension you install separately, since the bridge extension is distributed through the Chrome Web Store and is governed by its own listing and terms.

What must our team do itself, and what might we pay an outside party for?

Your engineers own the install, the choice of transport (local stdio or standalone HTTP), the browser profile and extension decisions, and the network and host controls around the server. An outside party is typically paid for work that needs security judgment or repeat effort: hardening the deployment, testing it against prompt injection and tool permissions, writing the configuration baseline, and supporting upgrades. Cost rises with the number of client types, the number of hosts running the server, whether HTTP mode is exposed beyond localhost, and how many retests you want. Ask any provider for a fixed-scope written quote that lists deliverables, the systems covered, the retest count and who maintains the result after handover. DeployOpen works on fixed scope agreed in writing before work starts, and does not publish a price list.

Can we enforce single sign-on for the Playwright MCP server?

No. The pages cited for this topic document no OAuth, SSO or admin approval features for the server, so you should not assume that staff sign in through your identity provider to use it. Plan identity controls outside the server: restrict who can launch the process or reach the HTTP endpoint through your endpoint management, place the HTTP mode behind an authenticating gateway or reverse proxy that your identity team operates, and restrict network paths with host firewall rules. Confirm with Microsoft through the repository whether any authentication options have been added since your review, and record the answer in your approval file.

Can the Playwright MCP server run entirely inside our infrastructure?

Yes, for the local and standalone HTTP paths, the server can run on hardware you control, and the documented HTTP client URL points to localhost by default. The bridge extension connects the server to a Chromium-based browser that your staff already run, so the browser also stays on your endpoints. Two inputs still need your review: the package source, which you should pin to a version you have checked and mirror through your internal npm registry if your policy requires it, and the extension source, which comes from the Chrome Web Store and should be approved through your browser extension policy. Confirm with the vendor whether any component phones home during normal use, because the cited pages do not settle that question.

Which Node.js version should we install for the Playwright MCP server?

Use Node.js 20 or newer. The repository README lists Node.js 18 or newer as a requirement, while the playwright.dev getting started page lists Node.js 20 or newer, so the two sources conflict. Choosing the higher version satisfies both stated minimums, but still check the current versions of both pages before you pin anything, because the requirement may have changed since this review. Record the version you approved and the date you checked it, and include the Node.js runtime in your patching and supported-software inventory.

What should we ask a consultant for in a fixed-scope written quote?

Ask for a written scope that names the systems in scope: the hosts, operating systems, Node.js version, browser profiles, extension, client applications and whether HTTP mode is used. Request a list of deliverables such as a configuration baseline, a findings report with fixes, a retest, and the evidence your auditors will need. Ask which test cases cover prompt injection, file and origin restrictions, credential handling and the approval flow for browser connections. Get the timeline, the assumptions about your access, the handover items, what happens after handover, and the price of any optional retainer for upgrades. Make sure the quote says what is excluded, including any work on SSO or audit products that the server does not document.

Does the bridge extension need approval before each browser connection?

By default, yes. The Playwright MCP Bridge extension README says each connection must be approved by default and that the user selects which browser tab the LLM connects to. The same README says the approval dialog can be bypassed by setting PLAYWRIGHT_MCP_EXTENSION_TOKEN, a token unique to the browser profile. Treat that variable as a credential: do not put it in shared configuration files, and have your review confirm whether the bypass is permitted under your policy at all.

How DeployOpen works on this

DeployOpen reviews and hardens self-hosted setups inside the client's own infrastructure, and runs security testing on AI agents and their tools. For the Playwright MCP server, that means checking how the official server is launched, how the bridge extension approves connections, and how HTTP mode is exposed before staff rely on it.

How we scope

  • Written scope names the clients, machines and browsers in use before any work starts.
  • Scope states whether local stdio, the Chrome bridge extension or standalone HTTP mode is covered.
  • Scope lists which host, bind and allowed-hosts settings the review will examine.

How we build

  • We pin the package version and Node.js runtime after confirming the current requirement on the official pages.
  • We configure the server with restricted hosts, approval prompts and the extension token handling the client chooses.
  • Security testing covers prompt injection, tool misuse and browser session exposure against the agreed configuration.

How we hand over

  • Deliverables include a written configuration record, a findings report with fixes and a retest.
  • Documentation covers the approved launch commands, client settings and the approval steps staff must follow.
  • Handover records who owns each setting, such as bind address, allowed hosts and extension token storage.

How we support

  • Ongoing support is available as a retainer for upgrades when the Playwright MCP package changes.
  • Continuous testing can be added to recheck the setup after client or browser updates.
  • Support questions about evidence for a client's own security review are answered from the documented configuration.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.