MCP-Tools
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π MCP-Tools: Advanced Browser Automation & Web Analysis
Enterprise-grade browser automation platform with W3C WebDriver BiDi, network interception, and comprehensive web analysis
A powerful collection of Model Context Protocol (MCP) tools for advanced browser automation, web analysis, and development workflows. Built with Node.js, Docker, and cutting-edge web technologies including the latest W3C standards.
β¨ Features
π Advanced Screenshot Capabilities
HTTPS Support: Handle self-signed certificates automatically
Full Page Rendering: Capture complete web pages with dynamic content
Custom Viewports: Support for desktop, mobile, and tablet resolutions
Direct URL Access: No browser navigation required
Multi-Format Support: PNG, JPEG, WebP, and PDF output
π Lighthouse Integration
Performance Audits: Detailed performance metrics and optimization suggestions
Accessibility Testing: WCAG compliance and accessibility analysis
SEO Analysis: Meta tags, structured data, and SEO optimization
Best Practices: Security, performance, and coding standards
Core Web Vitals: FCP, LCP, FID, CLS, and TTI metrics
π§ Development Tools
Console Monitoring: Real-time console logs and error tracking
Network Analysis: Request/response monitoring and debugging
Enhanced Element Interactions: Advanced locator-based interactions with automatic waiting
Advanced Selectors: Text, ARIA, and Shadow DOM selectors
Form Automation: Multi-field form filling with validation
Keyboard & Mouse Control: Precise input and click interactions
JavaScript Execution: Execute JavaScript in page context with full DOM access
Element Script Execution: Run scripts on specific elements or element collections
Script Injection: Inject and execute custom scripts with page context access
Network Interception: Intercept, block, modify, and mock network requests
Request/Response Monitoring: Real-time network traffic analysis
WebDriver BiDi: W3C-standard bidirectional browser automation protocol
Real-time Events: Live browsing context and script events
Responsive Testing: Cross-device compatibility validation
π³ Docker Integration
Containerized Environment: Consistent deployment across platforms
HTTPS Support: Built-in SSL certificate generation
Easy Setup: One-command deployment with Docker Compose
Resource Management: Configurable memory and CPU limits
Health Monitoring: Built-in health checks and monitoring
Related MCP server: Chrome DevTools MCP
ποΈ Project Structure
MCP-Tools/
βββ src/ # Source code
β βββ mcp-server/ # MCP server implementation
β β βββ mcp-server.ts # Main MCP server
β β βββ package.json # MCP server dependencies
β β βββ dist/ # Compiled JavaScript
β βββ http-server/ # HTTP API server
β β βββ browser-connector-extended.js
β β βββ package.json # HTTP server dependencies
β β βββ secure-server.ts # HTTPS support
β βββ services/ # Core services
β β βββ chromium-screenshot-service.js
β β βββ lighthouse-service.js
β β βββ enhanced-interaction-service.js
β β βββ javascript-execution-service.js
β β βββ network-interception-service.js
β β βββ webdriver-bidi-service.js
β βββ utils/ # Utilities
βββ docs/ # Comprehensive documentation
βββ tests/ # Test files and examples
βββ scripts/ # Build and utility scripts
βββ docker/ # Docker configuration
βββ examples/ # Usage examples
βββ config/ # Configuration filesπ Quick Start
Prerequisites
Docker and Docker Compose
Node.js 18+ (for local development)
Git
Installation
Clone the repository
git clone https://github.com/zachshallbetter/MCP-Tools.git cd MCP-ToolsInstall dependencies and build
npm install npm run buildStart with Docker
npm run start # or cd docker && docker-compose up -dVerify installation
curl http://localhost:3025/.identity
MCP Configuration
Add to your MCP configuration (e.g., ~/.cursor/mcp.json):
{
"mcpServers": {
"browser-tools": {
"command": "node",
"args": [
"/path/to/MCP-Tools/src/mcp-server/dist/mcp-server.js"
],
"env": {}
}
}
}π Usage Examples
Screenshots
# Take a screenshot of any website
curl -X POST http://localhost:3025/capture-screenshot \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "fullPage": true}'
# Mobile viewport screenshot
curl -X POST http://localhost:3025/capture-screenshot \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "viewport": {"width": 375, "height": 667}}'Lighthouse Audits
# Run comprehensive Lighthouse audit
curl -X POST http://localhost:3025/lighthouse-audit \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "categories": ["performance", "accessibility"]}'
# Mobile performance analysis
curl -X POST http://localhost:3025/analyze-performance \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "device": "mobile"}'Enhanced Element Interactions
# Click element with automatic waiting
curl -X POST http://localhost:3025/interact/click \
-H "Content-Type: application/json" \
-d '{"selector": "button[type=\"submit\"]", "url": "https://example.com"}'
# Fill form with multiple fields
curl -X POST http://localhost:3025/interact/fill-form \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "formData": {"input[name=\"email\"]": "user@example.com", "input[name=\"password\"]": "password123"}}'
# Find element by text content
curl -X POST http://localhost:3025/interact/text-selector \
-H "Content-Type: application/json" \
-d '{"text": "Submit Form", "url": "https://example.com"}'JavaScript Execution
# Execute JavaScript in page context
curl -X POST http://localhost:3025/js/evaluate \
-H "Content-Type: application/json" \
-d '{"script": "return document.title;", "url": "https://example.com"}'
# Execute function with arguments
curl -X POST http://localhost:3025/js/execute-function \
-H "Content-Type: application/json" \
-d '{"functionBody": "return arg0 + arg1;", "args": [5, 10]}'
# Execute script on specific element
curl -X POST http://localhost:3025/js/execute-on-element \
-H "Content-Type: application/json" \
-d '{"selector": "input[name=\"email\"]", "script": "return this.value;"}'Network Interception
# Enable network interception
curl -X POST http://localhost:3025/network/enable-interception \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
# Block image and analytics requests
curl -X POST http://localhost:3025/network/block-requests \
-H "Content-Type: application/json" \
-d '{"patterns": [".png", ".jpg", "analytics"], "reason": "performance optimization"}'
# Mock API response
curl -X POST http://localhost:3025/network/mock-response \
-H "Content-Type: application/json" \
-d '{"urlPattern": "/api/users", "mockData": {"status": 200, "body": {"users": [{"id": 1, "name": "John"}]}}}'WebDriver BiDi (W3C Standard)
# Connect to WebDriver BiDi
curl -X POST http://localhost:3025/bidi/connect \
-H "Content-Type: application/json"
# Create browsing context
curl -X POST http://localhost:3025/bidi/create-context \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
# Navigate via BiDi
curl -X POST http://localhost:3025/bidi/navigate \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
# Take screenshot via BiDi
curl -X POST http://localhost:3025/bidi/screenshot \
-H "Content-Type: application/json"
# Evaluate script via BiDi
curl -X POST http://localhost:3025/bidi/evaluate \
-H "Content-Type: application/json" \
-d '{"script": "return document.title;", "awaitPromise": true}'π§ Development
Available Scripts
# Build all components
npm run build
# Build specific components
npm run build:mcp # Build MCP server
npm run build:http # Build HTTP server
# Start services
npm run start # Start with Docker
npm run stop # Stop Docker services
# Development mode
npm run dev # Build and start
# Testing
npm run test # Run all tests
npm run test:api # Test API endpoints
npm run test:mcp # Test MCP tools
# Docker management
npm run docker:build # Build Docker image
npm run docker:up # Start Docker services
npm run docker:down # Stop Docker services
npm run docker:logs # View Docker logs
# Cleanup
npm run clean # Remove build artifactsLocal Development
# Install dependencies
npm install
# Build MCP server
cd src/mcp-server && npm run build
# Start HTTP server
cd src/http-server && npm startDocker Development
# Build and start
cd docker && docker-compose up --build
# View logs
cd docker && docker-compose logs -f
# Access container
docker exec -it browser-tools-mcp-dev bashπ Documentation
Getting Started
π Getting Started Guide - Complete setup and configuration
π³ Docker Guide - Containerization and deployment
π§ Troubleshooting - Common issues and solutions
Reference Documentation
π API Reference - Complete API documentation
β¨ Features Guide - Detailed feature overview
Project Overview
π Main README - Project overview and quick start
π¦ Repository - Source code and issues
π Advanced Features
Enhanced Element Interactions (Inspired by Puppeteer)
Automatic Waiting: Elements are automatically waited for with proper state validation
Stability Checks: Bounding box stability over animation frames
Viewport Positioning: Automatic scrolling to bring elements into view
State Validation: Ensures elements are visible, enabled, and ready for interaction
JavaScript Execution (Inspired by Puppeteer JavaScript Execution)
Page Context Execution: Execute JavaScript directly in the page context with full DOM access
Handle Management: Work with JSHandle and ElementHandle for complex object manipulation
Function Execution: Execute custom functions with argument passing and return value handling
Element-Specific Scripts: Run scripts on specific elements or element collections
Promise Support: Handle asynchronous operations and promises with automatic awaiting
Script Injection: Inject and execute custom scripts with full page context access
Network Interception (Inspired by Puppeteer Network Interception)
Request Interception: Intercept and control every network request before it's made
Cooperative Intercept Mode: Multiple handlers working together with priority-based resolution
Request Blocking: Block requests by URL patterns, resource types, or custom criteria
Header Modification: Modify request headers for authentication, testing, or debugging
Response Mocking: Mock API responses for testing and development
Request Throttling: Simulate slow network conditions and test performance
WebDriver BiDi (W3C Standard - Specification)
Bidirectional Communication: Real-time two-way communication with the browser
W3C Standard: Industry-standard protocol for browser automation
Browsing Context Management: Create, navigate, and manage browser contexts
Real-time Events: Live subscription to browsing context and script events
Script Execution: Execute scripts in sandboxed realms with full context access
Node Location: Locate DOM nodes using CSS selectors with BiDi protocol
Preload Scripts: Inject scripts that run before page load
Session Management: Full session lifecycle management with proper cleanup
π Security & HTTPS
HTTPS Support
# Enable HTTPS
export ENABLE_HTTPS=true
npm run start
# Generate certificates
cd src/http-server
node generate-certs.js
# Test HTTPS endpoint
curl -k https://localhost:3026/.identitySecurity Features
Self-signed Certificate Generation: Automatic SSL certificate creation
TLS 1.2+ Support: Modern encryption standards
Request Validation: Input sanitization and validation
Rate Limiting: Configurable request rate limiting
Access Control: IP whitelisting and authentication support
π Monitoring & Performance
Health Checks
# Service health
curl http://localhost:3025/.identity
# Container status
cd docker && docker-compose ps
# Resource usage
docker stats browser-tools-mcp-devPerformance Optimization
Headless Browser: Resource-efficient operation
Connection Pooling: HTTP connection reuse
Memory Management: Efficient memory usage and cleanup
Request Batching: Multiple operations in single requests
π§ Configuration
Environment Variables
# Server configuration
PORT=3025
ENABLE_HTTPS=true
CERT_DIR=/app/certs
CHROMIUM_PATH=/usr/bin/chromium
# Development mode
NODE_ENV=development
DEBUG=browser-tools:*
LOG_LEVEL=debugDocker Configuration
# docker/docker-compose.yml
version: '3.8'
services:
browser-tools-mcp-dev:
build:
context: ..
dockerfile: docker/Dockerfile
ports:
- "3025:3025" # HTTP
- "3026:3026" # HTTPS
environment:
- ENABLE_HTTPS=true
- PORT=3025
volumes:
- ../src:/app/src
- ../certs:/app/certsπ€ Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Development Guidelines
Code Style: Follow existing code patterns and ESLint rules
Testing: Include tests for new features
Documentation: Update relevant documentation
TypeScript: Use TypeScript for new features when possible
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Model Context Protocol: For the MCP framework
Puppeteer: For browser automation capabilities and advanced interaction patterns
Lighthouse: For web analysis and auditing
W3C WebDriver BiDi: For the bidirectional protocol specification
Docker: For containerization and deployment
π Support
Issues: GitHub Issues
Documentation: Wiki
Discussions: GitHub Discussions
Community: MCP Community
π Roadmap
Upcoming Features
Multi-Browser Support: Firefox, Safari, and Edge automation
Cloud Deployment: AWS, Azure, and Google Cloud integration
CI/CD Integration: GitHub Actions, Jenkins, and GitLab CI
Advanced Analytics: Performance metrics and trend analysis
Plugin System: Extensible architecture for custom tools
Performance Improvements
Parallel Processing: Concurrent browser automation
Resource Optimization: Memory and CPU usage optimization
Caching System: Intelligent response caching
Load Balancing: Horizontal scaling and distribution
MCP-Tools: The most comprehensive browser automation platform for professional web development and testing workflows! π
Built with β€οΈ for the MCP community
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Automate cloud Chromeβnavigate, click, type, screenshot, run code, record screen video
Crawl, scrape, search the web, and automate browsers at scale with anti-bot bypass.
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to control and inspect a live Chrome browser through DevTools for automated testing, performance analysis, debugging, and web scraping. Provides reliable browser automation using Puppeteer with comprehensive DevTools access.3Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to control and inspect a live Chrome browser for automation, debugging, performance analysis, network monitoring, and DOM interaction through Chrome DevTools Protocol.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProvides browser automation, AI-powered analysis, visual processing, web scraping, automated test generation, and DevTools analysis capabilities. Supports multiple AI providers (OpenAI, Anthropic, Google, Ollama) for intelligent web interaction and data extraction.1-
- AlicenseNot gradedqualityBmaintenanceEnables headless-Chromium web automation, including rendering fully-executed HTML, extracting structured data with CSS selectors, capturing screenshots, and AI-assisted smart scraping of web pages.293 npmMIT