omni-vision-pro
This server provides MCP tools to give text-only coding models visual and code context from images, source code, and ZIP archives. It supports:
Analyze Images (
analyze_images): Process one or more images (up to 10) in order, using Gemini → OpenAI → local Tesseract OCR fallback. Accepts local paths, file URLs, inline base64 data URLs, and OpenCode attachments. Returns UI hierarchy, visible text, colors, layout, accessibility issues, and reusable components. Optionally provide a custom analysis prompt. The local OCR mode is free and prevents sending data to cloud providers.Read Code Context (
read_code_context): Read a source file or directory, returning a clean file tree and text contents. Automatically skips symlinks, vendor/build folders, binaries, and common secret files (e.g.,.env, private keys,node_modules,.git,dist). Configurable up to 120 files and 1 MB output.Read ZIP Context (
read_zip_context): Safely inspect ZIP archives in memory without extraction, providing a virtual file tree and text file contents. Validates for path traversal, entry counts, size discrepancies, compression ratio, CRC-32 integrity, duplicate paths, and encryption. Filters out binaries, secrets, and junk files. Configurable up to 120 files and 1 MB output.Provider Selection: Choose from local OCR, Gemini, OpenAI, or combined (Gemini then OpenAI) for image analysis.
Client Support: Configure for Codex, OpenCode, Claude Code, Cursor, VS Code, and Claude Desktop.
Security: API keys stored in a private settings file, path restrictions enforced, and cloud transmission avoided in OCR mode.
Click on "Install 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., "@omni-vision-proanalyze this screenshot: ~/Desktop/screenshot.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.
Quick start
You need Node.js 20.10 or newer. Install the MCP server once; local OCR works immediately without an API key.
1. Install once from an AI chat
Paste this command into Codex, OpenCode, Claude Code, Cursor, or VS Code chat and ask it to run it:
npx --yes omni-vision-pro@latest setup --yesThat command detects the editor that launched it, installs a private version-pinned runtime, updates only that editor's MCP configuration, and verifies all three tools. It will not silently change every installed editor. Setup is now finished; adding or changing an API key later does not reinstall the MCP server.
To choose the client yourself, or intentionally configure every supported client:
npx --yes omni-vision-pro@latest setup --target cursor
npx --yes omni-vision-pro@latest setup --target vscode
npx --yes omni-vision-pro@latest setup --target allRestart or reload the AI client once, then ask:
Use omni-vision-pro to analyze this screenshot. Return the visible text, UI hierarchy, layout, colors, interactions, accessibility issues, and reusable components.With no cloud key, images are processed locally with Tesseract OCR.
2. Add Gemini or OpenAI later - optional
Open PowerShell or a terminal and run:
npx --yes omni-vision-pro@latest providerThe simple menu lets you choose Gemini or OpenAI and paste the key into a hidden prompt. Saving a key selects that provider immediately. Restart or reload the AI client, and Omni will use AI vision first with automatic local OCR fallback.
The same menu can add, replace, or remove keys; switch between Gemini and OpenAI; show the current status; or turn AI off and back on. It never changes the MCP client configuration, so setup remains a one-time job.
Add a key safely from an AI chat
Copy only a Gemini or OpenAI key to the clipboard, then ask the AI chat to run:
npx --yes omni-vision-pro@latest provider set --from-clipboardOmni recognizes the provider, stores the key in its private settings, and selects it. The key is never placed in chat text, command arguments, shell history, or client JSON/TOML.
Windows and macOS clipboard support works out of the box. Linux needs
wl-pasteorxclip.
You can also control AI from the chat without exposing a key:
# Keep saved keys, but process images locally with OCR
npx --yes omni-vision-pro@latest provider off
# Turn AI back on and use any configured provider
npx --yes omni-vision-pro@latest provider on
# Show the active mode and which keys are configured
npx --yes omni-vision-pro@latest provider statusRestart or reload the AI client after changing provider settings.
Run the first setup yourself
For a guided client selection prompt, run:
npx --yes omni-vision-pro@latest setupCheck the result at any time:
npx --yes omni-vision-pro@latest doctorRelated MCP server: mcp-vision
What it does
Capability | What you get |
Image context | One screenshot or an ordered batch, with a result for every index. |
Attachment recovery | A three-tier resolver checks explicit input, the active editor's attachment cache, then recent OS temporary/clipboard cache files. |
UI analysis | Structured JSON for layout, components, text, typography, colors, spacing, interactions, accessibility, and uncertainties. |
Code context | A clean file tree followed by safe text contents from a file or directory. |
ZIP context | In-memory ZIP inspection without extracting files to disk. |
Local measurements | Resized dimensions, dominant color, and a compact palette measured with |
Automatic vision | Local OCR works by default. Add a Gemini or OpenAI key later to enable AI vision; cloud failures fall back to OCR. |
No special image folder is required. If a client has the image bytes only in memory, pass an inline data:image/...;base64,... reference.
Smart image auto-detection
analyze_images can be called with an explicit path, an ordered path array, or no path at all:
Explicit input - absolute paths, relative paths,
file://URLs, Markdown image links, and inline Base64 image data are tried first.Active editor cache - Omni detects Codex, OpenCode, Claude Code/Desktop, Cursor, or VS Code and searches only that client's known attachment locations.
Recent temporary fallback - if the first two tiers miss, Omni scans the OS temp directory and clipboard-style cache folders for supported images created or modified during the last 10 minutes.
Automatic scans are bounded, ignore symlinks and project/vendor folders, and never search Desktop, Documents, Downloads, or arbitrary source directories. Multiple auto-detected images are returned oldest-to-newest so the result order matches their attachment order. Explicit paths are allowed to reference older images because the user selected them intentionally.
Clients
Client | Auto setup | Manual path | Notes |
Codex CLI, desktop, or IDE | Yes | Yes | Automatic setup uses the |
OpenCode | Yes | Yes | Project and user |
Claude Code | Yes | Yes | Automatic setup uses the |
Cursor | Yes | Yes | User or project |
Visual Studio Code | Yes | Yes | Automatic setup writes the user or workspace |
Claude Desktop | Yes | Yes | Automatic setup safely merges the user-wide |
Automatic setup targets one active client by default. Use --target all only when you intentionally want every supported client configured.
Provider controls
Client setup and vision-provider settings are separate. Install the MCP server once, then change providers whenever you want without reinstalling it.
Current setting | Processing order | What it means |
No API key | Tesseract OCR | Free local text extraction works immediately. |
| Configured Gemini, configured OpenAI, then OCR | Uses every available fallback automatically. |
| Gemini, then OCR | Prefer Gemini and keep local OCR as the safe fallback. |
|
| Prefer low-detail OpenAI vision and keep local OCR as the safe fallback. |
| Tesseract OCR only | Never calls Gemini or OpenAI, even when keys remain saved. |
Run the friendly terminal menu at any time:
npx --yes omni-vision-pro@latest providerAdding or replacing a key selects that provider. Turning AI off keeps the keys for later; turning it back on does not require pasting them again. If a cloud request fails, reaches quota, or becomes unavailable, the image is retried with local OCR instead of crashing the MCP server.
OpenAI image handling
When OpenAI is enabled, the server applies EXIF orientation, limits the prepared image to 1024px wide and 4096px tall, compresses it to JPEG or PNG with sharp, and sends gpt-4o-mini with explicit detail: "low", one completion, and a default 600-token output ceiling. These are strong cost guardrails designed for sub-cent analysis and approximately sub-$0.001 requests under current pricing, but no third-party billing amount can be guaranteed permanently.
OpenAI documents that low detail gives the model a 512px low-resolution view. Layout, larger text, component hierarchy, and locally measured color palettes remain useful; tiny text, exact coordinates, and pixel-perfect reconstruction are best-effort. Local sharp measurements are included separately so dominant and palette colors do not depend only on the low-detail model view.
Gemini model handling
The default compatibility path tries gemini-1.5-flash and then the configured fallback. To choose a current model directly, set:
GEMINI_MODEL=gemini-2.5-flashCloud analysis receives only the resized image. Source files and ZIP contents stay local to this server.
MCP tools
Tool | Input | Output |
| Optional | Delimited blocks beginning |
|
| A file tree and readable source contents. |
|
| A virtual tree and readable archive contents without extraction. |
Analyze screenshots
{
"image_paths": [
"C:/Screenshots/home.png",
"C:/Screenshots/settings.png"
],
"prompt": "Focus on responsive layout, reusable components, and accessibility."
}Images are processed sequentially in the exact supplied order. A failed image gets its own result and does not discard later images.
To analyze the newest attachment without supplying a path:
{}To recover several recent attachments automatically:
{
"max_auto_images": 3,
"prompt": "Compare the responsive states in upload order."
}Read a project folder
{
"path": "C:/Projects/my-app/src",
"max_files": 80,
"max_output_bytes": 750000
}Read a ZIP safely
{
"path": "C:/Downloads/my-app.zip",
"max_files": 80,
"max_output_bytes": 750000
}Manual client setup
The MCP launch command is:
npx --yes omni-vision-pro@latest serveManual setup is useful when a client is not detected, when you want a project-only entry, or when you are configuring VS Code or Claude Desktop.
User-wide CLI setup:
codex mcp add omni-vision-pro -- npx --yes omni-vision-pro@latest serveOr add this to ~/.codex/config.toml (or .codex/config.toml in a trusted project):
[mcp_servers.omni-vision-pro]
command = "npx"
args = ["--yes", "omni-vision-pro@latest", "serve"]
startup_timeout_sec = 120
tool_timeout_sec = 1200
enabled = trueThe Codex desktop app and IDE extension share this configuration. Restart or start a new session, then check /mcp.
Add this to a project opencode.json or opencode.jsonc, or to the user config at ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"omni-vision-pro": {
"type": "local",
"command": ["npx", "--yes", "omni-vision-pro@latest", "serve"],
"enabled": true,
"timeout": 600000
}
}
}On Windows, ~ means your user folder. Restart OpenCode and run opencode mcp list.
User-wide setup:
claude mcp add --scope user --transport stdio omni-vision-pro -- npx --yes omni-vision-pro@latest serveProject setup from the project root:
claude mcp add --scope project --transport stdio omni-vision-pro -- npx --yes omni-vision-pro@latest serveProject entries live in .mcp.json and may require approval. Verify with claude mcp list.
One-click install:
Or put this in ~/.cursor/mcp.json for all projects or .cursor/mcp.json for one project:
{
"mcpServers": {
"omni-vision-pro": {
"type": "stdio",
"command": "npx",
"args": ["--yes", "omni-vision-pro@latest", "serve"]
}
}
}Reload the window, then open Settings > Tools & MCP and enable the server if needed.
Run MCP: Add Server from the Command Palette, or create .vscode/mcp.json:
{
"servers": {
"omni-vision-pro": {
"type": "stdio",
"command": "npx",
"args": ["--yes", "omni-vision-pro@latest", "serve"]
}
}
}Start it from the inline action, run MCP: List Servers, and approve the trust prompt. See the VS Code MCP guide.
Add this to claude_desktop_config.json:
{
"mcpServers": {
"omni-vision-pro": {
"command": "npx",
"args": ["--yes", "omni-vision-pro@latest", "serve"]
}
}
}Common locations:
Windows:
%APPDATA%\\Claude\\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Completely quit and reopen Claude Desktop after saving.
Privacy and safety
Data | Where it goes |
No key or AI off | Processed locally with Tesseract. Saved keys are not used. |
Gemini mode | A resized image is sent to Google. |
OpenAI mode | A resized low-detail image is sent to OpenAI. |
Code and ZIP context | Read locally and returned to the MCP host; not sent directly to vision providers. |
API keys | Stored in the private Omni |
The MCP host may include returned text in its own model context under that host's privacy policy.
Built-in safeguards include:
no filesystem extraction for ZIP files;
path traversal, duplicate, encryption, CRC, compression-ratio, and ZIP bomb checks;
no symlink traversal;
automatic omission of
node_modules,.git,dist,build,.next, binaries, and common secret files such as.env,id_rsa, and private keys;bounded image-cache scans and image-size limits; and
absolute host paths hidden from normal results unless
OMNI_INCLUDE_ABSOLUTE_PATHS=trueis set.
Returned source and archive contents are marked as untrusted data. The consuming model must not follow instructions found inside them.
Private settings
Most users should use npx --yes omni-vision-pro@latest provider. If you prefer manual configuration, provider settings are stored here:
Windows:
%APPDATA%\omni-vision-pro\.envmacOS/Linux:
${XDG_CONFIG_HOME:-~/.config}/omni-vision-pro/.env
Create the file if it does not exist. The easiest setup is one line for the provider you want:
GEMINI_API_KEY=your_gemini_keyor:
OPENAI_API_KEY=your_openai_keySave the file and restart the AI client. With no OMNI_VISION_PROVIDER line, automatic mode is used: a saved key enables AI vision and local OCR remains the final fallback.
If both keys are saved, automatic mode tries Gemini, then OpenAI, then local OCR. You can make that choice explicit:
OMNI_VISION_PROVIDER=autoPrefer one saved provider before OCR:
OMNI_VISION_PROVIDER=geminior:
OMNI_VISION_PROVIDER=openaiForce free local OCR while keeping saved keys:
OMNI_VISION_PROVIDER=ocrNever pass API keys as command arguments. Use the hidden terminal prompt, clipboard import, environment variables, or this private file. The CLI rejects key flags because shell history and process lists can expose them.
Useful optional controls:
Variable | Purpose |
| Restrict code/ZIP reading to these roots. Use |
| Include absolute paths in normal image/context output. |
| Select the Gemini model. |
| Select the Gemini fallback model. |
| Maximum images per request, default |
| Auto-detection window, default and maximum |
| OpenAI output ceiling, default |
| Cloud request timeout, default |
| OCR request timeout, default |
The server also accepts a project .env, and only allowlisted settings are loaded. Omni's private provider mode is authoritative so provider off stays reliable. For API keys and other settings, process variables keep the highest priority, followed by the project and private .env files.
Troubleshooting
Symptom | Try this |
Clipboard import cannot find the key | Copy only the Gemini/OpenAI key, then run |
A key was added but OCR is still active | Run |
The wrong AI provider is being used | Run |
The client cannot find | Install Node.js 20.10+, restart the client, or replace |
The server is installed but not visible | Run |
An image attachment is not found | Call |
OCR takes too long | The first OCR request starts a local worker. Keep client tool timeouts above 90 seconds; image arrays run sequentially. |
Gemini reports a retired model | Set |
Code or ZIP access is denied | If |
A config entry looks wrong | Setup preserves unrelated settings and creates backups before changing JSON/JSONC client files. |
Advanced commands
# Open the beginner-friendly menu
npx --yes omni-vision-pro@latest provider
# Check the active mode without revealing keys
npx --yes omni-vision-pro@latest provider status
# Add or replace a key through a hidden terminal prompt
npx --yes omni-vision-pro@latest provider set gemini
npx --yes omni-vision-pro@latest provider replace openai
# Import a copied key without putting it in shell history
npx --yes omni-vision-pro@latest provider set --from-clipboard
# Choose how configured providers are used
npx --yes omni-vision-pro@latest provider use gemini
npx --yes omni-vision-pro@latest provider use openai
npx --yes omni-vision-pro@latest provider use auto
# Temporarily use local OCR, then turn AI back on
npx --yes omni-vision-pro@latest provider off
npx --yes omni-vision-pro@latest provider on
# Remove keys from Omni's private settings
npx --yes omni-vision-pro@latest provider remove gemini
npx --yes omni-vision-pro@latest provider remove openai
npx --yes omni-vision-pro@latest provider remove allset and replace both save the new key and select that provider. off retains private credentials; remove deletes them from Omni's private settings. Keys set separately in process variables or a project .env must be removed from that source. Restart or reload the AI client after a change.
npx --yes omni-vision-pro@latest doctor
npx --yes omni-vision-pro@latest doctor cursor
npx --yes omni-vision-pro@latest uninstall
npx --yes omni-vision-pro@latest uninstall --target allUninstall removes only entries recognized as managed by this installer. It keeps the private .env so reinstalling does not lose credentials. Delete that file separately when you want to erase stored keys.
npm install
npm run check
npm run build
node dist/cli.js serveFor a local client entry, use node C:/full/path/to/omni-vision-pro/dist/cli.js serve instead of npx.
npm run check
npm run build
npm pack --dry-run
npm audit --omit=devProtocol messages use stdout. Operational diagnostics use stderr so they cannot corrupt MCP stdio traffic.
License
MIT. See LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server for analyzing images using OpenRouter vision models, offering capabilities like automatic image resizing, model configuration, and handling custom queries about images.Last updated10MIT
- AlicenseAqualityCmaintenanceAn MCP server that adds image recognition to AI coding tools, enabling them to analyze images, extract text, and perform OCR via multimodal APIs and traditional OCR engines.Last updated315MIT
- AlicenseAqualityCmaintenanceMCP server that analyzes images with Google's Gemini vision models, allowing agents to describe or ask questions about images without bloating context.Last updated1MIT
- Alicense-qualityCmaintenanceAn MCP server that grants image recognition to text-only models like DeepSeek by forwarding images to vision models and returning text descriptions. Supports clipboard, pasted session images, and batch folder image recognition.Last updated1MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
MCP server for Flux AI image generation
MCP server for Grok Imagine AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xnurrabby/omni-vision-pro'
If you have feedback or need assistance with the MCP directory API, please join our Discord server