VLM MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
VLM MCP Server
Why This Project?
When using Claude Code with third-party models, they are typically text-only models without image processing capabilities. Adding an MCP server with image processing capability is essential for tasks that require visual understanding.
This project enables users to select their own Vision-Language Model (VLM) for image processing.
Related MCP server: vision-mcp
Features
extract_text_from_image: Extract text from images (OCR)
ui_to_artifact: Convert UI screenshots to code, prompts, design specs, or descriptions
extract_text_from_screenshot: Extract text from screenshots with code recognition support
diagnose_error_screenshot: Analyze error screenshots and diagnose issues
understand_technical_diagram: Analyze technical diagrams (architecture, flowcharts, UML, etc.)
analyze_data_visualization: Analyze data visualization charts
ui_diff_check: UI comparison to detect visual differences
analyze_image: General-purpose image analysis
Environment Variables
Variable | Required | Description |
| Yes | API key |
| No | Custom API endpoint (default: https://api.openai.com/v1) |
| No | Model to use (default: gpt-4o) |
| No | Maximum image size (default: 3MB). Images exceeding this size will be automatically compressed before processing. Supported formats: |
Quick Start
Using uvx (Recommended)
# Copy config template and fill in your API Key
cp .env.example .env
# Edit .env file and fill in VLM_API_KEY
# Run directly (will automatically load .env file)
uvx vlm-mcpUsing pip
# Install
pip install vlm-mcp
# Or install in development mode
pip install -e .Configure Environment Variables
# OpenAI
export VLM_API_KEY=sk-xxx
export VLM_MODEL=gpt-4o
# Custom API (e.g., Ollama)
export VLM_API_KEY=your-api-key
export VLM_BASE_URL=http://localhost:11434/v1
export VLM_MODEL=qwen2.5-vlRun the Server
# Run directly
python -m vlm_mcp
# Or use installed command
vlm-mcpSupported Models
Any VLM model compatible with OpenAI Chat Completions API:
gpt-4o
gpt-4o-mini
gpt-4-turbo
qwen2.5-vl series
Other OpenAI API compatible models
Claude Code Configuration
1. Configure MCP Server
Add the following to your Claude Code configuration:
{
"mcpServers": {
"vlm-mcp": {
"command": "uvx",
"args": ["vlm-mcp"],
"env": {
"VLM_API_KEY": "your-api-key",
"VLM_BASE_URL": "https://api.openai.com/v1",
"VLM_MODEL": "gpt-4o",
"VLM_MAX_IMAGE_SIZE": "5MB"
}
}
}
}2. Configure CLAUDE.md
To ensure Claude Code uses MCP tools for reading images instead of the built-in Read tool, add the following to your project or global CLAUDE.md:
## MCP Priority
1. Use mcp tools to read images instead of claude code's read tool.Usage Examples
In Claude Code:
Please use extract_text_from_image tool to analyze this image /path/to/image.jpg and extract the text.Please use ui_to_artifact tool to convert this UI screenshot to React code.Inspired by the approach used by Zhipu AI.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models. Up to 4 images per call, SVG vectorization, background removal, upscaling and image-to-video. Remote MCP with OAuth, no API keys.
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models and 10 tools: up to 4 images per call, SVG vectorization, editing and more. Remote MCP with OAuth, no API keys. Pay per image, no subscription.
Run AI-powered analysis on images including moderation, captioning, tagging, and more.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI clients like Claude to understand, analyze, and describe local images via VL models through the MCP protocol.-
- AlicenseNot gradedqualityCmaintenanceProvides vision capabilities to text-only LLMs via MCP, enabling image understanding, Q&A, OCR, and image processing through cloud multimodal APIs.MIT
- AlicenseNot gradedqualityDmaintenanceProvides image understanding capabilities via local OCR and cloud VLM, enabling text extraction and visual description through MCP.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables private, self-hosted multimodal image recognition for MCP clients, supporting image analysis, OCR, diagram understanding, and UI-to-code conversion via OpenAI-compatible VLM backends.1MIT