Logo PyDoll MCP Server

PyDoll MCP Server

Cộng đồng
JinsongRoh

PyDoll MCP Server is a Model Context Protocol (MCP) server built on PyDoll, a next-generation browser automation library. It enables AI assistants like Claude to naturally control web browsers and perform complex web automation tasks.

Nhà phát hànhJinsongRoh
Kho mãpydoll-mcp
Ngôn ngữPython
Bản fork
8
Sao
21
Công cụ có sẵn
0
Phương thức truyền tảistdio, streamable-http
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    PyDoll MCP Server cung cấp các chức năng MCP cho các ứng dụng khách AI và tác nhân AI tương thích.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Mẫu cấu hình có thể sao chép ngay

    Dùng các đoạn cấu hình mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Mức độ quan tâm của cộng đồng đến kho mã

    21 sao và 8 bản fork từ kho mã được liên kết.

🤖 PyDoll MCP Server(pydoll-mcp) v1.5.16

📢 Latest Updates (v1.5.16 - 2025-07-20)

🎯 Critical Browser Control Fixes

✅ Fixed "Tab None not found in browser" Errors

  • Fixed: Critical tab management issues causing "Tab None not found" errors
  • Enhanced: Implemented proper get_tab_with_fallback() usage across all tools
  • Improved: Tab ID references now use actual_tab_id after fallback
  • Fixed: Script tools, element tools, and screenshot tools tab handling

🔧 Complete Element Finding Rewrite

  • NEW: Complete rewrite of element_tools.py using PyDoll's native API
  • Enhanced: Native find() method for natural attribute selection
  • Improved: Native query() method for CSS selectors and XPath
  • Fixed: Removed execute_script workarounds that masked real issues
  • Better: Error handling without fallback simulations

📋 Technical Improvements

  • Enhanced: Async/await patterns for all element operations
  • Improved: Logging for better debugging and issue tracking
  • Better: Error messages for clearer feedback
  • Fixed: Element finding now returns proper results instead of empty arrays

🚀 Critical Update: This version fixes fundamental element finding and tab management issues. Upgrade immediately:

bash
pip install --upgrade pydoll-mcp==1.5.16

📢 Previous Updates (v1.5.14 - 2025-07-20)

🛠️ Critical Browser Control & API Integration Fixes

✅ Fixed Tab Management Issues (Critical)

  • Fixed: Tab closing operations now actually close browser tabs instead of just reporting success
  • Enhanced: Added real PyDoll API integration for close_tab() with await tab.close() calls
  • Improved: Tab state synchronization between API responses and actual browser state
  • Fixed: Tab management disconnect that caused commands to report success without browser changes

🔄 Enhanced Page Refresh Functionality

  • Fixed: 'Tab' object has no attribute 'reload' error in refresh operations
  • Added: PyDoll API compatibility checks with multiple fallback methods
  • Enhanced: Uses correct PyDoll methods: tab.refresh(), tab.reload(), or JavaScript fallbacks
  • Improved: Robust error handling and graceful degradation for refresh operations

🎯 Real Browser Control Integration

  • Enhanced: Direct PyDoll-python API calls instead of simulation responses
  • Added: Proper browser-API state synchronization for all tab operations
  • Improved: Error logging and debugging for browser control operations
  • Fixed: Disconnection between MCP responses and actual browser behavior

🚀 Deployment & Automation Improvements

  • Added: Comprehensive GitHub Actions workflow for automated releases
  • Enhanced: PyPI deployment automation with security best practices
  • New: Smithery.ai registry auto-update functionality
  • Improved: Release notes generation and deployment verification

🚀 Critical Update: This version fixes fundamental browser control issues. Upgrade immediately:

bash
pip install --upgrade pydoll-mcp

📢 Previous Updates (v1.5.13 - 2025-07-20)

🪟 Windows Compatibility & Enhanced Search Automation

✅ Windows Environment Optimization

  • Fixed: Windows tab recognition issues with enhanced tab readiness checks
  • Added: Windows-specific Chrome browser arguments for better stability
  • Enhanced: Tab initialization with multi-attempt verification system
  • Improved: Browser startup compatibility on Windows platforms
  • Optimized: 40% faster tab detection on Windows systems

🔍 Revolutionary Search Automation

  • NEW: intelligent_search tool for automatic search execution on any website
  • Added: Multi-strategy element finding with smart fallbacks
  • Enhanced: Common search element selectors (Google, Bing, DuckDuckGo support)
  • Improved: Human-like typing and search submission methods
  • Advanced: Auto-detection of website types and optimal search strategies

🔧 Enhanced PyDoll Integration

  • Added: Comprehensive PyDoll compatibility checking
  • Enhanced: Error handling and retry mechanisms for PyDoll operations
  • Improved: Windows-specific browser option optimizations
  • New: PyDoll integration health monitoring and reporting

🧪 Testing & Quality Assurance

  • Added: Comprehensive Windows compatibility test suite
  • Enhanced: Automated testing for element finding and search automation
  • Improved: Cross-platform compatibility verification
  • New: Performance benchmarking and regression testing

📢 Previous Updates (v1.5.9 - 2025-07-20)

🐛 Critical Bug Fixes

✅ Fixed Browser Initial Tab Detection

  • Fixed: Browser's initial "New Tab" was not detected, causing list_tabs to return empty array
  • Enhanced: Automatic detection and registration of initial tabs when browser starts
  • Added: Default tab is now properly tracked in browser_instance.tabs dictionary
  • Improved: First tab is automatically set as active tab on browser startup

🔧 Fixed Missing MCP Protocol Methods

  • Fixed: "Method not found" errors for required MCP protocol methods
  • Added: resources/list handler (returns empty list)
  • Added: prompts/list handler (returns empty list)
  • Enhanced: Full MCP protocol compliance

📊 Enhanced Browser Management

  • Added: active_tab_id property to BrowserInstance class for better tab tracking
  • Improved: Tab lifecycle management from browser creation to destruction
  • Enhanced: Logging now shows initial tab count on browser startup

📢 Previous Updates (v1.5.8 - 2025-07-20)

🔧 Critical Tab Management Fix

✅ Fixed Tab Management System (Critical)

  • Fixed: Tab navigation errors - 'Tab' object has no attribute 'navigate' by using proper tab.goto() API
  • Enhanced: Proper tab tracking and lifecycle management in browser instances
  • Fixed: "Tab not found" errors by implementing actual tab management instead of hardcoded responses
  • Improved: Navigation tools to properly access tabs from browser instances
  • Added: Active tab tracking with fallback to first available tab

📢 Previous Updates (v1.5.7 - 2025-07-20)

🔧 Critical Fixes

✅ Fixed Browser Serialization Issue (Critical)

  • Fixed: Unable to serialize unknown type: BrowserInstance error that prevented browser startup
  • Enhanced: Browser startup handler to return proper serializable data instead of raw browser instances
  • Improved: Tab management system with better browser-tab connection tracking
  • Added: Enhanced tab creation with better fallback mechanisms for older PyDoll versions

🔄 Enhanced Tab Management

  • Fixed: Tab ID tracking and browser-tab connection issues that caused "Tab not found" errors
  • Updated: Navigation functions to properly handle tab lookup and browser instance management
  • Improved: Error handling and recovery for browser and tab operations
  • Enhanced: Resource cleanup and browser destruction methods

📊 Performance Improvements

  • Reduced: Serialization overhead in MCP responses for faster operations
  • Optimized: Tab operations with direct browser instance access
  • Enhanced: Logging and debugging information for better troubleshooting

📢 Previous Updates (v1.5.6 - 2025-07-20)

🐛 Critical Chrome Security & Serialization Fixes

✅ Fixed Chrome Security Warnings

  • Fixed: Chrome security warnings about disabled security features
  • Removed: --disable-web-security flag that caused security warnings
  • Enhanced: Browser startup stability and security compliance
  • Improved: Chrome compatibility with latest browser versions

📢 Previous Updates (v1.5.5 - 2025-07-20)

🐛 Critical Browser Options Fix

✅ Fixed "unhashable type: 'list'" Error

  • Fixed: Critical browser startup failure caused by unhashable objects in cache keys
  • Added: Safe cache key generation that converts lists to tuples for hashability
  • Improved: Browser options caching stability and performance
  • Enhanced: Better error handling and debugging messages

🔧 Browser Status Improvements

  • Fixed: Inaccurate browser count reporting in list_browsers
  • Enhanced: Real browser instance detection and status reporting
  • Added: Proper browser status details including uptime and tab count
  • Improved: Browser manager integration with tool handlers

📢 Previous Updates (v1.5.4 - 2025-07-20)

🐛 Chrome Browser Conflict Fix

✅ Fixed Chrome Process Conflicts

  • Added: Automatic detection of existing Chrome processes
  • Fixed: Browser startup failures when Chrome is already running
  • Added: Automatic temporary user data directory creation to avoid conflicts
  • Fixed: Missing get_tab method in BrowserManager
  • Added: psutil dependency for Chrome process detection

🔧 Technical Improvements

  • Enhanced: Browser options handling with user data directory support
  • Improved: Error handling for Chrome process conflicts
  • Better: Tab management and retrieval methods

📢 Previous Updates (v1.5.3 - 2025-07-20)

🔧 Quality Improvements & Updates

✅ Enhanced Documentation

  • Improved: Enhanced server module documentation with comprehensive feature list
  • Updated: Clarified dependency requirements for better compatibility
  • Fixed: Updated author email address for proper contact information

📦 Dependency Updates

  • Updated: Refined dependency constraints for improved stability
  • Maintained: Full compatibility with PyDoll 2.3.1 and aiofiles 23.x

📢 Previous Updates (v1.5.2 - 2025-07-20)

🐛 Dependency Fix

✅ Fixed aiofiles Version Conflict

  • Fixed: Resolved deployment issues on Smithery.ai
  • Updated: aiofiles requirement to >=23.2.1,<24.0.0 for PyDoll 2.3.1 compatibility

📢 Previous Updates (v1.5.1 - 2025-07-20)

🐛 Critical Bug Fix

✅ Fixed PyDoll Compatibility Issue

  • Fixed: Resolved ChromiumOptions incompatibility with PyDoll 2.3.1
  • Fixed: Removed duplicate browser arguments that caused initialization failures
  • Fixed: Eliminated start_timeout parameter that wasn't supported by PyDoll
  • Improved: Enhanced error handling for browser argument conflicts

📢 Previous Updates (v1.5.0 - 2025-07-20)

🚀 Major Performance and Quality Update

✨ Performance Enhancements

  • 🆕 Browser Pool Implementation: New browser instance pooling for 3x faster browser reuse
  • 🆕 Options Caching: Browser configuration caching reduces startup time by 40%
  • 🆕 Enhanced Metrics: Real-time performance tracking with error rates and navigation timing
  • ✅ Optimized Resource Management: Improved memory usage with automatic cleanup (20% reduction)

🧪 Quality Improvements

  • 🆕 Test Coverage: Added comprehensive test suites increasing coverage by 35%
  • ✅ Code Modernization: Removed deprecated Chrome flags and improved type hints
  • ✅ Error Handling: Enhanced error tracking and recovery mechanisms with metrics
  • 🆕 Async Context Managers: Safe tab operations with automatic error tracking

📦 Dependency Updates

  • ✅ aiofiles: 23.0.0 → 24.1.0 (improved async file operations)
  • ✅ click: 8.0.0 → 8.1.0 (enhanced CLI functionality)
  • ✅ mcp: 1.0.0 → 1.2.0 (latest MCP protocol features)
  • ✅ pydantic: 2.0.0 → 2.10.4 (better validation and performance)

📊 Performance Benchmarks

  • Browser Creation: 2.5s → 1.5s (40% faster)
  • Browser Reuse: N/A → 0.1s (new feature)
  • Option Parsing: 50ms → 5ms (90% faster)
  • Memory Usage: 20% reduction
  • Cleanup Time: 5s → 2s (60% faster)

Previous Updates (v1.4.3 - 2025-07-20)

🚀 Major Update - PyDoll 2.3.1 Compatibility

✨ New Features

  • ✅ PyDoll 2.3.1 Support: Updated to support latest PyDoll version with enhanced capabilities
  • ✅ Improved Script Selection: Better DOM element querying and script execution
  • ✅ Enhanced Click Methods: More reliable click and selection methods
  • ✅ Fetch Command Improvements: Added fetch command processing with string body support
  • ✅ WebSocket 14.0 Support: Upgraded to latest websockets version for better stability

🔧 Improvements

  • ✅ Better Selector Support: Refined selector conditions to include attribute checks
  • ✅ Request Handling: Enhanced continue and fulfill request methods with new options
  • ✅ Performance: Optimized element finding and interaction performance

🐛 Bug Fixes

  • ✅ Python Boolean Syntax: Fixed false/true to False/True in tool definitions
  • ✅ Request Body Type: Changed body type from dict to string in fetch commands
  • ✅ Selector Robustness: Improved selector matching for complex DOM structures

Previous Updates (v1.3.1 - 2025-07-20)

🔧 Critical Bug Fixes

  • ✅ Fixed Tool Loading: All 79 tools now properly load (was only 28 in v1.3.0)
  • ✅ Added Missing Modules: Protection, Network, and File tool modules now included
  • ✅ Pydantic V2 Compatibility: Fixed all deprecation warnings
  • ✅ CLI Improvements: Added missing configuration generation function

Previous Updates (v1.3.0 - 2025-07-19)

🔥 Major PyDoll API Integration Upgrade

  • ✅ Real PyDoll Integration: Replaced ALL simulation handlers with actual PyDoll API calls
  • ✅ Navigation Tools: Fully implemented navigate_to, refresh_page, go_back, get_current_url, get_page_title, get_page_source with real browser control
  • ✅ Element Interaction: Complete implementation of find_element, click_element, type_text using PyDoll's revolutionary natural attribute finding
  • ✅ Screenshot Capture: Real screenshot functionality with native PyDoll methods
  • ✅ Intelligent Fallbacks: Automatic fallback to simulation when real API calls fail for maximum compatibility
  • ✅ Performance Tracking: Added execution time tracking for all operations
  • ✅ Enhanced Browser Management: New ensure_tab_methods() for backward compatibility with dynamic method injection

Previous Updates (v1.2.0 - 2025-07-19)

🚀 PyDoll 2.3.1 Support

  • ✅ Upgraded Dependencies: Now supports PyDoll 2.3.1 with all its new features
  • ✅ New Tool - fetch_domain_commands: Access Chrome DevTools Protocol commands for advanced debugging
  • ✅ New Tool - get_parent_element: Navigate up the DOM tree to find parent elements
  • ✅ Browser Start Timeout: Configure browser startup timeout for slower systems
  • ✅ Enhanced Type Hinting: Better IDE support and code quality

Previous Updates (v1.1.4 - 2025-07-19)

🔧 Critical Bug Fixes

  • ✅ Fixed JSON Parsing Errors: Resolved MCP client communication issues by properly separating stdout/stderr
  • ✅ Enhanced Korean Windows Support: Fixed CP949/EUC-KR encoding errors on Korean Windows systems
  • ✅ Improved Protocol Compliance: Moved all non-JSON output to stderr for clean MCP communication
  • ✅ Universal UTF-8 Support: Implemented comprehensive UTF-8 encoding across all platforms

🛡️ Stability Improvements

  • Better Error Handling: Enhanced error messages for improved client parsing
  • Startup Reliability: Ensured stable server startup regardless of system encoding
  • Cross-Platform Compatibility: Full support for international characters (Korean, Japanese, Chinese)
  • Performance: 20% faster startup, 15% reduced memory usage

Previous Updates (v1.1.3 - 2025-07-19)

  • ✅ Fixed Version Detection Issue: Resolved __version__ import error that caused version to display as "vunknown"
  • ✅ Enhanced Tool Count Consistency: Fixed inconsistency in tool count reporting between different commands (77 tools confirmed)
  • ✅ Windows Compatibility Enhanced: Updated documentation with Windows-compatible commands (using findstr instead of grep)
  • ✅ Pydantic V2 Full Compliance: Eliminated all configuration warnings by migrating to json_schema_extra

Previous Updates (v1.1.2 - 2025-06-18)

  • ✅ Fixed Korean Windows Encoding Issue: Resolved UnicodeEncodeError: 'cp949' codec can't encode character '🤖' that prevented server startup on Korean Windows systems
  • ✅ Added Missing main.py: Added proper module execution support for python -m pydoll_mcp command
  • ✅ Enhanced Multi-level Encoding Safety: Implemented fallback mechanisms for robust cross-platform compatibility
  • ✅ Improved International Support: Better handling of non-English Windows environments

Previous Updates (v1.1.1 - 2025-06-17)

  • ✅ Enhanced Encoding Support: Added comprehensive encoding detection and fallback mechanisms
  • ✅ International Compatibility: Improved support for all non-English Windows environments
  • ✅ Automatic Recovery: Added robust error recovery for encoding-related failures

Previous Updates (v1.1.0 - 2025-06-16)

  • ✅ One-Click Setup: Automatic Claude Desktop configuration during pip installation
  • ✅ Enhanced CLI: New commands for setup, testing, and configuration
  • ✅ Developer Experience: Post-install hooks and interactive guides

🌟 What Makes PyDoll MCP Server Revolutionary?

PyDoll MCP Server brings the groundbreaking capabilities of PyDoll to Claude, OpenAI, Gemini and other MCP clients. Unlike traditional browser automation tools that struggle with modern web protection, PyDoll operates at a fundamentally different level.

PyDoll GitHub and Installation Information

  • GitHub: https://github.com/autoscrape-labs/pydoll
  • How to install: pip install pydoll-python
  • PyDoll version: PyDoll 2.3.1 (2025.06.20)
  • NEW in v1.2.0: Enhanced Chrome DevTools Protocol support with domain commands and parent element navigation

🚀 Key Breakthrough Features

  • 🚫 Zero WebDrivers: Direct browser communication via Chrome DevTools Protocol
  • 🧠 AI-Powered Captcha Bypass: Automatic Cloudflare Turnstile & reCAPTCHA v3 solving
  • 👤 Human Behavior Simulation: Undetectable interactions that fool sophisticated anti-bot systems
  • ⚡ Native Async Architecture: Lightning-fast concurrent automation
  • 🕵️ Advanced Stealth Mode: Anti-detection techniques that make automation invisible
  • 🌐 Real-time Network Control: Intercept, modify, and analyze all web traffic
  • 🔧 One-Click Setup: Automatic Claude Desktop configuration
  • 🌍 Universal Compatibility: Works on all systems including Korean Windows
  • 🎯 NEW v1.5.12: Intelligent Tab Management with automatic ID detection and fallback mechanisms
  • 🔗 NEW v1.5.12: Enhanced Connection Stability with 60% fewer errors in multi-tab scenarios

📋 What Can You Do?

🎯 Smart Web Automation

  • Navigate websites with human-like behavior patterns
  • Extract data from protected and dynamic websites
  • Automate complex workflows across multiple pages
  • Handle modern SPAs and dynamic content seamlessly

🛡️ Protection System Bypass

  • Automatically solve Cloudflare Turnstile captchas
  • Bypass reCAPTCHA v3 without external services
  • Evade sophisticated bot detection systems
  • Navigate through protected content areas

📊 Advanced Data Extraction

  • Scrape data from modern protected websites
  • Monitor and capture all network API calls
  • Extract information from dynamic, JavaScript-heavy sites
  • Handle complex authentication flows

🔍 Comprehensive Testing & Monitoring

  • Test websites under realistic user conditions
  • Monitor performance and network behavior
  • Validate forms and user interactions
  • Capture screenshots and generate reports

💻 Quick Installation & Setup

⚡ One-Command Installation (Recommended)

bash
pip install pydoll-mcp

NEW in v1.5.14: Critical Browser Control Fixes - Real Tab Management! 🎉

After installation, you'll see:

🤖 Setting up PyDoll MCP Server...

🎉 PyDoll MCP Server installed successfully!
============================================================

🚀 Quick Start Options:
1. 🔧 Auto-configure Claude Desktop
2. 📋 Generate config manually
3. 🧪 Test installation
4. ⏭️  Skip setup (configure later)

🎯 Choose an option (1-4): 1

🚀 Alternative Setup Methods

Option 1: One-Click Auto Setup

bash
# Install and configure everything automatically
pip install pydoll-mcp
python -m pydoll_mcp.cli auto-setup

Option 2: Manual Setup from Source

bash
# Clone the repository
git clone https://github.com/JinsongRoh/pydoll-mcp.git
cd pydoll-mcp

# Install dependencies
pip install -r requirements.txt

# Install in development mode
pip install -e .

# Setup Claude Desktop
python -m pydoll_mcp.cli setup-claude

Option 3: Docker Installation

bash
# Pull and run the Docker container
docker run -d --name pydoll-mcp -p 8080:8080 jinsongroh/pydoll-mcp:latest

⚙️ Claude Desktop Integration

🔧 Automatic Setup (Enhanced in v1.2.0)

The easiest way to get started:

bash
# After installing with pip, just run:
python -m pydoll_mcp.cli auto-setup

NEW! CLI Management Commands:

bash
# Show configuration status
python -m pydoll_mcp.cli setup-info

# Restore from backup
python -m pydoll_mcp.cli restore-config

# Remove PyDoll configuration
python -m pydoll_mcp.cli remove-config

The auto-setup will:

  • ✅ Test your installation
  • ✅ Detect your OS (Windows/macOS/Linux)
  • ✅ Locate your Claude Desktop config
  • ✅ Backup existing configuration
  • ✅ Add PyDoll MCP Server configuration
  • ✅ Configure optimal Python executable path
  • ✅ Verify everything works

🛠️ Manual Setup Options

Automatic Setup Scripts

Windows:

batch
# Download and run setup script
curl -o setup_claude.bat https://raw.githubusercontent.com/JinsongRoh/pydoll-mcp/main/setup/setup_claude_windows.bat
setup_claude.bat

Linux/macOS:

bash
# Download and run setup script
curl -o setup_claude.sh https://raw.githubusercontent.com/JinsongRoh/pydoll-mcp/main/setup/setup_claude_unix.sh
chmod +x setup_claude.sh
./setup_claude.sh

Manual Configuration

If you prefer to configure manually, add this to your Claude Desktop config:

Config File Locations:

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

Configuration:

json
{
  "mcpServers": {
    "pydoll": {
      "command": "python",
      "args": ["-m", "pydoll_mcp.server"],
      "env": {
        "PYDOLL_LOG_LEVEL": "INFO"
      }
    }
  }
}

Generate Config File

bash
# Generate configuration file
python -m pydoll_mcp.cli generate-config

# Generate and auto-setup
python -m pydoll_mcp.cli generate-config --auto-setup

# Generate in different formats
python -m pydoll_mcp.cli generate-config --format yaml
python -m pydoll_mcp.cli generate-config --format env

🚀 Getting Started

1. Quick Start Guide

bash
# Interactive setup guide
python -m pydoll_mcp.cli quick-start

2. Test Your Installation

bash
# Test installation (NEW in v1.1.3: Consistent tool counting!)
python -m pydoll_mcp.cli test-installation --verbose

# Test browser automation
python -m pydoll_mcp.cli test-browser --browser chrome --headless

# Check status (NEW in v1.1.3: Accurate version reporting!)
python -m pydoll_mcp.cli status --logs --stats

3. Platform-Specific Commands (NEW in v1.1.3!)

Windows Commands:

batch
# Check PyDoll version (Windows)
python -c "import pydoll_mcp; print(f'PyDoll MCP version: {pydoll_mcp.__version__}')"

# List installed packages (Windows)
pip list | findstr pydoll

# Check tool count (Windows)
python -m pydoll_mcp.cli status

Linux/macOS Commands:

bash
# Check PyDoll version (Linux/macOS)
python -c "import pydoll_mcp; print(f'PyDoll MCP version: {pydoll_mcp.__version__}')"

# List installed packages (Linux/macOS)
pip list | grep pydoll

# Check tool count (Linux/macOS)
python -m pydoll_mcp.cli status

4. Basic Usage Examples

Basic Website Navigation:

"Start a browser and go to https://example.com"
"Take a screenshot of the current page"
"Find the search box and search for 'browser automation'"

Advanced Form Automation:

"Fill the login form with username 'test@example.com' and password 'secure123'"
"Upload the file 'document.pdf' to the file input"
"Submit the form and wait for the success message"

Protection Bypass:

"Enable Cloudflare bypass and navigate to the protected site"
"Automatically solve any captcha challenges that appear"
"Extract the protected content after bypassing security"

Data Extraction & Monitoring:

"Monitor all network requests while browsing this e-commerce site"
"Extract product information from all visible items"
"Capture API responses containing pricing data"

🔐 Security & Development

🚨 Repository Maintainers - Important Security Notice

If you're contributing to this repository or setting up automated releases, please read our Security Setup Guide to properly configure GitHub Secrets for:

  • 🔐 PyPI API Tokens: Secure package publishing
  • 🔐 Smithery.ai API Keys: Automated registry updates
  • 🔐 GitHub Actions Security: Proper workflow permissions

⚠️ Never commit API keys or tokens to the repository!

🛡️ For Users

PyDoll MCP Server follows security best practices:

  • ✅ No telemetry or data collection
  • ✅ Local operation only
  • ✅ Secure browser automation
  • ✅ Memory cleanup and process isolation

🔒 Browser Security

  • Sandboxed Execution: Each browser runs in isolation
  • No Data Persistence: Clears cookies and cache by default
  • Stealth Mode: Advanced anti-detection without compromising security
  • Safe Automation: Human-like interactions prevent detection

🛠️ Complete Tool Arsenal (79 Tools)

  • start_browser: Launch Chrome/Edge with advanced configuration
  • stop_browser: Gracefully terminate browser with cleanup
  • new_tab: Create isolated tabs with custom settings
  • close_tab: Close specific tabs and free resources
  • list_browsers: Show all browser instances and status
  • list_tabs: Display detailed tab information
  • set_active_tab: Switch between tabs seamlessly
  • get_browser_status: Comprehensive health reporting
  • navigate_to: Smart URL navigation with load detection
  • refresh_page: Intelligent page refresh with cache control
  • go_back/go_forward: Browser history navigation
  • wait_for_page_load: Advanced page readiness detection
  • get_current_url: Current page URL with validation
  • get_page_source: Complete HTML source extraction
  • get_page_title: Page title and metadata retrieval
  • wait_for_network_idle: Network activity monitoring
  • set_viewport_size: Responsive design testing
  • get_page_info: Comprehensive page analysis
  • fetch_domain_commands: Chrome DevTools Protocol command discovery (NEW!)
  • find_element: Revolutionary natural attribute finding
  • find_elements: Bulk element discovery with filtering
  • click_element: Human-like clicking with timing
  • type_text: Realistic text input simulation
  • press_key: Advanced keyboard input handling
  • get_element_text: Intelligent text extraction
  • get_element_attribute: Attribute value retrieval
  • wait_for_element: Smart element waiting conditions
  • scroll_to_element: Smooth scrolling with viewport management
  • hover_element: Natural mouse hover simulation
  • select_option: Dropdown and select handling
  • check_element_visibility: Comprehensive visibility testing
  • drag_and_drop: Advanced drag-drop operations
  • double_click: Double-click interaction simulation
  • right_click: Context menu interactions
  • get_parent_element: Parent element retrieval with attributes (NEW!)
  • take_screenshot: Full page capture with options
  • take_element_screenshot: Precise element capture
  • generate_pdf: Professional PDF generation
  • save_page_content: Complete page archival
  • capture_video: Screen recording capabilities
  • extract_images: Image extraction and processing
  • execute_script: Full JavaScript execution environment
  • execute_script_on_element: Element-context scripting
  • evaluate_expression: Quick expression evaluation
  • inject_script: External library injection
  • get_console_logs: Browser console monitoring
  • handle_dialogs: Alert/confirm/prompt handling
  • manipulate_cookies: Complete cookie management
  • local_storage_operations: Browser storage control
  • bypass_cloudflare: Automatic Turnstile solving
  • bypass_recaptcha: reCAPTCHA v3 intelligent bypass
  • enable_stealth_mode: Advanced anti-detection
  • simulate_human_behavior: Realistic user patterns
  • randomize_fingerprint: Browser fingerprint rotation
  • handle_bot_challenges: Generic challenge solving
  • evade_detection: Comprehensive evasion techniques
  • monitor_protection_status: Real-time security analysis
  • proxy_rotation: Dynamic IP address changing
  • user_agent_rotation: User agent randomization
  • header_spoofing: Request header manipulation
  • timing_randomization: Human-like timing patterns
  • network_monitoring: Comprehensive traffic analysis
  • intercept_requests: Real-time request modification
  • extract_api_responses: Automatic API capture
  • modify_headers: Dynamic header injection
  • block_resources: Resource blocking for performance
  • simulate_network_conditions: Throttling and latency
  • get_network_logs: Detailed activity reporting
  • monitor_websockets: WebSocket connection tracking
  • analyze_performance: Page performance metrics
  • cache_management: Browser cache control
  • upload_file: Advanced file upload handling
  • download_file: Controlled downloading with progress
  • extract_page_data: Structured data extraction
  • export_data: Multi-format data export
  • import_configuration: Settings import/export
  • manage_sessions: Session state management
  • backup_browser_state: Complete state backup
  • restore_browser_state: State restoration

🐛 Troubleshooting

Common Issues

Installation Problems

bash
# Check Python version (requires 3.8+)
python --version

# Upgrade pip
python -m pip install --upgrade pip

# Install with verbose output
pip install pydoll-mcp -v

Version Detection Issues (FIXED in v1.1.3!)

bash
# Check if version is properly detected
python -c "import pydoll_mcp; print(f'Version: {pydoll_mcp.__version__}')"

# If you still see 'vunknown', try reinstalling:
pip uninstall pydoll-mcp
pip install pydoll-mcp

Tool Count Inconsistency (FIXED in v1.1.3!)

bash
# All commands now report consistent tool count (77 tools)
python -m pydoll_mcp.cli status
python -m pydoll_mcp.cli test-installation

Windows Command Compatibility (IMPROVED in v1.1.3!)

batch
# Use Windows-compatible commands
pip list | findstr pydoll

# Instead of Linux/macOS command:
# pip list | grep pydoll

Korean Windows Encoding Issues (FIXED in v1.1.2!)

bash
# For Korean Windows systems with cp949 encoding
set PYTHONIOENCODING=utf-8
python -m pydoll_mcp.server

# Alternative: Use command prompt with UTF-8
chcp 65001
python -m pydoll_mcp.server

# Permanent solution: Add to Claude Desktop config
{
  "mcpServers": {
    "pydoll": {
      "command": "python",
      "args": ["-m", "pydoll_mcp.server"],
      "env": {
        "PYTHONIOENCODING": "utf-8",
        "PYDOLL_LOG_LEVEL": "INFO"
      }
    }
  }
}

Module Execution Issues (FIXED in v1.1.2!)

bash
# Now you can properly use:
python -m pydoll_mcp

# Thanks to the added __main__.py file

Browser Issues

bash
# Verify browser installation
python -c "from pydoll.browser import Chrome; print('Browser check passed')"

# Test basic functionality
python -m pydoll_mcp.cli test-browser

# Check browser permissions (Linux/macOS)
ls -la /usr/bin/google-chrome

Connection Issues

bash
# Test MCP server connection
python -m pydoll_mcp.server --test

# Check logs
python -m pydoll_mcp.cli status --logs

# Verify Claude Desktop config
python -m pydoll_mcp.cli generate-config

Debug Mode

bash
# Enable debug logging
export PYDOLL_DEBUG=1
export PYDOLL_LOG_LEVEL=DEBUG

# Run with detailed output
python -m pydoll_mcp.server --debug

🆕 What's New in v1.2.0

Enhanced PyDoll 2.3.1 Integration

  • 🔧 New Chrome DevTools Commands: Access all Chrome DevTools Protocol domain commands
  • 📍 Parent Element Navigation: Get parent elements with detailed attributes
  • ⏱️ Configurable Browser Timeout: Customize startup timeout for better reliability
  • 🌐 OS-Specific Setup: Improved cross-platform Claude Desktop configuration

New CLI Management Tools

bash
# Enhanced setup with OS detection
python -m pydoll_mcp.cli auto-setup --verbose

# Configuration management
python -m pydoll_mcp.cli setup-info     # Show current config status
python -m pydoll_mcp.cli restore-config # Restore from backup
python -m pydoll_mcp.cli remove-config  # Clean removal

Tool Count: 79 Tools → More Powerful Than Ever!

  • New Navigation Tools: fetch_domain_commands for Chrome DevTools access
  • New Element Tools: get_parent_element for improved DOM navigation
  • Enhanced Browser Management: Configurable startup timeout options

📊 Performance Metrics

PyDoll MCP Server provides significant advantages over traditional automation:

MetricPyDoll MCPTraditional Tools
Setup Time< 30 seconds5-15 minutes
Captcha Success Rate95%+20-30%
Detection Evasion98%+60-70%
Memory Usage50% lessBaseline
Speed3x fasterBaseline
Reliability99%+80-85%

🤝 Contributing

We welcome contributions! See our Contributing Guide for details.

Development Setup

bash
# Clone repository
git clone https://github.com/JinsongRoh/pydoll-mcp.git
cd pydoll-mcp

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Linux/macOS
venv\\Scripts\\activate   # Windows

# Install development dependencies
pip install -e ".[dev]"

# Run tests
python -m pytest tests/ -v

# Setup pre-commit hooks
pre-commit install

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • PyDoll Team: For the revolutionary automation library
  • Anthropic: For Claude and the MCP protocol
  • Open Source Community: For continuous improvements and feedback

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "jinsongroh-pydoll-mcp": {
      "command": "uvx",
      "args": [
        "pydoll-mcp"
      ]
    }
  }
}

Dùng MCP PyDoll MCP Server với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối PyDoll MCP Server, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. Bạn có thể chạy MCP ngay trên thiết bị của mình hoặc kết nối qua URL của máy chủ MCP từ xa.

Cách 1: Dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Thiết lập trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Thiết lập trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh thiết lập trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Để tiến trình tiếp tục chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Để tiến trình tiếp tục chạy trong cửa sổ Terminal khi bạn dùng các công cụ MCP.
3

Thêm PyDoll MCP Server làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của PyDoll MCP Server.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "jinsongroh-pydoll-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pydoll-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của PyDoll MCP Server, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của PyDoll MCP Server.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng PyDoll MCP Server giúp tôi làm việc này không?
PyDoll MCP Server
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng PyDoll MCP Server.

Cách 2: Thêm URL máy chủ MCP

Dùng cách này khi PyDoll MCP Server đã chạy trên máy chủ từ xa hoặc nhóm của bạn muốn có một trình kết nối dùng chung cho nhiều người dùng.

1

Mở mục Trình kết nối MCP

Trong TypingMind, vào Plugin, mở mục Trình kết nối MCP, rồi chọn Thêm URL.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Vào mục Plugin.
  3. Mở mục Trình kết nối MCP.
  4. Nhấp vào Thêm URL.
Biểu mẫu Thêm URL máy chủ MCP tùy chỉnh của TypingMind
2

Dán URL máy chủ

Nhập URL máy chủ của bạn vào trường URL máy chủ. Thêm tên kết nối, mô tả, biểu tượng, header HTTP tùy chỉnh hoặc cài đặt ứng dụng khách OAuth nếu máy chủ yêu cầu.

  1. Dán URL máy chủ của bạn vào trường URL máy chủ.
  2. Nhập tên kết nối cho PyDoll MCP Server.
  3. Thêm mô tả và biểu tượng nếu bạn muốn dễ nhận biết kết nối hơn.
  4. Thêm header HTTP tùy chỉnh hoặc thông tin ứng dụng khách OAuth nếu máy chủ yêu cầu xác thực.
3

Tạo kết nối

Nhấp vào Tạo kết nối, sau đó quay lại danh sách Plugin và xác nhận kết nối MCP mới đang hoạt động.

  1. Nhấp vào Tạo kết nối.
  2. Quay lại danh sách trình kết nối MCP.
  3. Xác nhận kết nối PyDoll MCP Server hiển thị trạng thái đang hoạt động.
  4. Làm mới danh sách plugin nếu kết nối chưa xuất hiện ngay.
4

Đổi mô hình mà không cần kết nối lại

Bắt đầu cuộc trò chuyện với mô hình bạn thích, bật các công cụ của PyDoll MCP Server trong mục Plugin và chuyển sang mô hình khác khi cần. Kết nối MCP vẫn sẵn dùng trong không gian làm việc TypingMind.

  1. Bắt đầu cuộc trò chuyện mới trong TypingMind.
  2. Chọn mô hình AI bạn muốn dùng.
  3. Bật các công cụ của PyDoll MCP Server trong mục Plugin.
  4. Yêu cầu mô hình dùng công cụ khi cần.
  5. Chuyển sang mô hình AI khác và tiếp tục dùng kết nối MCP hiện có.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng PyDoll MCP Server giúp tôi làm việc này không?
PyDoll MCP Server
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng PyDoll MCP Server.

Câu hỏi thường gặp

Máy chủ MCP PyDoll MCP Server dùng để làm gì?

PyDoll MCP Server là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP PyDoll MCP Server với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng PyDoll MCP Server với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP PyDoll MCP Server với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối PyDoll MCP Server, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP PyDoll MCP Server với TypingMind?

Bạn có thể kết nối PyDoll MCP Server trong TypingMind bằng trình kết nối MCP cục bộ hoặc bằng cách thêm URL máy chủ MCP từ xa. Dùng trình kết nối cục bộ khi máy chủ cần truy cập tệp, ứng dụng hoặc tài nguyên riêng trên thiết bị của bạn; dùng URL máy chủ khi máy chủ MCP được lưu trữ từ xa.

MCP PyDoll MCP Server cung cấp những công cụ nào trong TypingMind?

PyDoll MCP Server cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP PyDoll MCP Server không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu PyDoll MCP Server yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇