RPA-Python MCP Server
Controls Google Chrome browser for web automation, including navigation, element interaction, and visual automation.
Uploads files to Pastebin using the rpa_bin tool.
Sends messages to Telegram via the rpa_telegram tool.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RPA-Python MCP ServerOpen google.com, search for 'MCP', and return the first result title."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RPA-Python MCP Server
基于 Tebel.org RPA-Python 封装的 MCP (Model Context Protocol) 服务,让 AI 模型(Claude、GPT 等)能够直接操控浏览器,实现网页自动化。
项目结构
rpa_mcp_server.py # MCP Server 主入口,注册 54 个 RPA 工具
tagui.py # RPA-Python 核心引擎(基于 TagUI)
test_mcp.py # MCP Server 连通性测试(列出所有工具)
test_workflow_bing.py # 端到端工作流测试(Bing 搜索自动化)
requirements.txt # Python 依赖Related MCP server: Cloudflare Playwright MCP
快速开始
1. 安装依赖
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt2. 安装 TagUI(首次使用)
.venv\Scripts\python.exe -c "import tagui as r; r.setup()"TagUI 约 200MB,会自动安装到
%APPDATA%\tagui\。
3. 验证 MCP Server
.venv\Scripts\python.exe test_mcp.py正常输出应显示 54 个注册工具。
4. 运行端到端测试
.venv\Scripts\python.exe test_workflow_bing.py会自动打开 Chrome → Bing 首页 → 搜索框输入 "MCP" → 点击搜索,验证整个工作流。
配置到 AI 客户端
Claude Desktop
在 claude_desktop_config.json 中添加:
{
"mcpServers": {
"rpa-python": {
"command": "D:\\Javaproject\\RPA-Python\\.venv\\Scripts\\python.exe",
"args": ["D:\\Javaproject\\RPA-Python\\rpa_mcp_server.py"]
}
}
}Cursor / VS Code
在 .cursor/mcp.json 或 VS Code MCP 配置中添加:
{
"mcpServers": {
"rpa-python": {
"command": ".venv\\Scripts\\python.exe",
"args": ["rpa_mcp_server.py"],
"cwd": "D:\\Javaproject\\RPA-Python"
}
}
}MCP 工具列表
共 54 个工具,按功能分类:
生命周期管理
工具 | 说明 |
| 启动 RPA 会话(支持 Chrome / Edge) |
| 关闭 RPA 会话 |
| 下载安装 TagUI |
| 更新 RPA-Python 和 TagUI |
| 打包 TagUI 用于离线部署 |
网页导航
工具 | 说明 |
| 打开网页 / 获取当前 URL |
| 切换到 iframe |
| 切换到弹窗 |
| 聚焦应用程序窗口 |
元素交互
工具 | 说明 |
| 点击元素 |
| 右键点击 |
| 双击 |
| 鼠标悬停 |
| 输入文本(支持 |
| 选择下拉框选项 |
元素读取
工具 | 说明 |
| 读取元素文本 |
| 检查元素是否存在(等待超时) |
| 检查元素是否立即存在 |
| 统计匹配元素数量 |
| 获取页面全部文本 |
| 获取页面标题 |
视觉自动化
工具 | 说明 |
| 截图保存到文件 |
| 截图返回 base64(供 AI 视觉分析) |
| 模拟键盘输入 |
| 模拟鼠标按下/释放 |
| 获取鼠标坐标 |
| 获取鼠标 X/Y 坐标 |
| 读写剪贴板 |
| 执行 SikuliX 视觉命令 |
DOM / JavaScript
工具 | 说明 |
| 执行 JavaScript 并返回结果 |
文件操作
工具 | 说明 |
| 上传文件 |
| 下载文件 |
| 读取文件内容 |
| 写入文件(覆盖) |
| 追加写入文件 |
| 设置下载目录 |
| 解压 zip 文件 |
表格提取
工具 | 说明 |
| 提取 HTML 表格为 CSV |
工具函数
工具 | 说明 |
| 等待指定秒数 |
| 设置元素等待超时 |
| 获取会话已运行时间 |
| 打印消息 |
| 弹出输入框获取用户输入 |
| 从字符串中提取子串 |
| 删除字符串中指定字符 |
| 条件判断打印 |
| 开启/关闭调试模式 |
| 开启/关闭异常模式 |
系统 & 通讯
工具 | 说明 |
| 执行系统命令 |
| 发送 Telegram 消息 |
| 上传文件到 pastebin |
| 发送原始 TagUI 指令 |
| 设置 TagUI 安装路径 |
典型工作流
1. rpa_init(chrome_browser=True) → 启动浏览器
2. rpa_url("https://example.com") → 打开网页
3. rpa_type("#search-box", "关键词") → 输入文本
4. rpa_click("#submit-btn") → 点击按钮
5. rpa_read("#result") → 读取结果
6. rpa_close() → 关闭浏览器浏览器支持
参数 | 浏览器 |
| Google Chrome(默认) |
| Microsoft Edge |
依赖
许可证
基于 Tebel.org RPA-Python (Apache License 2.0) 构建。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RainbowAC/PRA-Python-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server