uitars-mcp
Click on "Deploy 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., "@uitars-mcpfind the 'Submit' button and return its coordinates"
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.
uitars-mcp
MCP server that gives AI coding agents local GUI grounding — the ability to find any UI element on screen and return its exact pixel coordinates.
Powered by UI-TARS-2B, ByteDance's 2B parameter GUI grounding model.
Why
Claude Code's built-in computer-use sends every screenshot to the cloud for analysis. This MCP server runs a local vision model instead:
~1.2s per element find (vs cloud round-trip latency)
4.1GB VRAM (runs on any modern GPU)
Fully offline — no API keys, no cloud dependency
90.7% accuracy on ScreenSpot desktop-text benchmark
Native pixel coordinates — returns exact click targets
Related MCP server: screencye
Setup
1. Download UI-TARS-2B
# Requires ~4.5GB disk space
huggingface-cli download bytedance-research/UI-TARS-2B-SFT --local-dir ./ui-tars-2b2. Install PyTorch with CUDA
# Install CUDA-enabled PyTorch first (adjust cu126 to your CUDA version)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu1263. Install uitars-mcp
pip install uitars-mcp
# or from source:
pip install -e .4. Configure Claude Code
Add to your Claude Code MCP settings (~/.claude/settings.json):
{
"mcpServers": {
"uitars-mcp": {
"command": "uitars-mcp",
"env": {
"UITARS_MODEL": "/path/to/ui-tars-2b"
}
}
}
}If installed in a venv, use the full path to the executable:
{
"mcpServers": {
"uitars-mcp": {
"command": "/path/to/venv/bin/uitars-mcp",
"env": {
"UITARS_MODEL": "/path/to/ui-tars-2b"
}
}
}
}Tools
Tool | What it does | Latency |
| Find a UI element by description, returns click coordinates | ~1.2s |
| Describe everything visible on screen | ~2s |
| OCR — read all text on screen | ~3s |
| Check element state (enabled, value, etc.) | ~1s |
| Verify an action worked by checking screen state | ~1.5s |
| Suggest next action to achieve a goal | ~1.5s |
| Measure end-to-end latency | varies |
How it works
Takes a screenshot via
mss(fast, cross-platform)Resizes to 1344px wide (optimal vision token count)
Runs UI-TARS-2B inference on GPU
Converts model's 0-1000 normalized coordinates to native screen pixels
Returns coordinates ready for
computer-useclick tools
The model is lazy-loaded on first call (~3s), then stays in VRAM for subsequent calls.
Environment variables
Variable | Default | Description |
| (required) | Path to UI-TARS-2B model directory |
Requirements
Python 3.10+
NVIDIA GPU with 4.1GB+ VRAM
CUDA-enabled PyTorch
Windows or Linux (macOS untested)
This server cannot be deployed
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 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.3MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to autonomously control Windows 11 and 10 desktops via sub-10ms screen capture, native UI Automation element inspection, and zero-lag keyboard and mouse input. Combines a visual plane with a semantic plane and stall detection so agents can operate real applications reliably without vision-only guessing.34 npm178 PyPI4MIT