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: servo-mcp
セットアップ
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 installed
Maintenance
Related MCP Connectors
UI 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.
- openhelmOAuthai.openhelm
Autonomous cloud agent tasks: real browser + your tools, structured evidence-backed results.
E2LLM gives your AI eyes and hands in a real browser: structured perception (SiFR) plus action.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA local autonomous AI agent that watches your screen, understands the visual layout, and executes native OS commands (clicking, typing) without cloud APIs.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to see and control your desktop with tools for screenshots, clicks, typing, and more, all locally on macOS and Windows.80MIT
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to control Windows desktops via local OCR, optional YOLO icon detection, and mouse/keyboard actions.PolyForm Noncommercial 1.0.0
- 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