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>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。