vision-primitives-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| VISION_MODEL | Yes | Model name to use, e.g., 'mimo-v2.5' or 'qwen/qwen3-vl-8b'. | |
| VISION_API_KEY | Yes | API key for the vision service. For local LM Studio, use any placeholder. | |
| VISION_SAMPLES | No | Number of samples for localization stability. | 1 |
| VISION_API_BASE | Yes | Base URL for the vision API (e.g., https://api.xiaomimimo.com/v1 or http://127.0.0.1:1234/v1) | |
| VISION_NO_SYSTEM | No | Set to '1' for local small models that do not support system prompts. | 0 |
| VISION_TIMEOUT_S | No | Timeout in seconds for API calls. | 120 |
| VISION_OUTPUT_DIR | Yes | Directory where generated files will be saved. | |
| VISION_MAX_IMAGE_MB | No | Maximum image file size in megabytes. | 20 |
| VISION_DISABLE_THINKING | No | Set to '1' to disable thinking for local reasoning models. | 0 |
| VISION_ALLOW_PRIVATE_NET | No | Set to '1' to allow private network URLs (SSRF protection override). | 0 |
| VISION_ALLOW_SCREEN_CONTROL | No | Set to '1' to enable screen control tools (Windows only). | 0 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| describe_imageB | 用视觉模型描述图片内容,返回文字描述。 |
| analyze_imageB | 结构化分析:返回 description + visual_primitives(box/point 坐标与标签)。 |
| locate_objectB | 在图片中定位目标对象,返回坐标 primitives(让 LLM 输出坐标)。找不到会返回 count=0。 |
| som_locateA | Set-of-Mark 编号网格递归定位:叠加编号标记,模型回答目标所在编号,逐轮裁切放大收敛;final=box(默认)时末轮在局部图上直接输出坐标框,精度远高于整图直接定位。对无 grounding 训练的通用 VLM(MiMo 等)比直接输出坐标更准。 |
| cursor_locateA | 移动光标 + 视觉反馈循环定位:渲染光标位置,模型输出目标相对光标的偏移(dx/dy),逐步逼近目标中心。对相对偏移的估计比绝对坐标更准(参考 GUI-Cursor 交互式搜索范式)。 |
| ocr_imageB | OCR 提取图片中所有文字块,返回 text + bbox(像素与归一化坐标)。 |
| annotate_imageA | 在图片上画矩形框/圆点/标签(圈画标记),保存标注图并返回路径。 |
| crop_imageA | 按坐标裁切图片(可边缘外扩),保存并返回路径与新尺寸。 |
| zoom_regionB | 放大图片指定区域(默认整图 2 倍),保存并返回路径。 |
| vision_healthA | 检查视觉后端配置与连通性。 |
| annotate_inferA | 虚拟标注 + 增强图形推理:把框/点/连线/箭头/圆等标注(不修改原图)注入视觉模型,引导空间关系推理。mode=virtual 用坐标文本注入;mode=overlay 生成半透明叠加图。 |
| screen_captureA | 截屏(全屏或指定区域),保存 PNG 并返回路径。配合 locate_object/describe 实现「看屏幕」。 |
| screen_infoC | 屏幕信息:分辨率、DPI、电脑控制开关状态。 |
| screen_clickA | 鼠标点击(需 VISION_ALLOW_SCREEN_CONTROL=1)。坐标通常来自 locate_object 对截图的定位结果。 |
| screen_moveC | 仅移动鼠标光标(需 VISION_ALLOW_SCREEN_CONTROL=1)。 |
| screen_dragC | 鼠标拖拽(需 VISION_ALLOW_SCREEN_CONTROL=1)。 |
| screen_scrollA | 滚轮滚动(需 VISION_ALLOW_SCREEN_CONTROL=1)。正数向上,负数向下。 |
| screen_typeA | 键盘输入文本(需 VISION_ALLOW_SCREEN_CONTROL=1)。ASCII 直接按键;中文等经剪贴板粘贴。 |
| screen_keyA | 按键或组合键(需 VISION_ALLOW_SCREEN_CONTROL=1)。如 enter / tab / ctrl+c / alt+tab。 |
| cv_locateA | 传统 CV 精定位(备选方案):颜色分割 + 连通域质心(像素级,零依赖,实测 0-4px)或模板匹配。适用简单目标(纯色 UI 元素、几何图形、固定模板);泛化有限,通用目标请用 locate_object / som_locate。 |
| ui_parseA | 全屏 UI 结构化解析:OCR 文本块 + 矩形控件检测(button/input)+ 图标候选 + 可选 YOLO 检测器(OmniParser icon_detect,models/icon_detect.pt 存在时自动启用),输出带 id 的结构化元素列表。out_path 保存半透明叠加层渲染图(编号框),可直接交 VLM 做编号选择。 |
| ui_locateA | UI 元素定位(文本锚定优先):目标描述 → 关键词 → OCR 文本匹配 → 控件框(像素级)。按钮/输入框/图标等 UI 点击类目标的备选精定位;返回 matched + 候选列表供 VLM 确认。 |
| ui_refineA | VLM 审查并语义修正 UI 检测框:删除误检 / 合并重复 / 语义标注 / 文本锚定补漏。不做坐标微调(坐标级修正由 som/cv 负责)。返回修正后元素列表与变更记录。 |
| compare_inferA | 多图联合推理(2-4 张):每张图可带独立标注(items_per_image),联合对比/推理关系(差异、因果、时序、整体结论)。 |
| reason_graphB | 交互式图形推理协议:原语(locate/measure) → 语义(semantic/hypothesis) → 标注(annotate/verify) 多轮循环。session 跨轮传递状态。 |
| compare_imagesA | 多图对比分析(2-4 张):A/B 截图对比、设计稿一致性、多帧分析,返回逐项对比结果。 |
| scan_anomaliesA | 自动扫描图片中的异常/歪斜元件:把区域切成带重叠的块逐块定位候选,再从原图高清裁切逐个验证,输出带置信度与角度/丝印的报告。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zouyuanqing/vision-primitives-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server