uitars-mcp
uitars-mcp
AIコーディングエージェントにローカルGUIグラウンディング(画面上のあらゆるUI要素を見つけ、その正確なピクセル座標を返す機能)を提供するMCPサーバーです。
ByteDanceの2BパラメータGUIグラウンディングモデルであるUI-TARS-2Bを搭載しています。
なぜこれを使うのか
Claude Codeの組み込みコンピュータ操作機能は、分析のためにすべてのスクリーンショットをクラウドに送信します。このMCPサーバーは代わりにローカルのビジョンモデルを実行します:
要素検索あたり約1.2秒(クラウドの往復レイテンシと比較)
4.1GB VRAM(最新のGPUであれば動作可能)
完全オフライン — APIキー不要、クラウド依存なし
90.7%の精度(ScreenSpotデスクトップテキストベンチマークにおいて)
ネイティブピクセル座標 — 正確なクリックターゲットを返します
Related MCP server: screencye
セットアップ
1. UI-TARS-2Bをダウンロード
# Requires ~4.5GB disk space
huggingface-cli download bytedance-research/UI-TARS-2B-SFT --local-dir ./ui-tars-2b2. PyTorchとCUDAをインストール
# Install CUDA-enabled PyTorch first (adjust cu126 to your CUDA version)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu1263. uitars-mcpをインストール
pip install uitars-mcp
# or from source:
pip install -e .4. Claude Codeを設定
Claude CodeのMCP設定(~/.claude/settings.json)に追加します:
{
"mcpServers": {
"uitars-mcp": {
"command": "uitars-mcp",
"env": {
"UITARS_MODEL": "/path/to/ui-tars-2b"
}
}
}
}venvにインストールした場合は、実行ファイルへのフルパスを使用してください:
{
"mcpServers": {
"uitars-mcp": {
"command": "/path/to/venv/bin/uitars-mcp",
"env": {
"UITARS_MODEL": "/path/to/ui-tars-2b"
}
}
}
}ツール
ツール | 機能 | レイテンシ |
| 説明からUI要素を見つけ、クリック座標を返す | 約1.2秒 |
| 画面上のすべての表示内容を説明する | 約2秒 |
| OCR — 画面上のすべてのテキストを読み取る | 約3秒 |
| 要素の状態(有効、値など)を確認する | 約1秒 |
| 画面状態を確認してアクションが成功したか検証する | 約1.5秒 |
| 目標達成のための次のアクションを提案する | 約1.5秒 |
| エンドツーエンドのレイテンシを測定する | 変動 |
仕組み
mssを介してスクリーンショットを撮影(高速、クロスプラットフォーム)幅1344pxにリサイズ(最適なビジョントークン数)
GPU上でUI-TARS-2B推論を実行
モデルの0-1000正規化座標をネイティブ画面ピクセルに変換
computer-useクリックツールで使用可能な座標を返す
モデルは初回呼び出し時に遅延読み込み(約3秒)され、その後は後続の呼び出しのためにVRAMに保持されます。
環境変数
変数 | デフォルト | 説明 |
| (必須) | UI-TARS-2Bモデルディレクトリへのパス |
要件
Python 3.10以上
4.1GB以上のVRAMを搭載したNVIDIA GPU
CUDA対応のPyTorch
WindowsまたはLinux(macOSは未検証)
This server cannot be deployed
Maintenance
Related MCP Connectors
Visual testing for coding agents: your agent sees every UI change it makes and triages each diff.
A visual brain for your agents: live, reusable UI fragments and skills to pull into code.
1UI design from prompts, screenshots, and URLs for AI coding agents and theme tokens.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceA local autonomous AI agent that watches your screen, understands the visual layout, and executes native OS commands (clicking, typing) without cloud APIs.39MIT
- AlicenseNot gradedqualityBmaintenanceEyes for text-only LLMs: decodes screenshots into exact structured text (words, coordinates, sizes, colors) using pure-code CV and OCR. Enables text-only models to reason about UI layouts without vision models or VRAM usage.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to see, locate UI elements, and operate any Windows desktop app through natural language, using accessibility-tree matching with optional vision-model fallback, plus an autonomous visual loop with introspection and meta-learning.13MIT
- AlicenseAqualityAmaintenanceEnables AI agents to automate GUI interactions across Windows, Linux, macOS, Android, iOS, and browsers using structured platform APIs first, with vision grounding as a fallback for robust cross-platform computer use.17MIT