eyes-mcp
Gives text-only LLMs local vision by providing a local VLM and OCR via MCP, enabling agents to analyze screenshots and extract text from images.
README
<div align="center">
<img src="https://cdn.jsdelivr.net/gh/JamesbbBriz/eyes-mcp@main/docs/cover.webp" width="880" alt="eyes-mcp">
eyes-mcp
Give any text-only LLM eyes. Local vision for your coding agent.
One command · zero API keys · nothing leaves your machine
DeepSeek, GLM, Qwen-Coder, Llama… great models, all blind.
</div>
❌ Without eyes
You paste a screenshot into your agent (running a text-only model via Claude Code / Codex / Cursor):
> Here's the error in my UI, fix it [screenshot.png]
I'm sorry — I cannot see images. Please describe the error in text.
✅ With eyes
The agent calls a local VLM + OCR instead, and reads the screenshot itself:
> Here's the error in my UI, fix it [screenshot.png]
I see a React hydration error in `CartDrawer.tsx:142`. The OCR shows:
"Hydration failed because the server rendered HTML didn't match the client." …
Quickstart
git clone https://github.com/JamesbbBriz/eyes-mcp
cd eyes-mcp && ./scripts/install.sh
That's it. The installer:
- asks which model you want, with a recommendation computed from your RAM and GPU (skip the question with
EYES_PRESETor--yes), - installs deps and downloads the model (~0.3 to 3.5GB, resumable),
- detects which of your agents run text-only models, by reading your Claude Code / Codex / Cursor configs and checking each model against a modality database,
- registers eyes-mcp only where it's needed. Multimodal agents are skipped automatically.
# options:
EYES_PRESET=fast ./scripts/install.sh # Qwen3.5-0.8B, natively multimodal
HF_ENDPOINT=https://hf-mirror.com ./install.sh # mainland-CN mirror
./install.sh --yes # accept all recommendations, no prompts
./install.sh --dry-run # preview without changing anything
Just want the modality check? python3 scripts/detect_modality.py
Requires: Python ≥3.11, llama.cpp (brew install llama.cpp), ~1GB RAM.
Manual registration
Skipped auto-install, or an agent the installer doesn't know? Add it by hand.
Claude Code (~/.claude.json → mcpServers):
"eyes-mcp": {
"command": "uv",
"args": ["--directory", "/ABS/PATH/eyes-mcp", "run", "eyes-mcp"],
"env": { "EYES_PRESET": "lfm-450m" }
}
Codex (~/.codex/config.toml):
[mcp_servers.eyes-mcp]
command = "uv"
args = ["--directory", "/ABS/PATH/eyes-mcp", "run", "eyes-mcp"]
env = { EYES_PRESET = "lfm-450m" }
Cursor (.cursor/mcp.json): same shape as Claude Code.
Restart the agent, then ask: "what's in this screenshot?"
Tools
| Tool | Engine | Use for |
|---|---|---|
analyze_image(path, question?) |
VLM via llama.cpp | Descriptions, UI understanding, visual Q&A |
ocr_image(path) |
RapidOCR (onnx) | Dense text: terminals, documents, tables; fast and precise |
Model presets
| Preset | Model | Download | RAM | License | Notes |
|---|---|---|---|---|---|
nano |
SmolVLM2-256M | ~0.3GB | ~1GB | Apache-2.0 | smallest useful VLM |
lfm-450m (default) |
LFM2.5-VL-450M | ~0.4GB | ~1.2GB | Liquid | tested; fastest startup |
fast |
Qwen3.5-0.8B | ~0.7GB | ~1.8GB | Apache-2.0 | natively multimodal (image + video) |
ocr |
GLM-OCR | ~1.4GB | ~3.5GB | MIT | dense text / document champion (3M+ downloads/mo) |
strong |
Qwen3.5-2B | ~2GB | ~3.5GB | Apache-2.0 | best quality/size balance |
xstrong |
Qwen3.5-4B | ~3GB | ~6GB | Apache-2.0 | max tier (GPU advised) |
Hidden extras (still one command): smol500 (SmolVLM2-500M), paddle (PaddleOCR-VL-1.6), qwen3-2b (Qwen3-VL-2B).
Any other GGUF works too. Point the env at it and skip presets entirely:
EYES_MODEL_DIR=~/models/my-vlm VLM_MODEL_FILE=model-Q4.gguf VLM_MMPROJ_FILE=mmproj.gguf
Good candidates not shipped as presets: LFM2.5-VL-1.6B/3B, InternVL3.5-2B/4B, MiniCPM-V-4.6, DeepSeek-OCR, dots.ocr, gemma-3n-E2B, moondream2. Anything llama.cpp supports with an mmproj file works.
Switch anytime: set EYES_PRESET and run ./scripts/download_models.sh again. Not sure which? python3 scripts/choose_model.py shows your RAM/GPU and marks a recommendation.
How it works
Claude Code / Codex / Cursor
│ MCP stdio
▼
eyes-mcp (stateless, mcp SDK 2.x)
├─ analyze_image → llama.cpp llama-server (local VLM) "understand"
└─ ocr_image → RapidOCR (onnx, ~20MB) "extract text"
- Lifecycle follows your agent: the VLM server spawns when the MCP starts and shuts down when your agent exits, so you never end up with orphan processes or a daemon to babysit.
- Floating port: the VLM never binds a fixed port (goodbye, "8080 already in use"), so it coexists with your other local services.
- External VLM reuse: if you already run one at
VLM_BASE_URL, eyes-mcp uses it instead of spawning its own.
Why
The cheapest and best coding models right now (DeepSeek-V4-Flash, GLM-5.x, Qwen-Coder) are text-only. Every harness assumes you can paste a screenshot, and every one of these models silently fails at it. eyes-mcp is the missing sidecar: a small local VLM plus OCR, wrapped in the lifecycle your agent already understands.
Roadmap
- [ ] Lazy VLM start (spawn on first tool call, not MCP start)
- [ ]
screenshot_analyze(grab the screen, no file needed) - [ ] PDF pages → vision
- [ ]
npx eyes-mcpone-liner installer - [ ] Per-model prompt templates (llama.cpp OCR models need specific prompts)
FAQ
Does my agent model matter? Only in that it must be text-only for this to be useful. Multimodal models (GPT, Claude, GLM-V) already see images, so don't bother.
GPU needed? No. It runs fine on CPU, and llama.cpp picks up Apple Metal or CUDA automatically when present.
Where are models stored? ~/.eyes-mcp/models/<preset>/. Delete them to reset.
License
MIT. Model weights keep their own licenses (see preset table); they're downloaded at install time, never redistributed here.
<div align="center"> <sub>Built for everyone running great models that can't see.</sub> </div>
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.