Supports Docker deployment of Browserless instances for scalable browser automation infrastructure
Uses environment configuration files to manage Browserless connection settings and authentication tokens
Hosted on GitHub with issue tracking and community discussions for the MCP server project
Executes BrowserQL GraphQL queries for advanced browser automation workflows and operations
Executes custom JavaScript code in browser contexts for advanced web scraping and automation tasks
Runs Lighthouse performance audits on web pages to analyze performance, accessibility, and other metrics
Built as a Node.js application for browser automation through the Browserless platform
Manages dependencies and provides build scripts for the MCP server installation and development
Creates WebSocket connections for Puppeteer-based browser automation and control
Browserless MCP Server
A Model Context Protocol (MCP) server for Browserless.io browser automation. This server provides a comprehensive interface to Browserless's powerful browser automation capabilities through MCP tools.
Features
PDF Generation: Convert web pages or HTML content to PDF with custom styling
Screenshots: Capture full-page or element-specific screenshots
Content Extraction: Get rendered HTML content after JavaScript execution
Custom Functions: Execute JavaScript code in browser context
File Downloads: Handle file downloads and programmatic file creation
Page Export: Export web pages with all resources
Performance Audits: Run Lighthouse performance audits
Anti-Detection: Bypass bot detection and anti-scraping measures
BrowserQL: Execute GraphQL queries for advanced automation
WebSocket Connections: Create connections for Puppeteer/Playwright
Health Monitoring: Check instance health and get metrics
Session Management: Monitor active browser sessions
Installation
Clone the repository:
Install dependencies:
Build the project:
Copy the example environment file:
Edit
.env
with your Browserless configuration:
Usage
Starting the MCP Server
Or for development:
Using with MCP Clients
The server provides the following tools:
1. Initialize Browserless Connection
2. Generate PDF
3. Take Screenshot
4. Extract Content
5. Execute Custom Function
6. Run Performance Audit
7. Bypass Bot Detection
8. Execute BrowserQL Query
9. Create WebSocket Connection
10. Health and Monitoring
Browserless Setup
Docker Setup
Docker Compose
Advanced Examples
Complex Web Scraping
Multi-step Form Automation
PDF Report Generation
Configuration Options
Environment Variables
Variable | Default | Description |
|
| Browserless host |
|
| Browserless port |
| Required | Authentication token |
|
| Protocol (http/https/ws/wss) |
|
| Request timeout in ms |
|
| Max concurrent sessions |
Browserless Configuration
For complete Browserless configuration options, see the Browserless API Reference.
Error Handling
The MCP server provides detailed error messages for common issues:
Connection Errors: Check host, port, and token configuration
Timeout Errors: Increase timeout values for slow-loading pages
Authentication Errors: Verify token is correct and has proper permissions
Resource Errors: Check concurrent session limits and memory usage
Development
Building
Testing
Linting
Formatting
Troubleshooting
Common Issues
Connection Refused
Ensure Browserless is running
Check host and port configuration
Verify firewall settings
Authentication Failed
Verify token is correct
Check token permissions
Ensure token is not expired
Timeout Errors
Increase timeout values
Check network connectivity
Monitor Browserless resource usage
Memory Issues
Reduce concurrent session limit
Monitor system memory usage
Restart Browserless instance
Debug Mode
Enable debug logging:
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
License
MIT License - see LICENSE file for details.
Support
For issues and questions:
Check the Browserless API Reference
Review the Browserless Documentation
Open an issue on GitHub
Related Projects
Browserless.io - Browser automation platform
Puppeteer - Node.js library for browser automation
Playwright - Cross-browser automation library
Model Context Protocol - Protocol for AI model interactions
Repository
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Enables comprehensive browser automation through Browserless.io including PDF generation, screenshots, content extraction, performance audits, and web scraping with anti-detection capabilities. Provides a complete interface to browser automation tasks through natural language interactions.
Related MCP Servers
- AsecurityAlicenseAqualityFacilitates browser automation with custom capabilities and agent-based interactions, integrated through the browser-use library.Last updated -1813MIT License
- AsecurityFlicenseAqualityEnables browser automation using Python scripts, offering operations like taking webpage screenshots, retrieving HTML content, and executing JavaScript.Last updated -419
- -securityAlicense-qualityEnables browser automation and real-time computer vision tasks through AI-driven commands, offering zero-cost digital navigation and interaction for enhanced web experiences.Last updated -01MIT License
- -securityFlicense-qualityProvides browser automation capabilities through an API endpoint that interprets natural language commands to perform web tasks using OpenAI's GPT models.Last updated -