About Drissionpagemcp
Drissionpagemcp is an MCP server published by wxhzhwxhzh in the Developer Tools category: 基于DrissionPage和FastMCP的浏览器自动化MCP服务器,提供丰富的浏览器操作API供AI调用. Conduid read 35 tools from its source: arrow_down, arrow_up, connect_or_open_browser, convert_elemnet_to_drissionpage, download_file, element_click and 29 more. No package is published for it, so it installs from a source checkout.
The repository has 242 stars and 42 forks, and its last commit was on 12 Feb 2026. Conduid has no tagged release on record for it. It passes 3 of the 6 static checks Conduid ran on the repository; it does not pass License declared, Tests present and Scoped permissions. Its topics include devtools and drissionpage.
Install
git clone https://github.com/wxhzhwxhzh/DrissionPageMCPTools (35)
arrow_down向当前标签页发送按键 arrow_downarrow_up向当前标签页发送按键 arrow_upconnect_or_open_browser用DrissionPage 打开或者接管已打开的浏览器,参数通过字典传递。如果url不为空则打开指定网址。| Parameter | Type | Description |
|---|---|---|
| params * | object |
convert_elemnet_to_drissionpage把元素转换为drissionpage格式的字符串| Parameter | Type | Description |
|---|---|---|
| element * | string |
download_file下载文件到指定路径| Parameter | Type | Description |
|---|---|---|
| path * | string | 文件保存的路径 |
| rename * | string | 重命名文件名. |
| url * | string | 文件的URL地址 |
element_click通过xpath点击标签页中某个元素,最好先判断元素是否存在| Parameter | Type | Description |
|---|---|---|
| element_xpath * | string |
element_input通过xpath给标签页中某个元素输入内容,最好先判断元素是否存在| Parameter | Type | Description |
|---|---|---|
| element_xpath * | string | |
| input_value * | string |
getInputElementsInfo获取当前标签页的所有可进行输入操作的元素,对元素进行输入操作前优先使用这个方法get_a_elements_info获取当前标签页中所有a元素标签的信息,定位元素时优先使用get_all_clickable_elements获取当前标签页的所有可点击元素get_all_input_elements获取当前标签页的所有可输入元素get_body_text获取当前标签页的body的文本内容get_button_elements_info获取当前标签页中所有button元素标签的信息,定位元素时优先使用get_cdp_event_data获取CDP事件回调函数收集到的数据get_current_tab_element_html获取当前标签页的某个元素的html| Parameter | Type | Description |
|---|---|---|
| element_xpath * | string |
get_current_tab_info获取当前标签页的信息,包括url, title, id| Parameter | Type | Description |
|---|---|---|
| debug_port * | integer |
get_current_tab_screenshot获取当前标签页的网页截图get_dom_tree获取当前标签页的DOM树结构信息| Parameter | Type | Description |
|---|---|---|
| depth * | integer | 指定获取DOM树的深度 |
get_elements_info_by_keyword根据关键词获取当前标签页中包含该关键词的文本节点的所有元素列表 定位元素时优先使用| Parameter | Type | Description |
|---|---|---|
| keyword * | string | 要搜索的关键词 |
get_elements_info_by_tagname获取当前标签页中所有指定tagname的元素信息,定位元素时优先使用 ,参数是tagname| Parameter | Type | Description |
|---|---|---|
| tagname * | string |
get_input_elements_info获取当前标签页中所有input元素标签的信息,定位元素时优先使用get_response_received_listener_data获取监听到的数据,返回数据列表get_tab_list获取当前浏览器的所有标签页的信息,包括url, title, id| Parameter | Type | Description |
|---|---|---|
| debug_port * | integer |
is_element_exist通过xpath或者文本节点是否包含关键词判断标签页中某个元素是否存在| Parameter | Type | Description |
|---|---|---|
| content_include_keyword * | string | |
| element_xpath * | string |
new_tab用DrissionPage 控制的浏览器,打开新标签页并 打开一个网址| Parameter | Type | Description |
|---|---|---|
| url | string |
on_cdp_event设置监听CDP事件| Parameter | Type | Description |
|---|---|---|
| event_name * | string |
page_down向当前标签页发送按键 page_downpage_up向当前标签页发送按键 page_upprocess_data从指定的资源 URI 读取数据,报告处理进度,并请求客户端的 LLM 对数据进行摘要。response_received_listener开启监听网页接收的数据包,| Parameter | Type | Description |
|---|---|---|
| mimeType * | string | |
| url_include | string |
response_received_listener_stop关闭监听网页发送的数据包run_cdp在当前标签页中运行谷歌CDP协议代码并获取结果| Parameter | Type | Description |
|---|---|---|
| cmd * | any | CDP协议命令 |
run_js在当前标签页中运行JavaScript代码并返回执行结果| Parameter | Type | Description |
|---|---|---|
| js_code * | string | 要执行的JavaScript代码 |
test生成一个请求对文本进行摘要的用户消息。| Parameter | Type | Description |
|---|---|---|
| text * | string |
wait网页等待a秒| Parameter | Type | Description |
|---|---|---|
| a * | integer |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 178 words.
- !License declaredNo license file. Legally you have no right to use it in a product.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 6 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiomain-1.py:707
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 6 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 178 words, fetched a month ago. The original in the repository is authoritative.
Read full README