Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Provides image understanding capabilities for MCP clients (e.g., Claude Code) by analyzing images using vision models from providers like Alibaba Cloud Bailian, OpenAI, or OpenRouter, returning detailed descriptions in Markdown format.

README.md

Vision MCP Server

为什么需要它

许多 AI 模型(包括部分 Claude 版本)不能直接"看"图片。当你给它一张 UI 截图或设计稿时,它无法理解画面内容,也就无法帮你分析界面、提取文字、写代码复刻。

Vision MCP Server 填补了这个缺口——它充当 AI 的"眼睛",让你在对话中直接丢图片给模型分析,同时提供缓存、模型回退、UI 对比等实用能力。

它能做什么

| 场景 | 用法 | |------|------| | 给我描述这张截图的内容 | image_understand — 5 秒快速识图 | | 这张设计稿用了什么配色和字体 | image_understand + mode="detailed" — 七维度分析 | | 实现截图和设计稿对比,找出差异 | image_compare — 自动发现 UI 偏差 | | 额度用完了自动换模型接着跑 | VISION_MODELS 模型回退 | | 同一张图昨天分析过,今天免费用 | 磁盘缓存,7 天 TTL |

典型工作流

"生成这个页面的 React 代码"
    ↓ Claude 写完
    ↓ Playwright 截图
    ↓ image_compare(设计稿, 截图)
    ↓ 返回差异 → Claude 修复

第一次分析 5-15 秒,第二次相同图 0.01 秒(命中原缓存),不花二次钱

快速开始

pip install -e .
python -m vision_mcp_server

Claude Code 在项目根目录配 .mcp.json 即可用,不需要额外配置(前提是已设置 API Key)。

工具

image_understand — 单图分析

image_understand(image_path, prompt=None, mode="quick", force_refresh=False)

| 参数 | 说明 | |------|------| | image_path | 本地图片路径或 HTTP URL | | prompt | 自定义提问,不传则自动选择提示词 | | mode | "quick" 精简(5-10s)\| "detailed" 七维度(15-30s) | | force_refresh | 跳过缓存 |

image_compare — 双图对比

image_compare(expected_image, actual_image, mode="ui", force_refresh=False)

返回结构化 JSON,包含差异类型、严重度、区域和预期/实际对比。

配置

环境变量

# 必选
DASHSCOPE_API_KEY=sk-xxx       # 百炼 API Key(默认 Provider)

# Provider 切换
VISION_PROVIDER=bailian         # bailian | openai | openrouter
VISION_API_KEY=sk-xxx           # 覆盖 API Key
VISION_BASE_URL=https://...     # 覆盖 API 端点

# 模型回退
VISION_MODELS=qwen-vl-max,qwen-vl-plus,qwen-3.7  # 按顺序尝试,遇到 quota/429 自动切换

# 缓存
VISION_CACHE_ENABLED=false      # 禁用缓存
VISION_CACHE_TTL=604800         # TTL(秒),默认 7 天
VISION_CACHE_DIR=/path/to/cache # 自定义缓存目录

Provider 默认值

| Provider | 模型 | API 地址 | |----------|------|----------| | bailian | qwen-vl-max | https://dashscope.aliyuncs.com/compatible-mode/v1 | | openai | gpt-4o-mini | https://api.openai.com/v1 | | openrouter | openai/gpt-4o | https://openrouter.ai/api/v1 |

扩展

启动 HTTP 模式调试:

python -m vision_mcp_server --http

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Cloud & DevOps servers.