vision-mcp
This server enables non-vision AI models to analyze images and capture screenshots using OpenRouter vision models.
Analyze Images: Send an image (local file path or URL) with a text prompt to a vision-capable OpenRouter model and receive a natural-language response. Local files are validated for size and path security, then encoded as base64 before being sent.
Capture Screenshots (Windows only): Take a screenshot of a running application window by specifying either its process name (e.g.
notepad) or Process ID (PID), using WindowsPrintWindowvia PowerShell.
Allows capturing screenshots of WezTerm windows on Windows via the screen tool, enabling analysis of terminal content through vision models.
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 and explain what it shows"
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
An MCP server that helps non-vision models extract and understand images and screenshots via OpenRouter multimodal models.
Features
analyze_image— Send an image (local file or URL) with a text prompt to any OpenRouter vision model and get a natural-language response.screen— Capture a screenshot of an application window by PID or process name (Windows only, usesPrintWindowvia PowerShell).
Related MCP server: Vision MCP Server
Prerequisites
Node.js 18+ (ESM)
An OpenRouter API key with access to a vision-capable model
Setup
# Clone and install
git clone <your-repo>
cd vision-mcp
npm install
# Configure environment
cp .env.example .envEdit .env and set your OpenRouter key and preferred model:
OPENROUTER_API_KEY=sk-or-v1-...
OPENROUTER_MODEL=google/gemini-2.0-flash-lite-preview-02-05:freeEnvironment variables
Variable | Required | Default | Description |
| Yes | — | Your OpenRouter API key |
| Yes | — | Model identifier (e.g. |
| No |
| API base URL override |
| No |
| Maximum allowed image size in MB |
Build & Run
npm run build
npm startThe server uses stdio transport and is designed to be launched by an MCP-enabled host (e.g. Claude, OpenCode). Example configuration block for your MCP client:
{
"mcpServers": {
"vision-mcp": {
"command": "npx",
"args": ["-y", "@forloopcodes/visionmcp"],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-...",
"OPENROUTER_MODEL": "google/gemma-4-31b-it:free"
}
}
}
}Tools
analyze_image
Analyze an image using a vision model.
Arguments:
Name | Type | Required | Description |
|
| Yes | Instruction for the vision model |
|
| Yes | Local file path or |
Local images are loaded, validated (size, path scope), and sent as base64 data URIs. Remote URLs are passed through directly.
screen
Capture a screenshot of a running application window (Windows only).
Arguments:
Name | Type | Required | Description |
|
| Yes | The capture action |
|
| No | Process name to find and capture (e.g. |
|
| No | Process ID to capture |
Provide either target or pid. The server uses PrintWindow via a compiled C# snippet invoked through PowerShell. Supports PW_RENDERFULLCONTENT for DPI-aware captures.
Screen capture requires theSystem.Drawing assembly and works on Windows only. The captured PNG is written to the system temp directory.
Architecture
src/
├── server.ts # MCP server entry point, tool routing
├── image.ts # Image loading, validation, base64 encoding
├── openrouter.ts # OpenRouter API client (multimodal chat completions)
├── types.ts # Shared TypeScript interfaces for API payloads
└── screen/
├── index.ts # Platform abstraction for screen capture
└── windows.ts # PowerShell + Win32 implementation (PrintWindow)The server runs on the Model Context Protocol SDK with stdio transport. Image analysis requests are forwarded to OpenRouter's /chat/completions endpoint with a 60-second timeout. Security boundaries are enforced at the image loader — only files within the working directory are accepted.
Security
Local image paths are checked against the project root to prevent directory traversal.
Screen captures are written to the OS temp directory (
$TMPDIR).The PowerShell execution uses
-ExecutionPolicy Bypassfor the embedded C# script; no external.ps1files are written to disk.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- 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.Last updated39810MIT
- 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.Last updated29117MIT
- AlicenseAqualityBmaintenanceGives vision-less LLMs the ability to recognize clipboard screenshots and images by proxying to an OpenAI-compatible vision model.Last updated1332MIT
- Alicense-qualityDmaintenanceEnables chat and image analysis through OpenRouter.ai models. Supports text chat, image generation, and analysis with multiple images and custom questions.Last updated254Apache 2.0
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Analyze images from multiple angles to extract detailed insights or quick summaries. Describe visu…
Read a URL as clean markdown, screenshot a website, url to PDF. Web access for agents, no signup.
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/forloopcodes/vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server