vision
Analyzes local image files (PNG, JPG, WebP, GIF, HEIC, SVG) via the Google Gemini API, providing vision capabilities such as describing UI elements or answering questions about images.
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., "@visionanalyze /Users/jdoe/Pictures/photo.jpg"
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.
Simple Vision MCP Server for Opencode
MCP server for OpenCode that adds vision capabilities — analyze local PNG, JPG, WebP, GIF, HEIC and SVG files via the Google Gemini API.
Prerequisites
Node.js ≥ 18
Google Gemini API key (aistudio.google.com)
OpenCode running in the terminal
Related MCP server: Vision MCP Server
Setup
cd ~/mcp-vision
npm install
cp .env.example .envEdit .env and add your API key:
GEMINI_API_KEY=your_api_key_here
GEMINI_MODEL=gemini-3.5-flashHandshake test
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"0.0.1"}}}' \
| node ~/mcp-vision/server.mjs 2>/dev/nullExpected output: a JSON object with result.serverInfo.name: "vision".
OpenCode configuration
Find your Node.js path:
which node
# e.g. /opt/homebrew/bin/nodeAdd to ~/.config/opencode/opencode.json:
{
"mcp": {
"vision": {
"type": "local",
"command": ["/opt/homebrew/bin/node", "/Users/YOURUSER/mcp-vision/server.mjs"],
"enabled": true
}
}
}All variables are loaded from .env in the project directory.
Replace /Users/YOURUSER/ with your actual username. Use the full Node.js path from which node (OpenCode does not inherit the shell PATH).
Usage
analyze_image /Users/YOURUSER/Desktop/screenshot.png
analyze_image /path/to/image.jpg "What UI elements can you see?"Supported formats
Format | MIME type | Notes |
PNG |
| Native |
JPEG/JPG |
| Native |
WebP |
| Native |
GIF |
| Native |
HEIC/HEIF |
| Native |
SVG |
| Converted to PNG via sharp |
Troubleshooting
Status failed in OpenCode: Run the handshake test. If you get a JSON response, the issue is the Node.js path in your config.
GEMINI_API_KEY not found: Make sure .env exists in the project directory and contains the key (no quotes around the value).
404 from Gemini API: The configured model may be deprecated — set GEMINI_MODEL to gemini-3.5-flash in .env.
File not found: Always use absolute paths (no ~/ tilde notation).
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
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/larsburkhardt/opencode-simple-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server