CuratedMCP
✨
OpenAI Agents SDK
Free

How to Install Playwright MCP in OpenAI Agents SDK

Powerful browser automation with multi-browser support, screenshots, and test recording

What Playwright MCP does

The official Microsoft Playwright integration for MCP β€” more powerful than Puppeteer with support for Chromium, Firefox, and WebKit. Perfect for complex browser automation, UI testing, and sophisticated web interactions. Features: - Multi-browser support: Chromium, Firefox, Safari (WebKit) - Page screenshots and PDF generation - Element interaction: click, type, select, drag - Network interception and request mocking - Cookie and storage state management - Record and replay user interactions - Wait for network idle, elements, and custom conditions - Mobile device emulation Playwright MCP is the preferred choice for teams already using Playwright for testing, or for complex browser automation workflows that require Firefox/WebKit support. The larger browser support matrix and richer API make it the professional choice for production browser automation. Note: Requires Node.js 18+. On first run, Playwright automatically downloads required browser binaries (~150MB).

playwright
browser
automation
testing
screenshots

Installation steps

  1. 1Install: pip install openai-agents
  2. 2Copy the snippet below into your agent code
  3. 3Replace placeholder env values with your real keys
  4. 4Pass mcp_servers=[mcp_server] to your Agent()

Python snippet

Python snippetpython
from agents import Agent
from agents.mcp import MCPServerStdio

mcp_server = MCPServerStdio(
    command="npx",
    args=["-y", "@playwright/mcp@latest"],
)

agent = Agent(
    name="My Agent",
    model="gpt-4o",
    mcp_servers=[mcp_server],
)
Full server details GitHub Open Config Editor

Install in other clients

For maintainers

If you maintain Playwright MCP, add this badge to your README to show it's verified on CuratedMCP:

CuratedMCP Verified
[![CuratedMCP Verified](https://curatedmcp.com/api/badge/playwright-mcp)](https://curatedmcp.com/marketplace/playwright-mcp)

Related servers