mcp-vision-bridge

mcp-vision-bridge

Gives text-only LLM coding agents vision by routing images to a multimodal model and returning detailed textual descriptions. Supports local files, URLs, clipboard, base64, raw bytes, and multiple providers like OpenAI, Anthropic, and Gemini.

Category
Visit Server

README

<div align="center">

๐Ÿ‘๏ธ mcp-vision-bridge

Give your text-only coding agent eyes.

DeepSeek V4 Flash writes great code โ€” but it can't see the error dialog, the broken UI, or the screenshot you just pasted. This MCP server gives any text-only agent vision by routing images through a multimodal model of your choice.

Works with Claude Code ยท Codex ยท opencode ยท Kimi ยท PI ยท Cursor and any MCP client.

</div>


Why you need this

Your agent can't see. You paste a screenshot โ†’ "I can't see images." You transcribe the error by hand. With this, the agent calls one tool and gets a complete text description โ€” verbatim text, layout, colors, anomalies โ€” and can debug, fix, and explain.

Not a vision model. It's a bridge: it sends your image to a multimodal model you already pay for (mimo, Claude, Gemini, GPT-4o, Qwen-VLโ€ฆ) and returns a detailed description. No images ever enter your agent's context.


๐Ÿš€ Install (pick your agent โ€” that's the whole setup)

<img src="docs/install-decision.svg" alt="Which install path to choose" width="900"/>

Claude Code (one command)

claude plugin marketplace add KuaaMU/agent-plugins
claude plugin install mcp-vision-bridge

That's it โ€” the plugin bundles the MCP server + vision skill + auto-loop hook. Claude Code will prompt you for your vision endpoint, API key, and model once.

Prefer to manage it in cc-switch (see it + sync to Codex/opencode/Gemini)? Use the installer below instead.

Codex / Reasonix / opencode / Kimi / anything else (one command)

git clone https://github.com/KuaaMU/mcp-vision-bridge && cd mcp-vision-bridge
./install.sh                     # auto-detects your agent

./install.sh claude | reasonix | codex | opencode | kimi if it doesn't auto-detect. You'll be asked for three values: endpoint, key, model.

Reasonix reads the same .mcp.json as Claude Code, so ./install.sh reasonix (or a manual .mcp.json with the vision server) works โ€” pasted images land in .reasonix/attachments/ and image="recent" finds them.

Manual (no install script)

Add this as a stdio MCP server in your agent:

{
  "command": "npx",
  "args": ["-y", "mcp-vision-bridge"],
  "env": {
    "VISION_OPENAI_BASE_URL": "https://your-endpoint/v1",
    "VISION_OPENAI_API_KEY": "sk-your-key",
    "VISION_MODEL": "your-vision-model"
  }
}

Requires Node.js โ‰ฅ 18.


๐ŸŽฏ Use

After install, restart your agent, then:

<img src="docs/usage-flow.svg" alt="How to use: screenshot โ†’ copy โ†’ ask โ†’ done" width="900"/>

Best way โ€” drag the image file into the chat. Dragging an image file into any agent (TUI or GUI) inserts its real path, which analyze_image accepts directly โ€” works identically in Claude Code, Cowork, Codex, opencode, PI, and more. No clipboard, no paste quirks.

  1. Drag an image file into the input box (or Ctrl+V in Claude Code / Cowork)
  2. Say "็œ‹็œ‹่ฟ™ไธช" (or "analyze this", "what's the error?")
  3. Your agent calls analyze_image โ†’ the vision model describes it in detail

Paste 3 images? The hook reads your session transcript (lossless, multi-image). image="recent" auto-finds pasted images across Claude Code CLI, Reasonix, Cowork, and Codex โ€” no clipboard needed. If a desktop GUI doesn't register a paste (it can fail silently), just drag the file in โ€” a path always works.

The one tool

Agent docs โ†’ README_AGENT.md (tool contract, source choice, error handling).

analyze_image(
  image   = "path | URL | clipboard | recent | session | data:URI",
  task    = "describe | ocr | ui | layout | qa",   // or use prompt:
  prompt  = "What error is on screen?",
  detail  = "high" | "low",
  save_to = "optional file for long output"
)
  • image โ€” local path, http(s) URL, "clipboard", "recent" (auto-find the last pasted image across Claude Code / Reasonix / Cowork / Codex), "session", or a base64 data URI
  • task โ€” common jobs; ocr extracts text, ui specs a screen, etc.
  • prompt โ€” free-form question (overrides task)

How pasted images are discovered

Pasting an image into a coding agent stores it somewhere. image="recent" / "session" find it automatically โ€” no clipboard, no manual paths:

Agent Where pasted images land Auto-found?
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, Node โ‰ฅ 22.5) โœ…
Cowork (Claude-3p desktop) %LOCALAPPDATA%\Claude-3p\...\uploads\*_image.png โœ…
Codex ~/.codex/attachments/<session>/image-*.png โœ…
Grok Build ~/.grok/sessions/*/*/images/ โœ…

Windows clipboard reality: in Explorer, "copy file" (Ctrl+C) puts a file list on the clipboard โ€” not image bytes. So pasting a local image into a CLI only works if you copy the image content (screenshot tool, browser "copy image"). Otherwise just paste the file path โ€” analyze_image reads it directly.


Demo (mimo-v2.5)

analyze_image โ†’ describe/ocr โ†’ detailed text. The same tool works with any vision model.

OCR a screenshot โ†’ every line reproduced verbatim, including the menu bar ๆ–‡ไปถ(F) ็ผ–่พ‘(E) ๆ ผๅผ(O) ๆŸฅ็œ‹(V) ๅธฎๅŠฉ(H) and the whole body, in reading order.

Describe a diagram โ†’ elements, spatial layout, colors, and any anomaly, enumerated.


Architecture

<img src="docs/architecture.svg" alt="Project architecture: MCP tool + skill + hook" width="900"/>

Three parts that close the loop for a text-only agent:

  • MCP tool (analyze_image) โ€” the capability. Sends pixels to your vision model, returns text.
  • Skill (skills/vision/) โ€” the guidance. Tells the agent when and how to call it.
  • Hook (UserPromptSubmit) โ€” the automation. Captures a pasted image from the session transcript and triggers the call for you.

Install them all with the plugin (Claude Code) or install.sh (any agent).


How it works

<img src="docs/flow.svg" alt="How it works: agent โ†’ bridge โ†’ vision model โ†’ text" width="900"/>

Pure text in, pure text out. The server never interprets the image โ€” it fetches the bytes and lets your vision model do the seeing.


Configuration

All via environment variables (the MCP reads them from your agent's server config).

Variable When Example
VISION_OPENAI_BASE_URL OpenAI-compatible https://opencode.ai/zen/go/v1
VISION_OPENAI_API_KEY OpenAI-compatible sk-...
VISION_MODEL always mimo-v2.5, gpt-4o, qwen-vl-max
VISION_PROVIDER non-openai anthropic | gemini
VISION_ANTHROPIC_API_KEY anthropic sk-ant-...
VISION_GEMINI_API_KEY gemini AIza...
VISION_MAX_TOKENS optional 2048 (bump to 3000+ for dense screenshots)
VISION_TIMEOUT_MS optional 30000
VISION_BLOCK_PRIVATE_URLS optional true to block localhost fetches

Development

npm install
npm run build          # tsc โ†’ dist/
npm test               # vitest
npm run test:e2e       # stdio pipeline against a mock provider

Layout: src/ (server), skills/vision/ (skill), hooks/ (auto-loop hook), install.sh (installer), examples/ (per-agent templates).


Security

  • Keys live in env/config only โ€” never in tool arguments.
  • Optional SSRF guard for URL sources.
  • Images go only to your configured vision provider.

License

MIT


<div align="center">

DeepSeek writes the code. mcp-vision-bridge reads the screen.

GitHub ยท npm ยท Plugins ยท โญ Star it if it's useful

</div>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured