Skip to main content
Glama

πŸ” MCP Vision Analyze

A lightweight Model Context Protocol (MCP) server that provides AI vision analysis capabilities. Analyze images using Google's Gemini models via OpenRouter.

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 (2.5 Flash Lite, 3 Flash Preview, etc.)

  • πŸ’° Ultra cheap β€” ~$0.001 per image with Gemini 2.5 Flash Lite

  • πŸ“ Extract text from screenshots (OCR)

  • πŸ› Diagnose error messages in screenshots

  • πŸ“Š Analyze charts, diagrams, and UI designs

  • πŸ”’ Secure β€” API key stays local, never sent anywhere except OpenRouter


Related MCP server: OpenRouter Image MCP Server

πŸ“¦ Pricing (OpenRouter)

Model

Input

Output

Best For

google/gemini-2.5-flash-lite

$0.10/M tokens

$0.40/M tokens

Default β€” cheapest

google/gemini-3.1-flash-lite

$0.25/M tokens

$1.50/M tokens

Better quality

google/gemini-3-flash-preview

$0.50/M tokens

$3.00/M tokens

Best reasoning

google/gemini-3.7-flash

$0.38/M tokens

$1.88/M tokens

Latest model

πŸ’‘ 1 image analysis β‰ˆ 1,300 input tokens + 150 output tokens β‰ˆ $0.001


πŸš€ 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 β€” no install needed)
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 install

3. Configure Your MCP Client

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "vision-analyze": {
      "command": "npx",
      "args": ["-y", "mcp-vision-analyze"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-your-key-here"
      }
    }
  }
}

Pi Agent (~/.pi/agent/mcp.json)

{
  "vision-analyze": {
    "transport": "stdio",
    "command": "node",
    "args": ["/absolute/path/to/mcp-vision-analyze/index.js"],
    "env": {
      "OPENROUTER_API_KEY": "sk-or-v1-your-key-here"
    },
    "directTools": true
  }
}

Claude Code CLI

# Option 1: Using the CLI command
claude mcp add vision-analyze \
  -e OPENROUTER_API_KEY=sk-or-v1-your-key-here \
  -- npx -y mcp-vision-analyze

# Option 2: Using JSON config
claude mcp add-json vision-analyze '{
  "command": "npx",
  "args": ["-y", "mcp-vision-analyze"],
  "env": {
    "OPENROUTER_API_KEY": "sk-or-v1-your-key-here"
  }
}'

Or 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-key-here"
      }
    }
  }
}

Antigravity

Add to Antigravity Settings β†’ MCP, or edit ~/.config/Antigravity/User/globalStorage/*/mcp.json:

{
  "mcpServers": {
    "vision-analyze": {
      "command": "npx",
      "args": ["-y", "mcp-vision-analyze"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-your-key-here"
      }
    }
  }
}

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "vision-analyze": {
      "command": "npx",
      "args": ["-y", "mcp-vision-analyze"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-your-key-here"
      }
    }
  }
}

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-key-here"
      }
    }
  }
}

Cline / Windsurf / Other MCP Clients

Add the server config with:

  • command: npx

  • args: ["-y", "mcp-vision-analyze"]

  • env: { "OPENROUTER_API_KEY": "your-key" }


πŸ› οΈ Usage

Once configured, the vision_analyze tool becomes available in your MCP client:

Analyze a Screenshot

{
  "image_url": "/path/to/screenshot.png",
  "prompt": "What is shown in this screenshot?"
}

Analyze an Image from URL

{
  "image_url": "https://example.com/image.jpg",
  "prompt": "Describe the architectural style of this building"
}

Extract Text (OCR)

{
  "image_url": "/path/to/photo.png",
  "prompt": "Extract all text from this image"
}

Diagnose an Error

{
  "image_url": "/path/to/error-screenshot.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"
}

πŸ“ Project Structure

mcp-vision-analyze/
β”œβ”€β”€ index.js            # MCP server main file
β”œβ”€β”€ package.json        # Node.js dependencies
β”œβ”€β”€ .env.example        # Environment variables template
β”œβ”€β”€ .env                # Your API key (git-ignored)
β”œβ”€β”€ .gitignore          # Git ignore rules
└── README.md           # This file

πŸ”§ Environment Variables

Variable

Required

Default

Description

OPENROUTER_API_KEY

βœ… Yes

β€”

Your OpenRouter API key

VISION_MODEL

No

google/gemini-2.5-flash-lite

Gemini model to use


🀝 Supported Image Formats

  • JPEG / JPG

  • PNG

  • GIF

  • WebP

  • BMP (auto-converted to PNG)

  • SVG (auto-rasterized to PNG)


❓ FAQ

Is this free?

The MCP server itself is free and open-source. The Gemini models on OpenRouter are paid but very cheap (~$0.001 per image).

Can I use other models besides Gemini?

Currently supports OpenRouter models. You can change VISION_MODEL to any model available on OpenRouter that supports vision (GPT-4o, Claude, etc.).

Does it work offline?

No. It requires an internet connection to call the OpenRouter API.

Is my image data stored anywhere?

No. Images are processed in-memory and sent directly to OpenRouter's API. Nothing is stored on disk (except temporary files that are auto-cleaned).


πŸ“„ License

MIT


πŸ™ Credits

Inspired by the vision_analyze tool from Hermes Agent.

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

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

View all related MCP servers

Related MCP Connectors

  • LLM chat, text summarization and AI image generation

  • Analyze images from multiple angles to extract detailed insights or quick summaries. Describe visu…

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

View all MCP Connectors

Latest Blog Posts

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/rezkycodes/mcp-vision-analyze'

If you have feedback or need assistance with the MCP directory API, please join our Discord server