uitars-mcp
uitars-mcp
MCP-Server, der KI-Coding-Agenten lokales GUI-Grounding ermöglicht – die Fähigkeit, jedes UI-Element auf dem Bildschirm zu finden und dessen exakte Pixelkoordinaten zurückzugeben.
Angetrieben von UI-TARS-2B, dem 2B-Parameter-GUI-Grounding-Modell von ByteDance.
Warum
Die integrierte Computer-Use-Funktion von Claude Code sendet jeden Screenshot zur Analyse in die Cloud. Dieser MCP-Server führt stattdessen ein lokales Vision-Modell aus:
~1,2 s pro Element-Suche (vs. Cloud-Roundtrip-Latenz)
4,1 GB VRAM (läuft auf jeder modernen GPU)
Vollständig offline – keine API-Schlüssel, keine Cloud-Abhängigkeit
90,7 % Genauigkeit beim ScreenSpot Desktop-Text-Benchmark
Native Pixelkoordinaten – gibt exakte Klickziele zurück
Related MCP server: servo-mcp
Einrichtung
1. UI-TARS-2B herunterladen
# Requires ~4.5GB disk space
huggingface-cli download bytedance-research/UI-TARS-2B-SFT --local-dir ./ui-tars-2b2. PyTorch mit CUDA installieren
# 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 installieren
pip install uitars-mcp
# or from source:
pip install -e .4. Claude Code konfigurieren
Fügen Sie dies zu Ihren Claude Code MCP-Einstellungen hinzu (~/.claude/settings.json):
{
"mcpServers": {
"uitars-mcp": {
"command": "uitars-mcp",
"env": {
"UITARS_MODEL": "/path/to/ui-tars-2b"
}
}
}
}Wenn es in einem venv installiert ist, verwenden Sie den vollständigen Pfad zur ausführbaren Datei:
{
"mcpServers": {
"uitars-mcp": {
"command": "/path/to/venv/bin/uitars-mcp",
"env": {
"UITARS_MODEL": "/path/to/ui-tars-2b"
}
}
}
}Tools
Tool | Was es tut | Latenz |
| Findet ein UI-Element anhand einer Beschreibung und gibt Klickkoordinaten zurück | ~1,2 s |
| Beschreibt alles, was auf dem Bildschirm sichtbar ist | ~2 s |
| OCR – liest den gesamten Text auf dem Bildschirm | ~3 s |
| Überprüft den Elementstatus (aktiviert, Wert, etc.) | ~1 s |
| Überprüft, ob eine Aktion funktioniert hat, indem der Bildschirmstatus geprüft wird | ~1,5 s |
| Schlägt die nächste Aktion vor, um ein Ziel zu erreichen | ~1,5 s |
| Misst die End-to-End-Latenz | variiert |
Funktionsweise
Erstellt einen Screenshot via
mss(schnell, plattformübergreifend)Ändert die Größe auf 1344px Breite (optimale Vision-Token-Anzahl)
Führt die UI-TARS-2B-Inferenz auf der GPU aus
Konvertiert die normalisierten 0-1000-Koordinaten des Modells in native Bildschirm-Pixel
Gibt Koordinaten zurück, die für
computer-use-Klick-Tools bereit sind
Das Modell wird beim ersten Aufruf verzögert geladen (~3 s) und verbleibt dann für nachfolgende Aufrufe im VRAM.
Umgebungsvariablen
Variable | Standard | Beschreibung |
| (erforderlich) | Pfad zum UI-TARS-2B-Modellverzeichnis |
Anforderungen
Python 3.10+
NVIDIA GPU mit 4,1 GB+ VRAM
CUDA-fähiges PyTorch
Windows oder Linux (macOS nicht getestet)
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