Content
# DrissionPage MCP Server --




DrissionPage and FastMCP based browser automation MCP server, providing rich browser operation APIs for AI calls.
## Project Introduction
<img src="img/DrissionPageMCP-logo.png">
DrissionPage MCP is a DrissionPage and FastMCP based browser automation MCP server, it provides a series of powerful browser operation APIs, allowing you to easily realize web automation operations through AI.
### Main Features
- Supports browser opening, closing and connection management
- Provides rich page element manipulation methods
- Supports JavaScript code execution
- Supports CDP protocol operations
- Provides convenient file download function
- Supports keyboard key simulation
- Supports page screenshot function
- Added web background listening data packet function
- Added automatic upload and download file function
#### Python Requirements
- Python >= 3.9
- pip (latest version)
- uv (latest version)
#### Browser Requirements
- Chrome browser (recommended version 90 and above)
#### Required Python Packages
- drissionpage >= 4.1.0.18
- fastmcp >= 2.4.0
- uv
## Installation Instructions
- Git clone this repository to your local machine, the core file is main.py:
- First, prepare the [💖MCP installation environment](./MCP安装教程.md)
### Install to Cursor Editor
<img src="img/install_to_Cursor1.png">
<img src="img/install_to_cursor2.png">
### Install to vscode Editor
<img src="img/install_to_vscode0.png">
<img src="img/install_to_vscode1.png">
<img src="img/install_to_vscode2.png">
Paste the following configuration code into the editor's `mcpServers` settings (`please fill in the absolute path of the main.py file on your computer`):
```json
{
"mcpServers": {
"DrissionPageMCP": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "D:\\test10\\DrissionPageMCP", "run", "main.py"]
}
}
}
```
Add a new mcp configuration and fill in the following configuration:
``` json
"DrissionPageMCP": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "D:\\test10\\DrissionPageMCP", "run", "main.py"]
}
```
Precautions:
- Please modify the path in `args` according to the actual path
- Backslashes in the path in Windows need to be escaped (using `\\`)
- Make sure the `uv` command is available in the system PATH
- [《MCP Installation Reference Tutorial》](https://docs.trae.ai/ide/model-context-protocol)
## Debugging Commands
Debug
```
npx -y @modelcontextprotocol/inspector uv run D:\\test10\\DrissionPageMCP\\main.py
```
Or
```
mcp dev D:\\test10\\DrissionPageMCP\\main.py
```
## Changelog
### v0.1.3
Added automatic upload and download file function
### v0.1.2
Added web background listening data packet function
### v0.1.0
- Initial version released
- Implemented basic browser control functions
- Provided element operation API
Connection Info
You Might Also Like
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
servers
Model Context Protocol Servers
Time
A Model Context Protocol server for time and timezone conversions.
Filesystem
Node.js MCP Server for filesystem operations with dynamic access control.
Sequential Thinking
A structured MCP server for dynamic problem-solving and reflective thinking.
git
A Model Context Protocol server for Git automation and interaction.