mcp-vision-analyze
Provides AI vision analysis using Google Gemini models, enabling image understanding, OCR, error diagnosis, chart analysis, and UI design evaluation.
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., "@mcp-vision-analyze What's shown in this screenshot?"
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.
š MCP Vision Analyze
A lightweight Model Context Protocol (MCP) server for AI image vision analysis. Powered by OpenRouter (Google Gemini, Grok, and more).
Works with: Claude Desktop, Claude Code CLI, Antigravity, Cursor, Pi Agent, Windsurf, Cline, VS Code, and any MCP-compatible client.
⨠Features
š¼ļø Analyze images from local file paths or HTTP(S) URLs
š§ Powered by Google Gemini models via OpenRouter
š° Ultra cheap ā ~$0.0001 per image (free tier available)
š Extract text from screenshots (OCR)
š Diagnose error messages in screenshots
š Analyze charts, diagrams, and UI designs
š No rate limits ā production ready
š Secure ā API keys stay local, never stored externally
Related MCP server: OpenRouter Image MCP Server
š¦ Pricing (OpenRouter)
Model | Input | Output | Best For |
| $0.10/M tokens | $0.40/M tokens | Default ā cheapest |
| $0.25/M tokens | $1.50/M tokens | Better quality |
| $0.50/M tokens | $3.00/M tokens | Best reasoning |
| $0.38/M tokens | $1.88/M tokens | Latest model |
| $2.00/M tokens | $6.00/M tokens | Grok vision |
š” 1 image analysis ā 1,300 input tokens + 150 output tokens ā $0.0001 š” Free tier available ā no credit card needed to start
š Quick Start
1. Get an API Key
Sign up at OpenRouter and get your API key from openrouter.ai/keys.
2. Install
# Option A: Use directly with npx (recommended)
npx mcp-vision-analyze
# Option B: Clone and install manually
git clone https://github.com/rezkycodes/mcp-vision-analyze.git
cd mcp-vision-analyze
npm install3. Configure Your MCP Client
Choose your client below. Set OPENROUTER_API_KEY in the env block.
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"vision-analyze": {
"command": "npx",
"args": ["-y", "mcp-vision-analyze"],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-your-openrouter-key"
}
}
}
}Claude Code CLI
claude mcp add vision-analyze \
-e OPENROUTER_API_KEY=sk-or-v1-your-openrouter-key \
-- npx -y mcp-vision-analyze
# Or add to .mcp.json in your project rootOr add to .mcp.json in your project root:
{
"mcpServers": {
"vision-analyze": {
"command": "npx",
"args": ["-y", "mcp-vision-analyze"],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-your-openrouter-key"
}
}
}
}Antigravity
Add via Settings ā MCP, or edit ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"vision-analyze": {
"command": "npx",
"args": ["-y", "mcp-vision-analyze"],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-your-openrouter-key"
}
}
}
}Pi Agent (~/.pi/agent/mcp.json)
{
"vision-analyze": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "mcp-vision-analyze"],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-your-openrouter-key"
},
"directTools": true
}
}Cursor (.cursor/mcp.json)
{
"mcpServers": {
"vision-analyze": {
"command": "npx",
"args": ["-y", "mcp-vision-analyze"],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-your-openrouter-key"
}
}
}
}VS Code (~/.config/Code/User/mcp.json)
{
"servers": {
"vision-analyze": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-vision-analyze"],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-your-openrouter-key"
}
}
}
}OpenCode (~/.config/opencode/opencode.json)
{
"mcp": {
"vision-analyze": {
"type": "local",
"command": ["node", "/path/to/index.js"],
"environment": {
"OPENROUTER_API_KEY": "sk-or-v1-your-openrouter-key"
},
"enabled": true
}
}
}š ļø Usage
Once configured, the vision_analyze tool becomes available:
Basic ā Analyze a Screenshot
{
"image_url": "/path/to/screenshot.png",
"prompt": "What is shown in this screenshot?"
}Extract Text (OCR)
{
"image_url": "/path/to/photo.png",
"prompt": "Extract all text from this image"
}Diagnose an Error
{
"image_url": "/path/to/error.png",
"prompt": "What error is shown and how to fix it?"
}Use a Different Model
{
"image_url": "/path/to/image.png",
"prompt": "Analyze this chart",
"model": "google/gemini-3-flash-preview"
}Use Grok Vision
{
"image_url": "/path/to/image.png",
"prompt": "Describe this image",
"model": "x-ai/grok-4.5"
}š Project Structure
mcp-vision-analyze/
āāā index.js # MCP server (OpenRouter only)
āāā package.json # npm metadata
āāā .env.example # Config template
āāā .env # Your API keys (git-ignored)
āāā .gitignore # Git ignore rules
āāā LICENSE # MIT
āāā README.md # This fileš§ Environment Variables
Variable | Required | Default | Description |
| No |
| Provider (only |
| ā Yes | ā | OpenRouter API key |
| No |
| OpenRouter model |
š¦ Available Models
Model | Cost (input/output per M) | Quality |
| $0.10 / $0.40 | āāāā Best value |
| $0.25 / $1.50 | āāāā Great |
| $0.50 / $3.00 | āāāāā Best |
| $0.38 / $1.88 | āāāāā Latest |
| $2.00 / $6.00 | āāāā Grok |
š¤ Supported Image Formats
JPEG / JPG
PNG
GIF
WebP
BMP (auto-converted)
SVG (auto-rasterized)
ā FAQ
How much does it cost?
~$0.0001 per image analysis. Free tier available ā no credit card needed.
Can I use Grok for vision?
Yes! Set model: "x-ai/grok-4.5". Grok is not free on OpenRouter.
Does it work offline?
No. Internet connection required for API calls.
Is my image data stored?
No. Images are processed in-memory and sent directly to OpenRouter. Nothing is stored on disk.
š License
MIT
š Credits
Inspired by the vision_analyze tool from Hermes Agent.
Available Tools
1 toolvision_analyzeA
Analyze an image using AI vision (Gemini via OpenRouter). Accepts local file paths or HTTP(S) URLs. Returns a detailed text analysis of the image content.
Inputs: prompt (required), image_url (required), model.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 1 tool
The server has exactly one tool, so there is no possibility of confusing it with others. Its purpose is clearly stated and distinct.
The single tool follows a clean verb_noun pattern (vision_analyze), which is consistent and self-explanatory.
With only one tool, the server is extremely minimal and feels thin for broader workflows, though it is not trivial and adequately serves a focused purpose.
For a server dedicated solely to image analysis, the single tool fully covers the intended capability. There are no obvious missing operations within this narrow domain.
Maintenance
Related MCP Connectors
Image & PDF tools for AI agents: compress, convert, resize, PDF, AI vision, pipeline.
Analyze images and videos with Gemini to get fast, reliable visual insights. Handle content from Uā¦
Run AI-powered analysis on images including moderation, captioning, tagging, and more.
Search photos and video moments by visual meaning, people, dates, and folders across local libraries, Apple Photos, and OneDrive. Manage collections, groups, favorites, people, and duplicate review. Synced metadata remains searchable while the desktop is offline; local and Apple Photos media access needs the owning device online with remote access enabled. OneDrive media can be accessed directly from the cloud. OAuth or Bearer API keys. Paid Cloud Access required; hosted visual search uses prepaid credits. Text-in-image search is semantic matching, not guaranteed exact OCR. Setup: https://organizewith.ai/en/guides/connect-ai-assistants
Related MCP Servers
- FlicenseCqualityNot gradedmaintenanceEnables image captioning and analysis through natural language by processing images from URLs or local files. Supports both OpenRouter's Gemini 2.5 Flash and local vision models for generating concise, descriptive captions.4-
- AlicenseBqualityDmaintenanceEnables AI agents to analyze and understand images using OpenRouter's vision models. Supports screenshots, photos, diagrams, and web content with specialized tools for webpage and mobile app analysis.380 npm12MIT
- AlicenseAqualityDmaintenanceEnables image analysis and understanding using Vision Language Models through OpenAI-compatible APIs. Supports analyzing images from URLs or local files with custom prompts.12MIT
- AlicenseBqualityDmaintenanceEnables vision capabilities for any AI model by routing image analysis requests through OpenRouter's vision models. It provides tools to analyze images from URLs, local file paths, or base64 data.2379 npm19MIT