Advanced browser automation MCP server built on Microsoft Playwright MCP foundation
MyBrowserControl is a unified browser automation MCP (Model Context Protocol) server that combines the best features from multiple browser automation solutions:
- Microsoft Playwright MCP - Enterprise-grade foundation (21.4k stars, 96% issue resolution)
- AgentDesk AI - Lighthouse audits and advanced tooling
- BrowserMCP - Stealth mode and session management
- Native Mode (Default) - Fast, direct Playwright automation
- Lighthouse Mode - Performance audits and QA analysis
- Extension Mode - Connect to existing browser sessions
npm install -g @mybrowsercontrol/mcp# Start server in native mode (default)
mybrowsercontrol
# Start in Lighthouse mode
mybrowsercontrol --mode lighthouse
# Start in headless mode
mybrowsercontrol --headless
# Start with headed mode (visible browser window)
mybrowsercontrol --headed
# Use system-installed browser instead of Playwright's bundled browser
mybrowsercontrol --executable-path /usr/bin/chromium
# Combined: headed mode with system browser
mybrowsercontrol --headed --executable-path /usr/bin/chromiumAdd to your ~/.cline/mcp_servers.json:
{
"mcpServers": {
"browser": {
"command": "npx",
"args": ["@mybrowsercontrol/mcp@latest"]
}
}
}Or for local development:
{
"mcpServers": {
"browser": {
"command": "node",
"args": ["/home/mw/Projects/mybrowsercontrol/dist/index.js"]
}
}
}browser_navigate- Navigate to a URLbrowser_screenshot- Capture page screenshotbrowser_content- Get page HTML contentbrowser_close- Close the browser
browser_lighthouse_audit- Run Lighthouse performance auditsbrowser_session_save- Save browser session statebrowser_session_restore- Restore saved sessionbrowser_stealth_enable- Enable anti-detection modebrowser_optimize_tokens- AI-optimized result filtering
βββββββββββββββββββββββββββββββββββββββ
β AI Assistant (Cline/Claude) β
ββββββββββββββββ¬βββββββββββββββββββββββ
β MCP Protocol
βΌ
βββββββββββββββββββββββββββββββββββββββ
β MyBrowserControl MCP Server β
β β
β ββββββββββββββββββββββββββββββββββ β
β β Core: Playwright Foundation β β
β β - 3 deployment modes β β
β β - Multi-browser support β β
β β - Accessibility-first β β
β ββββββββββββββββββββββββββββββββββ β
β β
β ββββββββββββββββββββββββββββββββββ β
β β Extensions (Coming Soon) β β
β β - Lighthouse integration β β
β β - Stealth mode β β
β β - Session management β β
β β - Screenshot optimization β β
β ββββββββββββββββββββββββββββββββββ β
ββββββββββββββββ¬βββββββββββββββββββββββ
β Playwright API
βΌ
ββββββββββββββββ
β Browser β
β (Chrome/FF) β
ββββββββββββββββ
- Node.js 18+
- npm or yarn
- Git
# Clone repository
git clone https://github.com/satwareAG/mybrowsercontrol.git
cd mybrowsercontrol
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run devmybrowsercontrol/
βββ src/
β βββ index.ts # Entry point
β βββ server.ts # MCP server implementation
β βββ config/
β β βββ types.ts # Configuration types
β βββ core/
β β βββ playwright.ts # Playwright wrapper
β βββ extensions/ # Future extensions
β β βββ lighthouse/
β β βββ stealth/
β β βββ screenshot/
β β βββ session/
β βββ tools/ # MCP tool implementations
βββ dist/ # Compiled output
βββ docs/ # Documentation
βββ tests/ # Test suite
MyBrowserControl follows Test-Driven Design (TDD) principles with comprehensive test coverage:
- Unit Tests: β 46 tests passing
- Application Tests: π§ Pending implementation
- Integration Tests: π§ Pending implementation
- Acceptance Tests: π§ Pending implementation
# Run all unit tests
npm run test:unit
# Run with coverage
npm run test:unit -- --coverage
# Watch mode for TDD
npm run test:watch
# Run all tests (when implemented)
npm testTest tools interactively using the official MCP Inspector:
# Build project
npm run build
# Launch Inspector
npx @modelcontextprotocol/inspector node dist/index.jsThe Inspector provides a web UI to:
- List all available MCP tools
- Execute tools with custom parameters
- View responses and debug issues
- Monitor MCP protocol messages
- Testing Guide - Comprehensive testing strategy
- Inspector Guide - MCP Inspector usage and debugging
- Getting Started (coming soon)
- Configuration Guide (coming soon)
- API Reference (coming soon)
- Integration Plan
- Integration Analysis
- Testing Guide β
- Inspector Guide β
- Project structure and TypeScript setup
- Core Playwright wrapper
- Basic MCP server implementation
- Native mode with 4 core tools
- Testing framework
- CI/CD pipeline
- Lighthouse integration
- Screenshot optimization
- AI-optimized result filtering
- Extended tool set
- Multi-tab session management
- Stealth mode
- Session save/restore
- Selective tool loading
- Comprehensive testing
- Performance benchmarking
- Complete documentation
- v1.0.0 public release
Contributions are welcome! This is an open-source project under the Apache 2.0 license.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
Apache License 2.0 - See LICENSE file for details.
Built on the shoulders of giants:
- Microsoft Playwright MCP - Foundation and core architecture
- AgentDesk AI - Lighthouse integration inspiration
- BrowserMCP - Stealth mode techniques
- Model Context Protocol - MCP SDK and specification
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: ja@satware.ai
- GitHub Repository
- npm Package (pending publication)
- Documentation
- Changelog (coming soon)
Status: π§ Active Development (v0.1.0 - Phase 1)
Made with β€οΈ by satware AG