Token导航 LogoToken导航TokenDH.com
Ui Agent MCP logo
AI代理stdio官方级别未说明来源级核验

Ui Agent MCP

MCP Server

UI Agent MCP是一个为AI代理提供完整UI访问和控制能力的平台,支持屏幕捕捉、文本识别、鼠标键盘操作等多种功能。

工具数

31

提示词数

0

GitHub Stars

0

资源数

0
PythonAI代理工作流自动化

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

4shil

提供方

4shil

最后核验

2026/5/17 20:19

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python dashboard.py

详细介绍

UI代理MCP

给AI代理 完成UI访问 --查看屏幕、阅读文本、单击、键入、滚动、拖动。

🚀 一个命令安装

curl -fsSL https://raw.githubusercontent.com/4shil/ui-agent-mcp/main/quickinstall.sh | bash

或手动:

git clone https://github.com/4shil/ui-agent-mcp.git
cd ui-agent-mcp
bash install.sh

🧠 模型

型号尺寸用途
佛罗伦萨-2 (微软)~0.9GBUI理解、元素检测
GLM-OCR (Z.AI)~0.7GB文本、表格、公式提取

安装过程中两者都会自动下载。建议使用GPU(NVIDIA CUDA),但CPU可以工作。

🎮 TUI仪表板

安装后启动交互式仪表板:

cd ~/ui-agent-mcp
source .venv/bin/activate
python dashboard.py

特征:

  • 🔥 实时GPU监控(利用率条、内存、温度)
  • 💻 系统统计数据(CPU、RAM、正常运行时间)
  • 🤖 模型下载状态
  • 📊 行动分析(总计、每小时、错误、顶级行动)
  • 🖥️ 实时MCP服务器日志流
  • 📥 一键式模型下载
  • 🔍 健康检查
  • ⌨️ q =退出, r =刷新

🔌 MCP 服务器

启动MCP服务器(25个AI代理工具):

source .venv/bin/activate
python server.py

MCP配置

{
  "mcpServers": {
    "ui-agent": {
      "command": "python3",
      "args": ["server.py"],
      "cwd": "/home/USER/ui-agent-mcp"
    }
  }
}

🛠 25工具

屏幕截图

screenshot · screenshot_region · get_screen_info

视觉(Florence-2)

describe_ui · describe_ui_detailed · locate_element · locate_all · detect_all

OCR(GLM-OCR)

read_text · read_text_region · read_table · read_formula · read_form

老鼠

click · double_click · right_click · hover · scroll · drag · get_mouse_position

键盘

type_text · press_key · hotkey · type_and_enter

复合

find_and_click · type_into · wait_for_element

应用程序和安全

open_app · close_app · get_focused_window · get_safety_stats

📋 代理循环模式

1. screenshot()                    → see
2. describe_ui() / read_text()     → understand
3. locate_element()                → find
4. click() / type()                → act
5. screenshot()                    → verify

🔧 命令

bash install.sh              # Full install (deps + venv + models + config)
bash scripts/health_check.sh # Verify everything
bash scripts/download_models.sh  # Re-download models
bash scripts/uninstall.sh    # Remove everything
python dashboard.py          # Launch TUI dashboard
python server.py             # Start MCP server

📁 项目结构

ui-agent-mcp/
├── install.sh              # One-command installer
├── quickinstall.sh         # curl | bash installer
├── server.py               # MCP server (25 tools)
├── dashboard.py            # TUI dashboard
├── vision.py               # Florence-2 vision engine
├── ocr_engine.py           # GLM-OCR text extraction
├── screen_capture.py       # Screenshot via mss
├── ui_controller.py        # Mouse/keyboard actions
├── element_finder.py       # Smart find + click
├── safety.py               # Rate limits, audit log
├── config.py               # Settings
├── requirements.txt        # Python deps
├── requirements-tui.txt    # TUI deps
├── mcp_config.json         # OpenClaw config
├── scripts/
│   ├── setup_deps.sh       # System packages
│   ├── setup_python.sh     # Venv + pip with progress
│   ├── detect_gpu.sh       # GPU detection
│   ├── download_models.sh  # Model downloader
│   ├── setup_mcp.sh        # MCP config generator
│   ├── setup_service.sh    # Systemd service
│   ├── health_check.sh     # Status checker
│   └── uninstall.sh        # Cleanup
├── tests/
│   └── test_all.py
└── models/                 # AI models (downloaded)

📦 需求

  • Python 3.10+
  • Linux(x11)/macOS/Windows
  • GPU可选(建议使用NVIDIA CUDA)

许可证

麻省理工学院

目录标签

目录标签

PythonAI代理工作流自动化UI控制本地部署自动化工具屏幕捕捉文本识别

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

31

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP