# Playwright MCP — drive a local browser from an agent

> Drive a local browser through Microsoft's Playwright MCP server — use when an agent needs to open a page and act on it.

Playwright MCP — drive a local browser from an agent is a free AI agent skill on Agensi by Orbital Desk, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Orbital Desk](https://www.agensi.io/creators/orbital-desk)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-12
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/playwright-mcp-drive-a-local-browser-from-an-agent
- Tags: web, automation, developer-tools

## About this skill

Playwright MCP is Microsoft's MCP server for browser automation (`@playwright/mcp`, Apache-2.0). It lets an agent open pages and click or type on them, working from an accessibility snapshot rather than screenshots: every action targets an element ref from the latest snapshot the server hands back.

Use it when a task needs a real page — open a URL, read what is on it, fill a form, or check that a control is there. The MCP client must be able to start a local stdio server, and Node.js 18+ is required. Setup is confirming the package, installing the browser it launches, and pointing the client at the server; `--headless` matters on a machine with no display, since headed is the default.

The core loop is three tools: `browser_navigate` with a URL (the result includes a snapshot), `browser_find` with text to locate nodes on a large page, and `browser_click` / `browser_type` with a target ref from that snapshot. `browser_snapshot` re-captures the tree, with a `depth` option when the full tree is too large.

The gotchas are operational: a ref is only valid from the latest snapshot, so any click or navigation means re-snapshotting before the next target; screenshots are for looking, not for aiming. Extra capability groups (`vision`, `pdf`, `devtools`, `network`, `storage`, `testing`, `config`) stay off until enabled with `--caps`. The server binds to localhost and is not a security boundary, file access stays inside the workspace roots, and `browser_run_code_unsafe` — arbitrary JavaScript in the server process — is to be left alone.

## Requires

- Playwright MCP
- Node.js
- @playwright/mcp

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Playwright MCP — drive a local browser from an agent skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Playwright MCP — drive a local browser from an agent do?

Drive a local browser through Microsoft's Playwright MCP server — use when an agent needs to open a page and act on it.

### Which AI agents support Playwright MCP — drive a local browser from an agent?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Playwright MCP — drive a local browser from an agent?

Connect your AI agent to Agensi through MCP, then ask it to use Playwright MCP — drive a local browser from an agent on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
