/mcp-vision-bridge:visionfrom mcp-vision-bridge
Gives a text-only agent vision by routing images through an MCP analyze_image tool. Activates when users paste images or ask to analyze screenshots, photos, diagrams, UI, charts, or error dialogs.
Ships in mcp-vision-bridge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your model cannot receive image content directly. When the user pastes an image,
Claude Code shows it as an [Unsupported Image] placeholder — a text marker with
no usable pixel data. You cannot read it. Instead, obtain the image through a
route you can access, then send it through the analyze_image MCP tool, which
forwards the pixels to a multimodal model and returns a detailed text description.
This skill has two parts:
analyze_image is not available, get it configured.analyze_image.analyze_image is missing)First check: is analyze_image available? If you can see analyze_image among
your MCP tools, skip to B. If it is NOT in your tool list, the vision MCP is
not configured yet. Do the following.
A1. Fast path — one-click installer (recommended):
If the repo is available on the machine, tell the user to run:
cd mcp-vision-bridge # wherever the repo is cloned
./install.sh
The installer will:
image="session" — no snapshot, no lag, all pasted images in one call.
No clipboard dependency.If a
[vision-bridge]system message appears in your context, that's the auto-loop hook firing: the user pasted images and wants you to look at them. Follow it — callanalyze_image(image="session", ...)to analyze them all.
A2. Manual path — no repo on machine:
Ask the user for three values (all required):
VISION_OPENAI_BASE_URL — their OpenAI-compatible endpoint
(e.g. https://opencode.ai/zen/go/v1, OpenRouter, a gateway, or local).VISION_OPENAI_API_KEY — their API key.VISION_MODEL — the vision model id (e.g. mimo-v2.5, gpt-4o, qwen-vl-max).Then guide them through the config for their platform (from the repo's
examples/ or README):
Claude Code — add a vision server to MCP config:
{
"mcpServers": {
"vision": {
"command": "npx",
"args": ["-y", "mcp-vision-bridge"],
"env": {
"VISION_OPENAI_BASE_URL": "<their endpoint>",
"VISION_OPENAI_API_KEY": "<their key>",
"VISION_MODEL": "<their model>"
}
}
}
}
(For a project: .mcp.json. For global: claude mcp add --scope user or edit
~/.claude.json top-level mcpServers.)
Codex — ~/.codex/config.toml:
[mcp_servers.vision]
command = "npx"
args = ["-y", "mcp-vision-bridge"]
env = { VISION_OPENAI_BASE_URL = "<endpoint>", VISION_OPENAI_API_KEY = "<key>", VISION_MODEL = "<model>" }
opencode — opencode.json:
{ "mcp": { "vision": { "type": "local", "command": ["npx","-y","mcp-vision-bridge"], "environment": { "VISION_OPENAI_BASE_URL": "<endpoint>", "VISION_OPENAI_API_KEY": "<key>", "VISION_MODEL": "<model>" } } } }
Kimi Code / others — same npx -y mcp-vision-bridge stdio pattern.
Reasonix — uses the same .mcp.json mcpServers format as Claude Code.
Add the vision server to your project .mcp.json:
{
"mcpServers": {
"vision": {
"command": "npx",
"args": ["-y", "mcp-vision-bridge"],
"env": {
"VISION_OPENAI_BASE_URL": "<endpoint>",
"VISION_OPENAI_API_KEY": "<key>",
"VISION_MODEL": "<model>"
}
}
}
}
Pasted images land in .reasonix/attachments/ — image="recent" finds them.
Cowork / Claude-3p desktop — register into
%LOCALAPPDATA%\Claude-3p\claude_desktop_config.json (same mcpServers
object form as Claude Code). Cowork saves pasted images to real files
automatically — no hook needed; image="recent" discovers them.
Security: prefer storing the API key in an env var (
export VISION_OPENAI_API_KEY=...in~/.bashrc/~/.zshrc/ PowerShell profile) rather than pasting it into JSON configs, so it is not committed or shared.
A3. After install: tell the user to restart their agent session so the MCP server loads and this skill is active. Then proceed to B.
analyze_imagePrimary rule: use a real file path. A path works identically in every coding agent's TUI and GUI (Claude Code, Cowork, Codex, opencode, PI, …) — no clipboard, no GUI-paste quirks. Prefer paths first; fall back to auto-discovery.
Check in this order:
A file path exists (BEST — works everywhere). The user gave you a path, or
one appears in the conversation/prompt, or you can construct one
(C:\shots\bug.png, ./screenshots/ui.png, a dragged-in file).
→ Call analyze_image(image="<path>", ...) directly. No user action needed.
If the user pasted an image but it failed to attach (e.g. [Unsupported Image]
or a GUI that didn't recognize the paste), ask them to drag the file into the
input box or paste a path — dragging an image file generates its path in the
prompt on every platform.
The user pasted images that WERE captured (Claude Code CLI image-cache/,
Cowork desktop uploads/, Codex attachments/). Use auto-discovery:
image="recent" → the most recently pasted image in THIS session.image="session" → EVERY image pasted in this session, analyzed in one call.image=["a.png","b.png","c.png"] → explicit multiple images in one call.
→ When the user pasted several images (you see [Image #1] [Image #2] [Image #3]),
use image="session" (or an array) so the vision model sees ALL of them at
once — do NOT loop analyze_image per image. The tool scans Claude Code
~/.claude/image-cache/, Reasonix sessions/attachments, Cowork uploads, Codex
attachments, Grok session images, and Claude transcripts automatically.Session isolation: under Claude Code, discovery is scoped to the current session only — it never reads images from other sessions (privacy + parallel correctness). If you need a specific file, pass its explicit path. Claude Code CLI pasting (Windows): use Alt+V to paste an image from the clipboard — the CLI writes it to
~/.claude/image-cache/<uuid>/N.png, which discovery finds. Note Windows "copy file" in Explorer puts a file list on the clipboard, not image bytes, so Alt+V won't see it; copy the image from a screenshot tool/browser, or just paste the file path instead.
The image is on the system clipboard — a screenshot was just taken, or the
user copied an image (Ctrl+C). This is a fast path for "look at my screen".
→ Call analyze_image(image="clipboard", ...).
Nothing resolved yet — you have no path, discovery found nothing, and the clipboard is empty. Do NOT guess. Ask the user to either (a) save the image and give a path, or (b) drag the image file into the chat — a path will appear.
recent / session scan (auto-discovery)| Agent | On-disk location of pasted images |
|---|---|
| Claude Code CLI/TUI | ~/.claude/image-cache/<uuid>/N.png (paste with Alt+V) |
| Reasonix | ~/.reasonix/sessions/ + project .reasonix/attachments/ |
| opencode | ~/.local/share/opencode/opencode.db (SQLite part table) |
| Cowork (Claude-3p desktop) | %LOCALAPPDATA%\Claude-3p\...\uploads\*_image.png |
| Codex | ~/.codex/attachments/<session>/image-*.png |
| Grok Build | ~/.grok/sessions/*/*/images/ |
analyze_image(
image = "<path | URL | clipboard | recent | session | data URI>" // single, or
= ["<path>", "<path>", ...] // multiple in one call
task = "describe" | "ocr" | "ui" | "layout" | "qa", // or
prompt = "<your specific question>", // free-form overrides task
detail = "high" (default) | "low",
save_to = "<optional file path for long output>"
)
Choosing task vs prompt:
prompt when you know it. The
vision model answers what you ask — a specific question ("what error is shown",
"is the button disabled") beats a generic describe. This is the focus-hint
principle: the model targets the question, not a broad description. When using
image="recent" / "session", carry the user's question into prompt too.describe — exhaustive description (everything, verbatim text, layout, colors, anomalies). Use for "what's in this image".ocr — extract all text verbatim. Use for "read the text / transcribe".ui — functional UI spec (components, labels, states, layout). Use for app/site screenshots.layout — spatial structure, alignment, z-order.qa — answer a specific question grounded in the image; pair with prompt.Long outputs: if the description may be long (detailed screenshots, big
diagrams), set save_to to a file path so the full text is written out and you
get a path + summary instead of a huge blob in context.
| User intent | What you do |
|---|---|
| "看看这个截图 / 分析这个报错" | If a path is in context → analyze it. Else ask user to drag the image file in (generates a path) or paste a path, then analyze. |
| "这个 UI 怎么样 / 描述下这个页面" | analyze_image(task="ui"). |
| "把这段文字提取出来 / OCR" | analyze_image(task="ocr"). |
| "这张图里是什么?" | analyze_image(task="describe") or qa with a prompt. |
Pasted image shows [Unsupported Image] | The paste failed (common in desktop GUI). Ask user to drag the file into the chat or paste a path — a real path appears, then analyze. |
| "帮我看下我屏幕" / "当前窗口" | Tell user to save the screenshot to a file (or drag it in) and give you the path, then analyze_image(image="<path>"). |
analyze_image is a
real file path — it works in every agent (TUI and GUI). Prefer asking for a
path or a dragged-in file over relying on clipboard or paste attachment.imageCount=0) — no file, no
transcript entry, and the bytes are lost. If discovery finds nothing, ask the
user to drag the image file into the chat or paste its path.analyze_image
when the user wants you to look at something visual.analyze_image returns an error (file not found,
unsupported format, provider timeout), read it and respond accordingly — e.g.
ask for the correct path, or note that the vision endpoint timed out.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kuaamu/mcp-vision-bridge --plugin mcp-vision-bridgeOther plugins' skills for the same job