# Playwright Cloud Browsers

Playwright Cloud Browsers is an MCP server for Claude Code that gives coding assistants remote Azure browser sessions to navigate web pages without local browser binaries.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 18 repo stars
- Author: Azure
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Azure/playwright-workspaces
- Updated: 2026-10-27
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/playwright-cloud-browsers

## What it does

This remote server exposes cloud-hosted browsers to coding assistants via Streamable HTTP. Agents can spin up clean browser instances, open target URLs, inspect the DOM tree, interact with inputs, and tear down sessions. You do not need to download Chromium or configure test drivers on your host machine.

Setup requires an active Azure subscription, an existing Playwright Workspaces resource ID, and authentication through Microsoft Entra ID. If your Entra identity lacks the appropriate RBAC role on the workspace, session requests will fail.

Microsoft currently marks this remote endpoint as a preview capability, meaning standard production service agreements do not apply.

## Requirements
- Remote server: `https://{region}.mcp.playwright.microsoft.com/playwrightworkspaces/{workspaceId}/mcp`
- Works with: Playwright

## Install

### Claude Code (native platform)

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http playwright-cloud-browsers https://{region}.mcp.playwright.microsoft.com/playwrightworkspaces/{workspaceId}/mcp
```

### Codex

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
codex mcp add playwright-cloud-browsers --url https://{region}.mcp.playwright.microsoft.com/playwrightworkspaces/{workspaceId}/mcp
```

### Cursor

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "playwright-cloud-browsers": {
            "url": "https://{region}.mcp.playwright.microsoft.com/playwrightworkspaces/{workspaceId}/mcp"
        }
    }
}
```

### GitHub Copilot

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "playwright-cloud-browsers": {
            "type": "http",
            "url": "https://{region}.mcp.playwright.microsoft.com/playwrightworkspaces/{workspaceId}/mcp"
        }
    }
}
```

### Gemini CLI

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
gemini mcp add -t http playwright-cloud-browsers https://{region}.mcp.playwright.microsoft.com/playwrightworkspaces/{workspaceId}/mcp
```

## When to use it
- interact with web pages from agents without local browser binaries
- run remote Playwright automation flows inside Azure infrastructure
- inspect live DOM trees and element states during agent workflows
- isolate browser execution away from developer workstations

## Example prompts
- Open a browser session, fetch the title from `https://example.com`, and shut down the session
- Navigate to the staging login page in the cloud browser and verify the header text
- Inspect the checkout form inputs on our demo site using the remote session

## Similar
- [playwright-dev](https://affpapa.org/en/nevibecode/skills/playwright-dev.md) — skill · 3900 installs
- [Playwright](https://affpapa.org/en/nevibecode/mcp/playwright.md) — MCP server · ★ 39981 repo stars
- [playwright-generate-test](https://affpapa.org/en/nevibecode/skills/playwright-generate-test.md) — skill · 18162 installs
- [playwright-explore-website](https://affpapa.org/en/nevibecode/skills/playwright-explore-website.md) — skill · 14792 installs
- [invisible_playwright_mcp](https://affpapa.org/en/nevibecode/mcp/invisible-playwright-mcp.md) — MCP server · ★ 879 repo stars
- [playwright-in-sandbox](https://affpapa.org/en/nevibecode/skills/playwright-in-sandbox.md) — skill · 510 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
