Playwright MCP Server
Overview​
Playwright is a browser automation framework for end-to-end testing and web scraping. The Playwright MCP server enables Enterprise h2oGPTe agents to automate browser interactions, scrape web content, and perform web automation tasks.
For more information, visit Playwright.
When to Use​
This MCP server is useful for:
- Enabling Enterprise h2oGPTe agents to automate web browser interactions, scrape web content, and perform web-based tasks
- Allowing agents to navigate websites, fill forms, click buttons, and extract data from web pages programmatically
- Integrating web automation with Enterprise h2oGPTe's capabilities for comprehensive web-based information gathering and task automation
- Automating web workflows where agents can interact with websites, extract content, or perform web-based operations
Requirements​
Before configuring this MCP server, ensure you have:
- Node.js environment
- Playwright installation
- Browser binaries (automatically installed)
Key Features​
The Playwright MCP server provides the following capabilities:
- Automate web browser interactions and navigation
- Extract content and data from web pages
- Fill forms and interact with web elements
- Take screenshots and capture page content
- Handle dynamic content and JavaScript-rendered pages
Configuration​
Add the following configuration in Agents > Tools > New Tool > Remote MCP Tools:
{
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest",
"--browser",
"chromium",
"--no-sandbox",
"--isolated",
"--ignore-https-errors"
],
"path_env": {
"PLAYWRIGHT_BROWSERS_PATH": "~/.cache/ms-playwright"
},
"env": {},
"tool_usage_mode": ["runner", "creator"],
"setup_commands": []
}
}
Authentication​
No additional environment variables required.
Notes​
- This MCP server uses STDIO transport protocol.
- Requires Node.js and npm to be installed for the
npxcommand. - Playwright browsers are automatically downloaded on first use and stored in the path specified by
PLAYWRIGHT_BROWSERS_PATH.
Feedback
- Submit and view feedback for this page
- Send feedback about Enterprise h2oGPTe to cloud-feedback@h2o.ai