🎭 Playwright MCP β€” AI Browser Automation avatar

🎭 Playwright MCP β€” AI Browser Automation

Pricing

from $5.00 / 1,000 tool calls

Go to Apify Store
🎭 Playwright MCP β€” AI Browser Automation

🎭 Playwright MCP β€” AI Browser Automation

MCP server for AI agents to control browsers via Playwright β€” navigate, click, type, screenshot & extract data. Give Claude or GPT web browsing abilities. 16 tools for browser automation.

Pricing

from $5.00 / 1,000 tool calls

Rating

0.0

(0)

Developer

Stephan Corbeil

Stephan Corbeil

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

3 days ago

Last modified

Share

Playwright MCP Server

Give your AI agents a real browser. This MCP server runs Playwright on Apify's infrastructure, letting AI agents navigate websites, fill forms, click buttons, extract data, and take screenshots β€” all through the Model Context Protocol.

Why Use This?

  • No local browser needed β€” runs on Apify's cloud with anti-blocking proxies
  • 16 browser tools β€” navigate, click, type, screenshot, extract text/HTML, run JavaScript, and more
  • Anti-blocking built in β€” Apify proxy infrastructure handles CAPTCHAs and blocks
  • Works with any MCP client β€” Claude, OpenAI, custom agents via SSE or HTTP transport

Available Tools (16)

ToolDescription
navigateGo to a URL, wait for page load
screenshotCapture page or element as PNG
clickClick elements by selector or text
typeType into input fields
get_textExtract visible text from page/element
get_htmlGet HTML content
evaluateRun JavaScript in page context
selectChoose dropdown options
scrollScroll page or elements
waitWait for elements to appear/disappear
get_linksExtract all links with optional filtering
extract_tableParse HTML tables to JSON
pdfGenerate PDF of current page
fill_formFill multiple form fields at once
get_cookiesRead browser cookies
set_cookiesSet browser cookies

Quick Start

Connect via MCP (SSE)

{
"mcpServers": {
"playwright": {
"url": "https://nexgendata--playwright-mcp-server.apify.actor/sse",
"transport": "sse",
"headers": {
"Authorization": "Bearer YOUR_APIFY_API_TOKEN"
}
}
}
}

Connect via HTTP

{
"mcpServers": {
"playwright": {
"url": "https://nexgendata--playwright-mcp-server.apify.actor/mcp",
"transport": "http"
}
}
}

Use Cases

  • Web research agents β€” Browse and extract data from any website
  • Form automation β€” Fill out applications, surveys, registrations
  • Testing & monitoring β€” Check website functionality and content
  • Data extraction β€” Scrape dynamic JavaScript-rendered pages
  • Screenshot capture β€” Visual documentation and monitoring
  • Price monitoring β€” Track prices across e-commerce sites

Example: Navigate and Extract

Agent: "Go to example.com and get all the links"
Tool calls:
1. navigate(url="https://example.com")
2. get_links()

Example: Fill a Form

Agent: "Search for 'web scraping' on Google"
Tool calls:
1. navigate(url="https://google.com")
2. type(selector="textarea[name='q']", text="web scraping", pressEnter=true)
3. wait(selector="#search")
4. get_text(selector="#search")

Proxy Support

Enable Apify proxy for anti-blocking:

{
"proxyConfiguration": {
"useApifyProxy": true
}
}

Pricing

Pay per browser action via Apify's pay-per-event model:

  • Session start: $0.05
  • Per tool call: $0.01

Support

Questions? Open an issue on the actor page or contact NexGenData.


πŸ’» Code Example β€” Python

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("nexgendata/playwright-mcp-server").call(run_input={
# Fill in the input shape from the actor's input_schema
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

🌐 Code Example β€” cURL

curl -X POST "https://api.apify.com/v2/acts/nexgendata~playwright-mcp-server/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{ /* input schema */ }'

❓ FAQ

Q: How do I get started? Sign up at apify.com, grab your API token from Settings β†’ Integrations, and run the actor via the Apify console, API, Python SDK, or any integration (Zapier, Make.com, n8n).

Q: What's the typical cost per run? See the pricing section below. Most runs finish under $0.10 for typical batches.

Q: Is this actor maintained? Yes. NexGenData maintains 165+ Apify actors and ships updates regularly. Bug reports via the Apify console issues tab get responses within 24 hours.

Q: Can I use the output commercially? Yes β€” you own the output data. Check the target site's Terms of Service for any usage restrictions on the scraped content itself.

Q: How do I handle rate limits? Apify manages concurrency and retries automatically. For very large batches (10K+ items), run multiple smaller jobs in parallel instead of one mega-job for better reliability.

πŸ’° Pricing

Pay-per-event pricing β€” you only pay for what you actually extract.

  • Actor Start: $0.0050
  • tool call: $0.0050

πŸš€ Apify Affiliate Program

New to Apify? Sign up with our referral link β€” you get free platform credits on signup, and you help fund the maintenance of this actor fleet.

πŸ“š More From NexGenData

Explore the full catalog, tutorials, Gumroad data packs, and newsletter at thenextgennexus.com β€” the brand home for everything we ship.

  • πŸ“– Tutorials & how-to guides
  • πŸ—‚οΈ Full actor catalog with usage examples
  • πŸ“¦ Gumroad data packs (one-time purchases)
  • πŸ“¬ Newsletter β€” monthly drops of new actors and revenue experiments

Built and maintained by NexGenData β€” 165+ actors covering scraping, enrichment, MCP servers, and automation. 🏠 Home: thenextgennexus.com