MCP HydroCoder Vision
Allows generating CSS code from UI design screenshots and images using vision-based analysis to convert visual designs into styling code.
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 HydroCoder Vision Convert this UI screenshot into React code: /Users/dev/projects/layout.png"
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 HydroCoder Vision
English Installation | 中文安装 | 中文 README
A vision-language MCP server that enables Claude Code to analyze images using Qwen3 VL 4B model running locally via LM Studio.
Features
🔍 Image Analysis - Describe images in detail
📝 Text Extraction (OCR) - Extract text from images in multiple languages
💻 UI to Code - Generate HTML/CSS/JS code from UI/design screenshots
🏠 100% Local - All processing happens on your machine, no cloud API needed
⚡ Fast - Qwen3 VL 4B runs efficiently on 8GB VRAM
Related MCP server: screenshot-vision-mcp
Prerequisites
LM Studio installed and running
Qwen3 VL 4B model loaded in LM Studio
Node.js 18+
Installation
1. Clone the repository
git clone https://github.com/hydroCoderClaud/mcp-hydrocoder-vision.git
cd mcp-hydrocoder-vision2. Install dependencies
npm install3. Build the project
npm run buildConfiguration
1. Start LM Studio
Open LM Studio
Download and load
Qwen3-VL-4B-InstructmodelStart the local server (default:
http://localhost:1234)
2. Configure Claude Code
Add to your ~/.claude/settings.json:
{
"mcpServers": {
"hydrocoder-vision": {
"command": "npx",
"args": ["-y", "mcp-hydrocoder-vision"],
"env": {
"LM_STUDIO_URL": "http://localhost:1234/v1/chat/completions",
"VISION_MODEL": "Qwen3-VL-4B-Instruct"
}
}
}
}Usage
Available Tools
analyzeImage
Analyze an image and get a detailed description.
/analyzeImage imagePath: "C:/path/to/image.png" prompt: "What's in this image?"extractText
Extract text from an image (OCR).
/extractText imagePath: "C:/path/to/document.png" language: "English"describeForCode
Generate code from a UI/design screenshot.
/describeForCode imagePath: "C:/path/to/design.png" framework: "Vue"Environment Variables
Variable | Default | Description |
|
| LM Studio API endpoint |
|
| Model name to use |
Development
# Run in development mode (watch mode)
npm run dev
# Build for production
npm run build
# Start the built server
npm startTroubleshooting
"Request failed: ECONNREFUSED"
Make sure LM Studio is running
Check that the local server is enabled
Verify the
LM_STUDIO_URLis correct
"No response from model"
Ensure Qwen3 VL 4B model is loaded in LM Studio
Check LM Studio logs for errors
Try a simpler prompt first
Image not found
Use absolute paths
Ensure the file exists and is accessible
Check file permissions
License
MIT
Available Tools
3 toolsanalyzeImageB
Analyze an image and return a detailed description. Uses local Qwen3 VL 4B model via LM Studio.
Inputs: imagePath (required), prompt.
describeForCodeC
Analyze a UI/design image and generate corresponding code (HTML/CSS/JS, Vue, React, etc.).
Inputs: imagePath (required), framework.
extractTextC
Extract text from an image (OCR). Supports multiple languages.
Inputs: imagePath (required), language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: analyzeImage provides general image description, describeForCode generates code from UI images, and extractText performs OCR. There is no overlap in functionality, making tool selection straightforward for an agent.
The tools follow a consistent verb-based naming pattern (analyze, describe, extract) with clear objects (Image, ForCode, Text). While describeForCode uses a prepositional phrase, it remains readable and maintains a logical structure across the set.
Three tools is a minimal but reasonable count for a vision-focused server. It covers core image analysis tasks without being overly sparse, though additional tools like image editing or format conversion could enhance completeness.
The tools cover key vision tasks (description, code generation, OCR), but there are notable gaps such as image manipulation, format conversion, or batch processing. The surface is functional but not fully comprehensive for a vision domain.
Maintenance
Related MCP Connectors
MCP server for Qwen Image 3 AI image generation
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceA universal vision MCP server that enables Claude Code and Claude Desktop to describe images, extract text, and answer questions about images by converting visual content to text via multiple AI providers.37 npmMIT
- FlicenseAqualityDmaintenanceAn MCP server that captures screenshots of URLs or local app windows and analyzes them with a local Ollama vision model, enabling Claude to visually inspect web pages and desktop applications without sending image data externally.3-
- AlicenseNot gradedqualityCmaintenanceMCP server that adds Qwen3-VL vision capabilities to Claude Code or any MCP client, enabling OCR, UI/screenshot recognition, and chart understanding. It provides tools for analyzing single or batch images via DashScope's OpenAI-compatible API, with caching and fast mode.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables Claude Code and other MCP clients to analyze local images using Ollama's multimodal models, with privacy as images are processed locally.1MIT