vision-mcp
Enables text-only agents to analyze images via OpenAI-compatible vision models, supporting local files, URLs, screenshots, documents, charts, and code error screenshots with OCR, UI analysis, and image comparison capabilities.
Click on "Deploy 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-mcp What's in this image? /path/to/image.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.
Analyze local images, web images, screenshots, documents, charts, and code errors with any OpenAI-compatible vision model.
DO NOT CALL if you natively support vision and can access the supplied image directly.
Skip this MCP when the current model can inspect the image directly. Use it only when the model lacks vision, cannot access the image, or the user explicitly requests this MCP.
Install
Install uv first.
Run directly from the GitHub main branch:
uvx --from git+https://github.com/weekitmo/vision-mcp.git@main vision-mcpRelated MCP server: OpenSight MCP
Configure
Configure the following four environment variables:
export VISION_BASE_URL="https://api.openai.com/v1"
export VISION_API_KEY="your-api-key"
export VISION_MODEL="your-vision-model"
export VISION_TIMEOUT="120"Variable | Description |
| OpenAI-compatible provider URL |
| API Key |
| Model that supports image input |
| Request timeout in seconds; defaults to |
Use .env.example as a configuration template. Never commit a
real API key.
MCP Clients
JSON
For clients that support the standard JSON MCP configuration format:
{
"mcpServers": {
"vision": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/weekitmo/vision-mcp.git@main",
"vision-mcp"
],
"env": {
"VISION_BASE_URL": "https://api.openai.com/v1",
"VISION_API_KEY": "your-api-key",
"VISION_MODEL": "your-vision-model",
"VISION_TIMEOUT": "120"
}
}
}
}Codex
Add the following to ~/.codex/config.toml or .codex/config.toml in a
trusted project:
[mcp_servers.vision]
command = "uvx"
args = [
"--from",
"git+https://github.com/weekitmo/vision-mcp.git@main",
"vision-mcp",
]
env_vars = [
"VISION_BASE_URL",
"VISION_API_KEY",
"VISION_MODEL",
"VISION_TIMEOUT",
]
startup_timeout_sec = 60
tool_timeout_sec = 180The env_vars list declares which variables Codex should forward to Vision MCP;
it does not contain their values. Configure the upstream vision provider in the
same terminal before starting Codex:
export VISION_BASE_URL="https://api.openai.com/v1"
export VISION_API_KEY="your-api-key"
export VISION_MODEL="your-vision-model"
export VISION_TIMEOUT="120"These settings configure the provider used by Vision MCP. They are independent of the account or API key used by Codex itself. After exporting the variables, start Codex or verify that the MCP server is registered:
codex mcp listSee config/codex.toml.example for the complete
example.
DeepSeek Harness
Add the following patch entry to
$HOME/.dsh/profiles/web/cordis.patch.yml:
# Your patch layer for this dsh profile, applied after every bundle layer:
# a top-level YAML array of loader patch entries (id-targeted config
# overrides, disables, and insert lists; `!!js` expressions allowed).
# Vision MCP server (stdio). Exposes tools as mcp__vision__*.
# Image understanding / OCR via an OpenAI-compatible vision Chat Completions API.
# docs: https://github.com/weekitmo/vision-mcp
- insert:
- id: mcp-vision
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: vision
transport: stdio
command: uvx
args:
- '--from'
- 'git+https://github.com/weekitmo/vision-mcp.git@main'
- vision-mcp
env:
VISION_BASE_URL: 'https://api.openai.com/v1'
VISION_API_KEY: !!js process.env.VISION_API_KEY
VISION_MODEL: !!js process.env.VISION_MODEL
VISION_TIMEOUT: '120'Export VISION_API_KEY and VISION_MODEL before starting DeepSeek Harness.
Change VISION_BASE_URL if the vision model is hosted by another
OpenAI-compatible provider.
Grok
Add the following to ~/.grok/config.toml or the project's
.grok/config.toml:
[mcp_servers.vision]
command = "uvx"
args = [
"--from",
"git+https://github.com/weekitmo/vision-mcp.git@main",
"vision-mcp",
]
enabled = true
startup_timeout_sec = 60
tool_timeout_sec = 180
[mcp_servers.vision.env]
VISION_BASE_URL = "https://api.openai.com/v1"
VISION_API_KEY = "your-api-key"
VISION_MODEL = "your-vision-model"
VISION_TIMEOUT = "120"Grok does not use Codex's env_vars list. It uses
[mcp_servers.vision.env] to configure the MCP process environment directly.
The expected variable name is VISION_BASE_URL, not VISION_API_BASE_URL.
To avoid storing the API key directly in TOML, reference environment variables that are available when Grok starts:
[mcp_servers.vision.env]
VISION_BASE_URL = "${VISION_BASE_URL}"
VISION_API_KEY = "${VISION_API_KEY}"
VISION_MODEL = "${VISION_MODEL}"
VISION_TIMEOUT = "${VISION_TIMEOUT:-120}"These settings configure the provider used by Vision MCP. They are independent
of the account or API key used by Grok itself. Do not commit a project-level
.grok/config.toml that contains a real API key. Verify the configuration with:
grok mcp listSee config/grok.toml.example for the complete
example.
Inspector
Start MCP Inspector with:
./scripts/test-ui.shThe script pins @modelcontextprotocol/inspector@2.1.0.
In Inspector:
Open
vision-local.Enter the four
VISION_*settings underEnvironment Variables.Connect to the server.
Open
Tools.Select
analyze_imageorunderstand_image.Enter the image path and prompt, then run the tool.
Inspector stores its local configuration in .inspector/mcp.json, which is
excluded from Git.
mcporter
Initialize the project configuration:
./scripts/setup-mcporter.shInspect the available tools:
mcporter list vision --schema --all-parametersAnalyze one image:
mcporter call vision.analyze_image \
image=/absolute/path/to/screenshot.png \
prompt="Extract all text from this image" \
mode=ocr \
detail=high \
--timeout 120000Compare multiple images:
mcporter call vision.understand_image \
--args '{
"images": [
"/absolute/path/before.png",
"/absolute/path/after.png"
],
"prompt": "Compare the differences between these images",
"mode": "compare"
}' \
--timeout 120000 \
--output jsonRead the built-in documentation resources:
mcporter resource vision
mcporter resource vision vision://docs/quickstart
mcporter resource vision vision://docs/toolsTools
analyze_image
Analyze a single image. This tool is suitable for Inspector, mcporter, and command-line calls.
image Local path, HTTP(S) URL, or data URL
prompt Question or instruction for the model
mode Analysis mode
ascii_mode Whether to represent layouts with ASCII
detail Image input detail level
max_tokens Maximum output lengthunderstand_image
Analyze or compare multiple images. This tool also supports clients that use different image argument formats.
images List of images
prompt Question or instruction for the model
mode Analysis mode
ascii_mode Whether to represent layouts with ASCII
detail Image input detail level
max_tokens Maximum output lengthAvailable modes:
auto · describe · ocr · document · ui · chart · compare ·
spatial · code
PNG, JPEG, WEBP, and GIF are supported. Each call accepts up to 10 images.
From Source
For development or debugging:
git clone https://github.com/weekitmo/vision-mcp.git
cd vision-mcp
uv sync --frozen
uv run vision-mcpRun from source in an MCP client:
{
"mcpServers": {
"vision": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/vision-mcp",
"run",
"--frozen",
"vision-mcp"
],
"env": {
"VISION_BASE_URL": "https://api.openai.com/v1",
"VISION_API_KEY": "your-api-key",
"VISION_MODEL": "your-vision-model",
"VISION_TIMEOUT": "120"
}
}
}
}License
MIT
Available Tools
2 toolsanalyze_imageA
DO NOT CALL if you natively support vision and can access the supplied image directly. Call this MCP only when native vision is unavailable, the image source is inaccessible to your native vision capability, or the user explicitly requests this MCP or its configured provider.
Analyze one local image path, HTTP(S) image URL, or image data URL. This CLI-friendly single-image tool is the simplest entry point for mcporter and shell automation. Use understand_image for multiple images.
Inputs: image (required), mode, detail, prompt, +3 more.
understand_imageA
DO NOT CALL if you natively support vision and can access the supplied image directly. Call this MCP only when native vision is unavailable, the image source is inaccessible to your native vision capability, or the user explicitly requests this MCP or its configured provider.
Understand one or more images for description, OCR, document extraction, UI inspection, chart reading, comparison, spatial reasoning, or code/error screenshot analysis. Inputs may be local paths, HTTP(S) URLs, or image data URLs. Built-in prompt modes and optional ASCII rendering are available.
Inputs: mode, detail, images, prompt, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
Both tools analyze images, but analyze_image is for a single image while understand_image supports multiple images and more modes. The descriptions include cross-references, which helps, but the strong overlap in purpose could still confuse an agent.
Both tool names follow the same verb_noun pattern (analyze_image, understand_image) and are grammatically consistent, making the naming predictable.
With only two tools, the server feels thin for a vision MCP, though it covers both single-image and multi-image analysis. It is borderline but not severely under-scoped.
The two tools cover a broad range of vision tasks (description, OCR, document extraction, UI inspection, chart reading, etc.), leaving only minor gaps such as direct image metadata retrieval or manipulation.
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Create images & video from any MCP agent — 17 models, spend limits, one URL.
Related MCP Servers
- AlicenseAqualityDmaintenanceVisionPower enables AI agents to analyze images, read text from screenshots, and interpret charts using any OpenAI-compatible vision model. It supports local images, URLs, base64, and multiple images with order preservation.13MIT
- AlicenseNot gradedqualityDmaintenanceMulti-backend AI vision for MCP agents. Analyze images, screenshots, and documents using local Ollama models or cloud APIs like OpenAI, Google Gemini, and OpenRouter.MIT
- AlicenseAqualityDmaintenanceGives text-only LLMs vision capabilities via MCP, using vision models like Xiaomi MiMo-V2.5 to analyze images, describe content, and extract text through tools such as analyze_image, describe_image, and extract_text_from_image.31MIT
- AlicenseAqualityAmaintenanceMCP server that provides vision understanding to non-multimodal agents via 4 tools (analyze/describe/OCR image, list providers), supporting 13 vision providers with automatic fallback and secure URL handling.4281 npmMIT