Content
# DrissionPage MCP Server




A browser automation MCP server based on DrissionPage and FastMCP, providing rich browser operation APIs for AI calls.
## Project Introduction

DrissionPage MCP is a browser automation MCP server based on DrissionPage and FastMCP, which provides a series of powerful browser operation APIs, allowing you to easily implement web automation operations through AI.
### Main Features
- Support browser opening, closing, and connection management
- Provide rich page element operation methods
- Support JavaScript code execution
- Support CDP protocol operation
- Provide convenient file download function
- Support keyboard key simulation
- Support page screenshot function
- Add web background listening data packet function
- Add 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
- Clone this repository to your local machine, and the core file is main.py:
- First, perform [MCP installation environment preparation work](./MCPInstallationTutorial.md)
### Installation to Cursor Editor


### Installation to VSCode Editor



Please paste the following configuration code into the `mcpServers` setting of your editor (please fill in the absolute path of the `main.py` file on your own computer):
```json
{
"mcpServers": {
"DrissionPageMCP": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "D:\\test10\\DrissionPageMCP", "run", "main.py"]
}
}
}
```
Add mcp configuration and fill in the following configuration:
``` json
"DrissionPageMCP": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "D:\\test10\\DrissionPageMCP", "run", "main.py"]
}
```
Notes:
- Please modify the path in `args` according to the actual path
- In Windows, the backslash in the path needs to be escaped (using `\\`)
- Ensure that the `uv` command is available in the system PATH
- [MCP Installation Reference Tutorial](https://docs.trae.ai/ide/model-context-protocol)
## Debugging Commands
Debugging
```
npx -y @modelcontextprotocol/inspector uv run D:\\test10\\DrissionPageMCP\\main.py
```
Or
```
mcp dev D:\\test10\\DrissionPageMCP\\main.py
```
## Update Log
### v0.1.3
Add automatic upload and download file function
### v0.1.2
Add web background listening data packet function
### v0.1.0
- Initial version release
- Implement basic browser control function
- Provide element operation API
Connection Info
You Might Also Like
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
markitdown
MarkItDown-MCP is a lightweight server for converting URIs to Markdown.
servers
Model Context Protocol Servers
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.