vision-mcp
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-mcpanalyze this image: ./screenshot.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
MCP server that gives text-only AI coding agents the ability to understand images and videos. Works with OpenCode, Claude Desktop, Claude Code, Cursor, VS Code, and any MCP-compatible client — including agents running on models without native vision.
agent (text-only) → vision-mcp → Gemini / Grok / OpenRouter → text descriptionWhy
Most coding agents run on strong text models (DeepSeek, Claude, etc.) that can't see images. When you paste a screenshot, a UI mockup, or an error screenshot, they say "I can't view images". vision-mcp fixes that: it takes the file, sends it to a vision-capable model, and returns a plain-text description the agent can reason over.
Related MCP server: vision-mcp
Features
2 tools:
analyze_imageandanalyze_video3 backends, automatic fallback: Gemini → Grok (xAI) → OpenRouter — first success wins, rest cancelled
Zero config file: keys come from environment variables only
Image preprocessing: auto-rotate (EXIF), downscale to ≤1024px, JPEG re-encode — small payloads, fast responses
Video support: ffmpeg keyframe extraction (up to 8 frames) with timestamps
Typed & tested: TypeScript, 21 unit/integration tests, MCP protocol verified over real stdio
No Python: pure Node.js (sharp for images, ffmpeg binary for video)
Requirements
Node.js ≥ 18
ffmpeg (for video analysis only; images work without it)
At least one of these API keys:
Backend | Env var | Get it |
Gemini (default) |
| |
Grok (xAI) |
| |
OpenRouter |
|
Install
npx from GitHub (recommended — no npm publish needed)
# Run directly (no install)
npx -y github:pongsakornp/vision-mcpnpx clones the repo, installs deps, auto-builds via the
preparescript, and runs the server over stdio.
From source
git clone https://github.com/pongsakornp/vision-mcp.git
cd vision-mcp
npm install
npm run buildUsage
MCP client config
OpenCode (opencode.jsonc):
{
"mcp": {
"vision-mcp": {
"type": "local",
"command": ["npx", "-y", "github:pongsakornp/vision-mcp"],
"environment": {
"GEMINI_API_KEY": "AIza...",
"XAI_API_KEY": "xai-...",
"OPENROUTER_API_KEY": "sk-or-..."
},
"enabled": true
}
}
}Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"vision-mcp": {
"command": "npx",
"args": ["-y", "github:pongsakornp/vision-mcp"],
"env": {
"GEMINI_API_KEY": "AIza..."
}
}
}
}VS Code / Cursor (.vscode/mcp.json or workspace):
{
"servers": {
"vision-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:pongsakornp/vision-mcp"],
"environment": {
"GEMINI_API_KEY": "AIza..."
}
}
}
}Keys live in the MCP config — no shell profile edits needed. Keep the config out of git if it contains keys.
CLI (for scripting / debugging)
# Spawn the server and talk JSON-RPC over stdio
GEMINI_API_KEY=AIza... node dist/index.jsTools
analyze_image(path, prompt?)
Analyze an image file (png, jpg, jpeg, webp, bmp, gif, avif, tiff). Path can be absolute, relative, or ~/....
analyze_video(path, prompt?)
Analyze a video (mp4, webm, mov, avi, mkv, flv, wmv, m4v). Extracts up to 8 evenly-spaced keyframes with ffmpeg, then describes the sequence.
Configuration
Env var | Default | Description |
| — | Gemini API key (tried first) |
| — | Grok/xAI API key (tried second) |
| — | OpenRouter key (tried last) |
|
| Gemini model override |
|
| Grok model override |
|
| OpenRouter model override |
|
| Per-backend request timeout |
Backend behavior
Only backends with keys configured are launched.
All configured backends run in parallel; the first success wins and the rest are cancelled.
If all fail, the error reports every backend's failure for diagnosis.
Development
npm run build # compile TypeScript → dist/
npm test # run the 21 tests (vitest)
npm run typecheck # tsc --noEmitTest coverage: config parsing, backend fallback logic, path resolution, image preprocessing (sharp), video keyframe extraction (real ffmpeg), and the full MCP stdio protocol.
License
MIT — see LICENSE.
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
- AlicenseAqualityDmaintenanceEnables AI agents to analyze images, extract text, compare images, and analyze video through any OpenAI-compatible vision model.46019MIT
- AlicenseAqualityBmaintenanceGives text-only coding agents the ability to 'see' images, videos, and screenshots by routing them to a vision model and returning structured text.863MIT
- AlicenseAqualityAmaintenanceEnables text-only coding agents to analyze local images using a dedicated vision provider, returning markdown and structured JSON evidence for screenshots, diagrams, UI mockups, and error captures.1137210MIT
- FlicenseAqualityBmaintenanceProvides image understanding capabilities to coding models without vision support by automatically invoking a vision model and returning text descriptions, enabling seamless context-aware coding with images.12
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Generate images, GIFs, and PDFs from HTML, URLs, or templates — from your AI agent.
Give AI coding agents access to your Vynix visual feedback, bug reports, and AI diagnosis.
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/pongsakornp/vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server