MCP server for RootBrowse browser automation
Project description
RootBrowse MCP
MCP Server for RootBrowse browser automation framework. 为 AI Agent 提供结构化的浏览器操控能力。
安装
pip install rootbrowse-mcp
Claude Code 配置
在 settings.json 中添加:
{
"mcpServers": {
"rootbrowse": {
"command": "rootbrowse-mcp"
}
}
}
或指定路径:
{
"mcpServers": {
"rootbrowse": {
"command": "D:\\path\\to\\.venv\\Scripts\\python.exe",
"args": ["-m", "rootbrowse_mcp.server"]
}
}
}
Tools
页面扫描
get_page_regions()— 获取页面所有语义区域get_region_summary(region_id)— 获取区域统计摘要match_element(region_id, tag, role, text_contains, query, limit)— 按条件筛选元素get_element(ref)— 获取元素完整信息
元素操作
click_element(ref)— 点击元素input_text(ref, text, clear)— 向输入框输入文字send_enter()— 发送回车键
浏览器
init_browser(headless)— 初始化浏览器(必选,headless 默认 True)get_page(url, timeout)— 打开 URLtake_screenshot(path)— 页面截图close_browser()— 关闭浏览器
注意: 使用其他工具前必须先调用 init_browser() 初始化浏览器。
标签页
new_tab(url)— 打开新标签页close_tab()— 关闭当前标签页switch_tab(index)— 切换标签页get_tabs_count()— 获取标签页数量
状态
save_state(path)— 保存浏览器状态load_state(path)— 恢复浏览器状态
依赖
- Python >= 3.10
- rootbrowse >= 0.2.0
- mcp >= 1.0.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rootbrowse_mcp-0.1.3.tar.gz
(4.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rootbrowse_mcp-0.1.3.tar.gz.
File metadata
- Download URL: rootbrowse_mcp-0.1.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7653cf8bfe9771d171a4abf5d44796a01643498054568ae72610c6153d122f75
|
|
| MD5 |
a1033ea28b72c1cf046e4a19ecd0e53f
|
|
| BLAKE2b-256 |
2c377cdf32c4e9b182a4f8cbe17ba6f1df6e07b3facb777497d60368dcef2c52
|
File details
Details for the file rootbrowse_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: rootbrowse_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2abc406e2e13394db771d5f40e8c7e26026a1ff33ec78f7277ba373d076429a0
|
|
| MD5 |
39d4b9783113c4e239664afca34a2488
|
|
| BLAKE2b-256 |
4c6c10f1f0c728e84ca0f80424612bb4922cd0fdf6de155d4fc555005e40e8e7
|