Skip to content

MCP setupTesting

Playwright MCP Server

Let your coding agent drive a real browser through Microsoft's Playwright MCP server to click through pages, fill forms and check what renders.

npx workspacetemplates add playwright-mcp --tool claude-code

Writes 1 file to your project root

.mcp.jsonmerge into your file10 lines · 133 BFile
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

What it does

Playwright MCP is Microsoft's official server for browser automation. The agent reads pages through the accessibility tree rather than screenshots, so it can open your app, click, type and report what it finds.

It runs locally through npx, needs no account and no key. Use it to reproduce a bug in a real browser or to check a flow you just built.

Example

you › Open http://localhost:3000/signup, submit the form with an empty email and tell me what the page shows.

agent › The form stays on /signup and shows "Email is required" under the email field. No network request was sent and the console is clean.

Questions

Does it need an API key?
No. It starts a local browser through npx. The first run may download browser binaries.
Can it visit sites that need a login?
Yes, if you log in during the session or point it at a profile that is already signed in. Treat that profile as shared with the agent.
  • Browserbase MCP Server

    MCP setupTesting

    Free
  • Chrome DevTools MCP Server

    MCP setupTesting

    Free
  • Contract Testing

    SkillTesting

    Free
  • E2E Test Design

    SkillTesting

    Free