DrissionPageMCP
Provides browser automation via DrissionPage and FastMCP, enabling AI to control Chrome browsers for tasks like page navigation, element interaction, JavaScript execution, and network monitoring.
README
DrissionPage MCP Server -- 骚神出品
基于DrissionPage和FastMCP的浏览器自动化MCP服务器,提供丰富的浏览器操作API供AI调用。
项目简介

DrissionPage MCP 是一个基于 DrissionPage 和 FastMCP 的浏览器自动化MCP server服务器,它提供了一系列强大的浏览器操作 API,让您能够轻松通过AI实现网页自动化操作。
主要特性
- 支持浏览器的打开、关闭和连接管理
- 提供丰富的页面元素操作方法
- 支持 JavaScript 代码执行
- 支持 CDP 协议操作
- 提供便捷的文件下载功能
- 支持键盘按键模拟
- 支持页面截图功能
- 增加 网页后台监听数据包的功能
- 增加自动上传下载文件功能
Python要求
- Python >= 3.9
- pip(最新版本)
- uv (最新版本)
浏览器要求
- Chrome 浏览器(推荐 90 及以上版本)
必需的Python包
- drissionpage >= 4.1.0.18
- fastmcp >= 2.4.0
- uv
安装说明
- 把本仓库git clone到本地,核心文件是main.py:
- 首先要进行💖MCP安装环境准备工作
安装到Cursor编辑器

安装到vscode编辑器

请将以下配置代码粘贴到编辑器的mcpServers设置中(请填写你自己电脑上 main.py 文件的绝对路径):
{
"mcpServers": {
"DrissionPageMCP": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "D:\\test10\\DrissionPageMCP", "run", "main.py"]
}
}
}
新增mcp配置 ,填写下面的配置:
"DrissionPageMCP": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "D:\\test10\\DrissionPageMCP", "run", "main.py"]
}
注意事项:
- 请根据实际路径修改
args中的路径 - Windows中路径中的反斜杠需要转义(使用
\\) - 确保
uv命令在系统PATH中可用 - 《MCP安装参考教程》
调试命令
调试
npx -y @modelcontextprotocol/inspector uv run D:\\test10\\DrissionPageMCP\\main.py
或者
mcp dev D:\\test10\\DrissionPageMCP\\main.py
更新日志
v0.1.3
增加 自动上传下载文件功能
v0.1.2
增加 网页后台监听数据包的功能
v0.1.0
- 初始版本发布
- 实现基本的浏览器控制功能
- 提供元素操作 API
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.