Logo vun llm-vision-mcp

llm-vision-mcp

Communautéit
KuaaMU

MCP server that gives text-only LLM coding agents vision — analyze images via any multimodal model (mimo, Claude, Gemini, OpenAI-compatible). Works with Claude Code, Codex, Kimi, opencode, PI.

EditeurKuaaMU
Repositorymcp-vision-bridge
SproochTypeScript
Forks
3
Stären
13
Disponibel Tools
7
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    llm-vision-mcp stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 7 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    13 Stären an 3 Forks aus dem verlinkte Repository.

👁️ mcp-vision-bridge

npm version Publish Glama

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.

English · 中文


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)

Claude Code (one command)

bash
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.

Auto-updating: the MCP server self-syncs the bundled skill + hook into ~/.claude/ on startup, so every restart pulls the latest version along with the npm package. Set VISION_NO_SYNC=1 to disable auto-sync.

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)

bash
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:

json
{
  "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:

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",  // single, or
             ["path","path",...]                                      // several in one call
  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" (most recent pasted image in this session), "session" (every image pasted in this session, analyzed in one call), a base64 data URI, or an array of these to analyze multiple images at once (e.g. "compare these two").
  • task — prompt presets for common jobs; ocr asks the vision model to extract text, ui specs a screen, etc. (There's no bundled OCR engine — the model itself does the reading.)
  • prompt — free-form question (overrides task). Pass the user's actual question here — the vision model answers what you ask, so a specific question ("what error is shown?") beats a generic describe.

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:

AgentWhere pasted images landAuto-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.


Architecture

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

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).

VariableWhenExample
VISION_OPENAI_BASE_URLOpenAI-compatiblehttps://opencode.ai/zen/go/v1
VISION_OPENAI_API_KEYOpenAI-compatiblesk-...
VISION_MODELalwaysmimo-v2.5, gpt-4o, qwen-vl-max
VISION_PROVIDERnon-openaianthropic | gemini
VISION_ANTHROPIC_API_KEYanthropicsk-ant-...
VISION_GEMINI_API_KEYgeminiAIza...
VISION_MAX_TOKENSoptional4096 per image — multi-image multiplies it ×N (each image keeps its own budget, capped 32000) so detailed descriptions aren't truncated
VISION_TIMEOUT_MSoptional30000
VISION_BLOCK_PRIVATE_URLSoptionaltrue to block localhost fetches

Development

bash
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).

Release: bump the version in package.json, push, then git tag vX.Y.Z && git push origin vX.Y.Z — GitHub Actions runs tests and publishes to npm automatically.


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


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

GitHub · npm · Plugins · ⭐ Star it if it's useful

Installatioun

TypingMind
{
  "mcpServers": {
    "mcp-vision-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "llm-vision-mcp"
      ],
      "env": {
        "VISION_PROVIDER": "<VISION_PROVIDER>",
        "VISION_MODEL": "<VISION_MODEL>"
      }
    }
  }
}

Disponibel Tools

  • analyze_image

    General-purpose image understanding for photos, screenshots, documents, objects, scenes, and visual questions.

  • extract_text_from_image

    OCR for screenshots, documents, terminal output, logs, code snippets, forms, and UI text.

  • diagnose_error_screenshot

    Analyze error screenshots, stack traces, console output, IDE errors, terminal failures, and crash dialogs.

  • understand_technical_diagram

    Explain architecture diagrams, flowcharts, UML, sequence diagrams, ER diagrams, network diagrams, and system maps.

  • analyze_data_visualization

    Interpret charts, graphs, tables, dashboards, metrics screenshots, and data visualizations.

  • ui_to_artifact

    Convert UI screenshots into implementation notes, layout structure, design specs, or recreation prompts.

  • ui_diff_check

    Compare expected and actual UI screenshots for visual regression, missing elements, layout differences, typography, color, spacing, and priority.

llm-vision-mcp MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal llm-vision-mcp verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

llm-vision-mcp als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu llm-vision-mcp an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "mcp-vision-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "llm-vision-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu llm-vision-mcp. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu llm-vision-mcp.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat llm-vision-mcp?
llm-vision-mcp
Jo. Ech hunn et gelies.
Dat hunn ech mat llm-vision-mcp fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server llm-vision-mcp benotzt?

llm-vision-mcp ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech llm-vision-mcp MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir llm-vision-mcp mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat llm-vision-mcp MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann llm-vision-mcp verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech llm-vision-mcp MCP mat TypingMind?

llm-vision-mcp leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt llm-vision-mcp MCP an TypingMind zur Verfügung?

llm-vision-mcp stellt 7 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir llm-vision-mcp MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann llm-vision-mcp eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇