Shadow Vision is an open-source MCP vision service, with the goal of giving text-only large models "a pair of eyes", enabling AI agents to view, understand, and analyze image information through vision tools without changing the host model.
Purpose and Positioning Text models call Shadow Vision's tools through MCP; Shadow Vision forwards images and prompts to the configured vision backend, and then returns the text results to the model. It is compatible with MCP clients such as Codex, Claude Desktop, and Cursor.
Main Capabilities It provides six types of vision tools: vision_ocr is used to extract text from screenshots, invoices/receipts, documents, or tables; vision_inspect is used to describe images or answer questions about images; vision_annotate recognizes user annotations such as bounding boxes, arrows, underlines, highlights, strikethroughs, and handwritten annotations, and outputs structured JSON containing annotation-to-target relationships, types, bbox, and confidence; vision_layout analyzes image and UI layout structure, outputting canvas, containers, element bbox, typography styles, and hierarchy; vision_reconstruct reconstructs screenshots into code (html / react / svg), and generates markup and model self-check, with the option to pass in vision_layout JSON as layout reference; vision_compare analyzes multiple related images (diff / compare / sequence) in a single call, and supports adding labels for each image. vision_ocr and vision_inspect also support the task parameter: vision_ocr can be general / error / table, and vision_inspect can be general / ui_structure / ui_bug / chart.
Usage Supports one-click running without cloning the repository, using npx shadow-vision (internally calls uvx shadow-vision, requires uv installed on the local machine). It can also be installed from source, requiring Python 3.11+ and uv. The local Ollama backend is suitable for beginners: first install Ollama; the default vision model is qwen3-vl:2b-instruct (non-thinking version, faster responses), requiresFor stronger reasoning, you can switch to qwen3-vl:2b (thinking version), or change VISION_MODEL to another vision model in ollama list. Before use, run ollama pull <vision-model-name> to download the model. After registering as an MCP service, restart the MCP client so the model can "take a look at this image." Codex can be run directly, or written into ~/.codex/config.toml.
Backend and Configuration VISION_BACKEND determines request routing, VISION_MODEL specifies the vision model; to switch, modify the environment variables in the MCP configuration and restart the client. Supports Ollama, OpenAI-compatible services, Anthropic, and Gemini. The OpenAI-compatible protocol also applies to services such as LM Studio and vLLM that provide /v1/chat/completions; the materials also list API endpoint examples for platforms such as Zhipu GLM-4V-Flash, SiliconFlow, Alibaba Bailian, StepFun, Tencent Hunyuan, and Moonshot. Different providers support different token limit fields; you can use max_tokens, max_completion_tokens, or not set OPENAI_MAX_TOKENS. The legacy environment variables VISION_API_BASE, VISION_API_KEY, VISION_MAX_TOKENS, and VISION_MAX_TOKENS_FIELD remain compatible. Anthropic also supports ANTHROPIC_BASE_URL, ANTHROPIC_VERSION, and ANTHROPIC_MAX_TOKENS; Gemini also supports GEMINI_BASE_URL and GEMINI_MAX_TOKENS.
Image Input All image tools accept one of image_path (a local path readable by the server), image_base64 + mime_type, or image_url (a remote HTTP(S) address with SSRF protection); priority is image_base64 > image_path > image_url.
Use Cases Suitable for scenarios that require a text model to process screenshots, receipts, documents, tables, UI interfaces, charts, multi-image comparisons, and screenshotsconverted to code, and also suitable for teams that want to process sensitive images locally.
Limitations and Notes When using an API backend (including third-party platforms), images are sent as Base64 to the corresponding provider's servers; for confidential or sensitive images, use the local ollama backend to avoid data leakage. Model package size does not represent the minimum memory requirement. The materials recommend first using 3–5 real images covering OCR, UI screenshots, charts, and difficult edge cases, comparing models with the same prompts, and focusing on the number of OCR errors, accuracy of key objects and relationships, hallucinations, full round-trip latency, and ollama ps status; testing Ollama directly first and then testing through MCP helps distinguish model capability limitations from MCP configuration issues.