MCP Read Images
An MCP server for analyzing images using OpenRouter vision models. This server provides a simple interface to analyze images using various vision models like Claude-3.5-sonnet and Claude-3-opus through the OpenRouter API.
Installation
Configuration
The server requires an OpenRouter API key. You can get one from OpenRouter.
Add the server to your MCP settings file (usually located at ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json for VSCode):
Usage
The server provides a single tool analyze_image that can be used to analyze images:
Model Selection
The model is selected in the following order of precedence:
Model specified in the tool call (
modelargument)Model specified in MCP settings (
OPENROUTER_MODELenvironment variable)Default model (anthropic/claude-3.5-sonnet)
Supported Models
The following OpenRouter models have been tested:
anthropic/claude-3.5-sonnet
anthropic/claude-3-opus-20240229
Features
Automatic image resizing and optimization
Configurable model selection
Support for custom questions about images
Detailed error messages
Automatic JPEG conversion and quality optimization
Error Handling
The server handles various error cases:
Invalid image paths
Missing API keys
Network errors
Invalid model selections
Image processing errors
Each error will return a descriptive message to help diagnose the issue.
Development
To build from source:
License
MIT License. See LICENSE for details.
Related MCP Servers
- AsecurityAlicenseAqualityThis MCP server aids users in searching and analyzing their photo library by location, labels, and people, offering functionalities like photo analysis and fuzzy matching for enhanced photo management.Last updated -23MIT License
- AsecurityAlicenseAqualityMCP OpenVision is a Model Context Protocol (MCP) server that provides image analysis capabilities powered by OpenRouter vision models. It enables AI assistants to analyze images via a simple interface within the MCP ecosystem.Last updated -111MIT License
- -security-license-qualityAn MCP server that analyzes webpage design images using vision models and generates development documentation in Markdown format.
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants to analyze images using OpenRouter vision models through a simple interface.Last updated -411MIT License