ollama-vision-mcp
Provides tools to describe images, extract text (OCR), answer questions about images, and process images from the macOS clipboard by delegating to local vision models running on Ollama.
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., "@ollama-vision-mcpDescribe the clipboard image"
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.
Vision MCP Server
MCP server for image processing via Ollama vision models (Gemma 4, Gemma 3, LLaVA...).
Enables LLM clients without vision capability (DeepSeek, Qwen, etc.) to process images by delegating to a local vision model through Ollama.
Features
Tool | Description |
| Describe image content (brief / detailed / exhaustive) |
| Extract text from image with language hints (vi, en, ja, zh, ko) |
| Ask any question about an image with a custom prompt |
| Read image directly from macOS clipboard — no file path needed |
Related MCP server: llm-vision-mcp
Requirements
macOS (clipboard tool uses
osascript)Python 3.12+
uv — Python package manager
Ollama — local LLM runtime
Installation
1. Clone the repo
git clone https://github.com/nguyenduc/vision-mcp-server.git
cd vision-mcp-server2. Install dependencies
uv sync
uv synccreates.venv/and installs all packages fromuv.lock. No need forpip installoruv init.
3. Pull a vision model
ollama pull gemma4Other compatible vision models: gemma3, llava, llava-llama3, moondream.
4. Make sure Ollama is running
ollama serveVerify:
curl http://127.0.0.1:11434/api/tags5. Test the server
uv run server.pyThe server runs over stdio — press Ctrl+C to stop.
MCP Client Configuration
OpenCode
Add to .opencode.json (project-level or ~/.opencode.json):
{
"mcpServers": {
"vision": {
"enabled": true,
"type": "local",
"command": ["uv", "run", "server.py"],
"cwd": "/absolute/path/to/vision-mcp-server",
"env": ["OLLAMA_BASE_URL=http://127.0.0.1:11434", "VISION_MODEL=gemma4"]
}
}
}Note: In OpenCode,
commandis an array andenvis an array of"KEY=VALUE"strings, not an object.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"vision": {
"command": "uv",
"args": ["run", "server.py"],
"cwd": "/absolute/path/to/vision-mcp-server"
}
}
}Cursor / Windsurf / Cline
{
"mcpServers": {
"vision": {
"command": "uv",
"args": ["run", "server.py"],
"cwd": "/absolute/path/to/vision-mcp-server",
"env": {
"OLLAMA_BASE_URL": "http://127.0.0.1:11434",
"VISION_MODEL": "gemma4"
}
}
}
}Environment Variables
Variable | Default | Description |
|
| Ollama API endpoint |
|
| Model name in Ollama (must have vision capability) |
How It Works
┌─────────────┐ ┌───────────────────┐ ┌─────────────┐
│ LLM Client │────▶│ Vision MCP Server │────▶│ Ollama │
│ (DeepSeek) │◀────│ (stdio/MCP) │◀────│ (Gemma 4) │
└─────────────┘ └───────────────────┘ └─────────────┘
│ │
│ [Image 1] + prompt │ osascript: clipboard → PNG
│ │ base64 → /v1/chat/completions
▼ ▼
Receives text Returns vision
description/OCR analysis resultClipboard flow: User pastes image → LLM calls process_clipboard_image → server grabs image from macOS clipboard via osascript → encodes to base64 → sends to Ollama → returns text.
File path flow: User provides path → LLM calls describe_image / ocr_image / ask_image with path → server reads file → encodes → sends to Ollama → returns text.
Troubleshooting
Error | Cause | Fix |
| Model doesn't exist in Ollama |
|
| Ollama is not running |
|
| Clipboard is empty or not an image | Copy an image to clipboard first |
Timeout | Model too large for hardware | Switch to a smaller model: |
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/ducnm9/ollama-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server