vision-mcp
Provides image analysis and OCR capabilities using OpenAI-compatible vision models (e.g., GPT-4o).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vision-mcpExtract the text from this screenshot: ./bug-report.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vision-mcp
A lightweight MCP server that adds vision capabilities to text-only main models. When the main model encounters images (screenshots, UI mockups, flowcharts, error screenshots, etc.) but cannot understand them, it hands the image to an OpenAI-compatible multimodal backend (Qwen-VL, GPT-4o, Gemini, local vLLM, etc.) via MCP tools for analysis and returns the text result.
主模型(纯文本) ──调用 MCP 工具──▶ vision-mcp ──Chat Completions──▶ 多模态模型
Claude/Codex ◀──────文本结果───────◀────────────────────────── Qwen-VL / GPT-4o / ...Quick Start
Recommended: launch directly with the bin/wrapper.sh script bundled in the repo. On first invocation, the wrapper automatically creates a .venv in the directory and installs dependencies (uv preferred; falls back to venv+pip if uv is absent), so no manual installation is needed; afterwards it execs the real server.py. Works on macOS / Linux.
# 方式一(推荐,免手动装依赖):MCP client 指向 wrapper 即可
claude mcp add vision-mcp -- /绝对/路径/vision-mcp/bin/wrapper.sh
# 或先自测:wrapper 会自举依赖并启动 server
/绝对/路径/vision-mcp/bin/wrapper.sh --checkOn Windows, use python -m venv + install.ps1, or just run python server.py.
Related MCP server: vision-mcp
Installation (build from source)
First install the MCP server itself (Python):
# Windows
powershell -ExecutionPolicy Bypass -File .\install.ps1
# macOS / Linux
./install.shThen connect it to your client:
Claude Code
claude mcp add vision-mcp -- \
python /绝对/路径/vision-mcp/server.pyCodex
codex mcp add vision-mcp -- \
python /绝对/路径/vision-mcp/server.pyAfter modifying the MCP config, restart the client for changes to take effect.
pi
cp pi-extensions/vision-mcp.ts ~/.pi/agent/extensions/
# 依赖:typebox(必需,工具参数模式定义);sharp(可选,图片缩放,未装则自动降级为不缩放)
cd ~/.pi/agent/extensions && npm i sharp typeboxAfter copying, restart pi or use /reload to load automatically; no pi install needed. pi extension supports capability gating: when the main model natively supports images (input includes image), the three vision tools are automatically hidden to avoid redundant delegation; they are only shown for text-only main models.
Configuration
Priority: config.json > process environment variables > .env > defaults. config.json is gitignored and not committed to the repo.
cp config.example.json config.json # 再编辑 api_key 等字段{
"api": "openai-completions",
"api_key": "sk-your-dashscope-api-key",
"base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"model": "qwen-vl-plus",
"max_tokens": 4096,
"timeout": 120,
"max_retries": 2,
"retry_backoff": 2
}pi extension additionally reads ~/.pi/vision-mcp/config.json (or a path specified via VISION_CONFIG_PATH), with the same keys as above.
Environment variable | Default value | Description |
|
| Backend API protocol: |
| - | Vision backend API key |
| dashscope | OpenAI-compatible endpoint |
|
| Vision model name |
|
| Max output tokens per request |
|
| Request timeout (seconds) |
|
| Transient failure retry count |
|
| Retry backoff base (seconds) |
|
| Per-image size limit (bytes) |
|
| Max image side length in px; scaled down proportionally if exceeded |
|
| Whether to auto-resize images |
|
| Whether to enable in-memory caching (same image + prompt reused within the LRU window, saving vision API calls) |
|
| Max cache entries |
Supported formats: PNG / JPEG / WebP / GIF (BMP is excluded because mainstream vision backends do not support it).
Common backends: DashScope (default) VISION_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1; OpenAI model=gpt-4o; local vLLM base_url=http://localhost:8000/v1.
Checking Configuration
# wrapper 方式(依赖未装则先自举)
./bin/wrapper.sh --check
# 源码自建(依赖手动安装后)
python server.py --check # 打印生效配置,API key 脱敏Tools
vision_analyze— general image understanding. Parameters:prompt(optional),image/image_path/image_url/image_base64(choose one of four).vision_ocr— extracts image text verbatim. Parameters same as analyze (no prompt).vision_analyze_batch— batch analysis of multiple images. Parameters:items(required; each item is one of the four image sources, may includeprompt),prompt(optional),concurrency(default 3, range 1-8).
Open Source
Released as open source; Fork / Issue / PR are welcome.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables any LLM to describe images from file paths, URLs, or base64 data by forwarding them to a supported vision provider such as OpenAI, Anthropic, or local Ollama models.1,06010MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server for image recognition and OCR via OpenAI-compatible vision APIs, supporting local files, URLs, and data URLs. Enables natural language image description and text extraction.3192MIT
- FlicenseAqualityCmaintenanceAn MCP server that adds visual understanding to text-only LLMs via image understanding, OCR, and image comparison tools, with multi-provider fallback and context-aware Focus Hint for precise descriptions.3
- AlicenseAqualityCmaintenanceMCP server that provides visual question answering, image description, object detection, OCR, and image manipulation tools using OpenAI-compatible vision models.12119GPL 2.0
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Peter-Lpt/vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server