Puppeteer MCP avatar
Puppeteer MCP

Pricing

Pay per usage

Go to Apify Store
Puppeteer MCP

Puppeteer MCP

AI-powered browser automation via Model Context Protocol. Enable Claude, ChatGPT, and other AI assistants to control browsers, scrape data, and automate web tasks through natural language.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Meysam

Meysam

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

3

Monthly active users

8 days ago

Last modified

Share

AI Browser Automation - MCP Server for Claude & ChatGPT

Puppeteer MCP

Enable AI assistants to control web browsers through natural language. This Apify Actor is a Model Context Protocol (MCP) server that gives Claude, ChatGPT, and other AI agents 17 browser automation tools to scrape data, fill forms, take screenshots, and automate any web task.


What is MCP Browser Automation?

This Actor transforms your AI assistant into a browser automation expert. Instead of writing complex scripts, describe what you need in plain English—your AI handles everything using a real Chrome browser.

Example conversation with Claude:

"Go to example.com, extract all product prices, and take a screenshot of the pricing table"

Claude automatically uses the right tools (navigate → extract → screenshot) and returns the results.


Key Features

FeatureDescription
17 Browser ToolsComplete automation: navigate, click, type, screenshot, extract, scroll, and more
Session PersistenceBrowser state maintained across multiple tool calls
Concurrent BrowsersUp to 10 parallel browser instances for faster scraping
Real Chrome EngineFull JavaScript support—handles React, Vue, Angular, SPAs
Dataset StorageLarge outputs (screenshots, HTML) automatically stored in Apify Dataset
No Coding RequiredDescribe tasks in natural language to your AI assistant

What Data Can You Extract?

Data TypeExamplesUse Cases
Product DataPrices, descriptions, reviewsPrice monitoring, market research
Contact InfoEmails, phone numbers, addressesLead generation, prospecting
ContentArticles, posts, commentsContent aggregation, research
ScreenshotsFull page or specific elementsVisual monitoring, documentation
Dynamic ContentLazy-loaded, infinite scroll, SPAsModern web apps, JavaScript-heavy sites

Quick Start: Connect to Claude Desktop

Step 1: Start the Actor on Apify

  1. Click "Try for free" on the Actor page
  2. Keep default settings (or adjust timeout for slow sites)
  3. Click "Start"
  4. Copy the Actor endpoint URL from run details

Step 2: Configure Claude Desktop

Find your Claude config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Add this configuration:

{
"mcpServers": {
"puppeteer-mcp": {
"type": "http",
"url": "https://meysamazing--puppeteer-mcp.apify.actor?token=apify_api_..."
}
}
}

or run the CLI:

claude mcp add --transport http puppeteer-mcp https://meysamazing--puppeteer-mcp.apify.actor?token=apify_api_...

Restart Claude Desktop. Done!

Step 3: Start Automating

Try these prompts with Claude:

  • "Navigate to reddit.com and extract the top 5 post titles"
  • "Go to example.com/pricing and take a screenshot"
  • "Fill the contact form with name 'John' and email 'john@test.com'"

All 17 Browser Tools

Your AI automatically selects the right tool based on your request.

ToolWhat It Does
navigateGo to any URL, wait for page load
goBackNavigate back in browser history
goForwardNavigate forward in browser history
getCurrentUrlGet current page URL and title

Interaction

ToolWhat It Does
clickClick elements (CSS selector, XPath, or text match)
typeType text into inputs with optional delay
hoverHover over elements to trigger tooltips/menus
scrollScroll page or scroll to specific element
selectChoose options from dropdown menus
pressKeyPress keyboard keys (Enter, Tab, Escape, etc.)

Data Extraction

ToolWhat It Does
screenshotCapture full page or element screenshots
getContentGet page content as HTML, text, or markdown
extractExtract text/attributes from single or multiple elements
evaluateExecute custom JavaScript on the page
waitForSelectorWait for elements to appear before acting

Session Management

ToolWhat It Does
listSessionsView all active browser sessions
destroySessionClose a specific browser session

Input Configuration

Customize the Actor for your needs:

SettingDefaultDescription
headlessModetrueRun browser without UI (disable for debugging)
defaultTimeout30000Max wait time per operation (ms)
maxConcurrency1Parallel browser instances (1-10)
logLevelinfoLogging verbosity (debug/info/warn/error)
sessionTimeoutMs1800000Idle session timeout (30 min default)
viewportWidth1280Browser viewport width (px)
viewportHeight720Browser viewport height (px)

Recommended for slow websites:

{
"defaultTimeout": 60000,
"maxConcurrency": 1
}

Recommended for faster scraping:

{
"defaultTimeout": 30000,
"maxConcurrency": 5
}

Output Examples

{
"sessionId": "abc-123",
"url": "https://example.com",
"title": "Example Domain",
"status": 200
}

Data Extraction Result

{
"sessionId": "abc-123",
"selector": ".product-price",
"count": 5,
"values": ["$19.99", "$24.99", "$29.99", "$34.99", "$39.99"]
}

Screenshot Result (Large Images Stored in Dataset)

{
"sessionId": "abc-123",
"format": "png",
"sizeKB": 450,
"storedInDataset": true,
"datasetItemUrl": "https://api.apify.com/v2/datasets/.../items"
}

How Much Does It Cost?

This Actor runs on Apify's platform. Pricing will be Pay Per Event (PPE) based on tool usage.

Current model (until PPE is finalized):

  • Compute Units: ~$0.50/hour of browser runtime
  • Free tier: 5 hours/month included with Apify account

Estimated costs:

UsageOperationsEstimated Cost
Light~50 pages/dayFree tier
Medium~500 pages/day$5-15/month
Heavy~5,000 pages/day$50-100/month

Cost tips:

  • Use maxConcurrency: 1 for simple tasks
  • Increase concurrency for time-sensitive bulk scraping
  • Screenshots and full-page content use more resources

Integrations

Best native MCP support. See Quick Start above.

ChatGPT & Other AI Assistants

Any AI supporting the Model Context Protocol can connect. Check your AI's documentation for MCP integration.

Apify API

Integrate directly into your applications:

curl -X POST "https://api.apify.com/v2/acts/YOUR-ACTOR-ID/runs" \
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Content-Type: application/json" \
-d '{"headlessMode": true, "maxConcurrency": 1}'

Apify Integrations

Connect scraped data to 1000+ apps:

  • Google Sheets - Auto-populate spreadsheets
  • Zapier & Make - Trigger workflows
  • Slack & Email - Get notifications
  • AWS S3, Dropbox - Export to cloud storage

FAQ


Troubleshooting

"Element not found" errors

  • Ask AI to wait first: "Wait for the page to load, then click..."
  • Use more specific descriptions: "Click the blue 'Submit' button in the footer"
  • Increase defaultTimeout to 60000ms

Timeout errors

  • Page takes longer than default 30 seconds
  • Increase timeout in Actor input
  • Check if site requires authentication

"Failed to acquire browser" errors

  • All browsers in pool are busy
  • Increase maxConcurrency or wait for tasks to complete

Connection refused

  • Ensure Actor is running in Apify Console
  • Verify endpoint URL matches the running Actor
  • Restart Claude Desktop after config changes

Web scraping of public data is generally legal. This Actor operates ethically:

  • ✅ Only extracts publicly visible data
  • ✅ Respects robots.txt guidelines
  • ✅ Does not bypass authentication or CAPTCHAs
  • ✅ Does not collect private user data

Your responsibility: Review each website's Terms of Service. For questions about your specific use case, consult legal counsel.

Read more: Is web scraping legal? (Apify Blog)


Privacy & Security

  • Isolated execution: Each run uses a sandboxed Docker container
  • No data persistence: Browser data deleted after each run
  • Non-root container: Runs as unprivileged user
  • Limited permissions: Actor only accesses its own storages
  • Session cleanup: Automatic cleanup of expired sessions

Support


What is MCP?

The Model Context Protocol (MCP) is an open standard by Anthropic that lets AI assistants connect to external tools. Think of it as "USB for AI"—a universal way for AI models to access capabilities beyond their training.

You don't need to understand MCP to use this Actor. Your AI handles all communication automatically.


License

MIT License - see LICENSE for details.