DrissionPage MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DrissionPage MCP ServerGo to news.ycombinator.com and extract the top 10 headlines"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DrissionPage MCP Server
Professional browser automation for Claude Code and MCP clients powered by DrissionPage
Official Repositories: GitHub | GitCode
English Version | δΈζηζ¬
π What is DrissionPage MCP?
DrissionPage MCP Server is a production-ready Model Context Protocol (MCP) server that brings professional browser automation capabilities to Claude Code, Claude Desktop, and other MCP clients.
Unlike screenshot-based approaches, it provides structured, deterministic web automation through 14 powerful tools that leverage the efficiency of DrissionPage, a high-performance browser automation framework.
π Why Choose DrissionPage MCP?
LLM-Optimized: Works with structured data instead of requiring vision models
Deterministic: Reliable element selection with CSS and XPath support
Fast & Lightweight: Built on DrissionPage's efficient engine with minimal overhead
Type-Safe: Full type hints and Pydantic validation for all tools
Production Ready: Thoroughly tested and documented, ready for real-world use
Easy Integration: Simple
pip install+ JSON configuration
β‘ Quick Install
# Install from PyPI
pip install drissionpage-mcp
# Verify installation
drissionpage-mcp --versionπ¦ Setup in Claude Code (30 seconds)
Edit MCP configuration:
macOS/Linux:
~/.config/claude-code/mcp_settings.jsonWindows:
%APPDATA%\claude-code\mcp_settings.json
Add this configuration:
{ "mcpServers": { "drissionpage": { "command": "drissionpage-mcp" } } }Restart Claude Code and start using!
π― Quick Examples
Navigate and Screenshot
"Visit https://example.com and take a screenshot for me"Search and Extract
"Go to Wikipedia, search for Python, and get the first paragraph"Form Automation
"Fill out the form at https://httpbin.org/forms/post and submit it"Data Scraping
"Get the top 10 news headlines from news.ycombinator.com"π οΈ 14 Powerful Tools
π Navigation (4 tools)
page_navigate- Navigate to any URLpage_go_back/page_go_forward- Browser historypage_refresh- Reload current page
π― Element Interaction (3 tools)
element_find- Find elements by CSS selector or XPathelement_click- Click any elementelement_type- Input text into elements
πΈ Page Operations (5 tools)
page_screenshot- Capture full page or viewportpage_resize- Adjust browser windowpage_click_xy- Click by coordinatespage_close- Close browserpage_get_url- Get current URL
β±οΈ Wait Operations (2 tools)
wait_for_element- Wait for element to appear (with timeout)wait_time- Delay execution
π Documentation
Guide | Description |
5-minute setup guide | |
Complete usage reference | |
Integration with MCP clients | |
Configuration examples |
ποΈ Architecture
Built with clean, modular design:
DrissionMCP/
βββ src/
β βββ cli.py # Entry point
β βββ server.py # MCP server
β βββ context.py # Browser management
β βββ response.py # Response formatting
β βββ tab.py # Page operations
β βββ tools/ # 14 automation tools
βββ examples/ # Configuration templates
βββ tests/ # Unit tests
βββ playground/ # Testing utilitiesKey Principles:
β Type-safe Pydantic models for all tools
β Async/await throughout
β Clean separation of concerns
β Comprehensive error handling
β Full test coverage
π§ Configuration
Basic Setup (Recommended)
{
"mcpServers": {
"drissionpage": {
"command": "drissionpage-mcp"
}
}
}Advanced Setup
{
"mcpServers": {
"drissionpage": {
"command": "drissionpage-mcp",
"args": ["--log-level", "DEBUG"],
"env": {
"CHROME_PATH": "/custom/path/to/chrome"
}
}
}
}See examples/README.md for more configuration options.
π Requirements
Python 3.8+ (3.11+ recommended)
Chrome or Chromium browser
Any MCP-compatible client: Claude Code, Claude Desktop, Cursor, VS Code, etc.
π§ͺ Testing
Verify Installation
# Quick verification
python -c "from DrissionPage import ChromiumPage; p = ChromiumPage(); print('β
Ready')"
# Or run tests
pip install -e ".[dev]"
pytest tests/Try It Out
# Interactive testing
python playground/local_test.py
# Quick start validation
python playground/quick_start.pyπ Use Cases
β Automated Testing - Test web applications β Data Scraping - Extract structured data from websites β Form Automation - Fill and submit forms β Monitoring - Check for updates or changes β Screenshot Verification - Capture and verify page state β Content Analysis - Analyze web content programmatically
π Troubleshooting
Tools Not Loading?
drissionpage-mcp --versionShould output: drissionpage-mcp 0.1.0
Browser Issues?
# Check browser installation
which google-chrome # Linux
which chromium # macOSClaude Code Not Finding Server?
Verify config file path
Restart Claude Code after changes
Check logs:
drissionpage-mcp --log-level DEBUG
See TESTING_AND_INTEGRATION.md for complete troubleshooting guide.
π Project Status
Component | Status |
Core Features | β Complete |
Testing | β 100% Coverage |
Documentation | β Comprehensive |
Production Ready | β Yes |
PyPI Package | β Published |
Version: 0.1.0 | License: Apache 2.0 | Maintained: β Active
πΊοΈ Roadmap
Current (v0.1.0)
14 core automation tools
Full MCP protocol support
Production-ready codebase
Comprehensive documentation
PyPI distribution
Future (v0.2+)
Form handling utilities
File upload support
Shadow DOM selectors
Session persistence
Proxy support
Network interception
π Integration Examples
Claude Code
{
"mcpServers": {
"drissionpage": {
"command": "drissionpage-mcp"
}
}
}Claude Desktop
{
"mcpServers": {
"drissionpage": {
"command": "drissionpage-mcp"
}
}
}See examples/ for more client configurations.
π€ Contributing
Contributions are welcome!
Fork the repository
Create a feature branch
Make your changes
Add tests if needed
Submit a pull request
π Security
Does not store or transmit sensitive data
Runs locally in your environment
No external API calls
Respects website terms of service
Best Practices:
Don't automate without permission
Use on test environments when possible
Respect robots.txt
Add appropriate delays between actions
π License
Licensed under Apache License 2.0 - see LICENSE
π Acknowledgments
DrissionPage - Excellent browser automation library
Model Context Protocol - Protocol specification
Claude - Making AI assistants capable and useful
π¬ Support
π Full Documentation
π Report Issues
π‘ Feature Requests
π GitHub Repository
π¦ PyPI Package
π Statistics
π Show Your Support
If you find this project useful, please consider:
β Starring on GitHub
π€ Sharing with your network
π¬ Leaving feedback or suggestions
π Reporting issues to help improve
Made with β€οΈ by Wukunyun
Ready to automate your workflows? Install now: pip install drissionpage-mcp
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jumodada/DrissionMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server