mcp-vision-server
OpenAI-compatible vision MCP server with 14 provider presets that enables MCP clients to analyze images, including screenshots, text, and UI mockups, via a single analyze_image tool.
README
mcp-vision-server
OpenAI-compatible vision MCP server with 14 provider presets.
Any MCP client (Claude Code, Codex, Cursor, ZCode…) can call it to "see" images — analyze screenshots, recognize content, read text, answer visual questions, restore UI from mockups.
Features
- Single tool
analyze_image: pass an image + prompt, get text response. - Three image input types: URL / local file / base64 string (auto-detect).
- 14 provider presets: Zhipu, Bailian, DeepSeek, OpenAI, SiliconFlow, OpenRouter, Ark, StepFun, Kimi, MiniMax, ModelScope, NVIDIA NIM, Novita AI.
- Switch providers via
VISION_PROVIDERenv var orproviderparameter. - Override at both env and tool parameter levels.
Install & Run
Requires Python ≥ 3.10 and uv.
cd mcp-vision-server
uv sync # install deps
uv run pytest -v # run tests (optional)
uv run mcp-vision-server # start stdio server
Configuration
Option 1: Provider preset (recommended)
export VISION_PROVIDER=zhipu # default
export VISION_API_KEY=your_key
Supported presets: zhipu bailian deepseek openai siliconflow openrouter ark stepfun kimi minimax modelscope nvidia novita.
You can also use provider-specific env vars (e.g. DASHSCOPE_API_KEY, OPENAI_API_KEY) as fallback.
Option 2: Manual
| Variable | Required | Description |
|---|---|---|
VISION_API_KEY |
Yes | API key |
VISION_BASE_URL |
No | OpenAI-compatible endpoint |
VISION_MODEL |
No | Model name |
Tool params (override env per call): image, prompt, image_type, provider, base_url, api_key, model, temperature, max_tokens.
MCP Client Setup
Claude Code (.mcp.json)
{
"mcpServers": {
"vision": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-vision-server", "mcp-vision-server"],
"env": {
"VISION_PROVIDER": "zhipu",
"VISION_API_KEY": "your_key"
}
}
}
}
Claude Code Plugin
# After PyPI publish
claude plugins install RuyimgByCN/mcp-vision-server
# Local test
claude plugins install /path/to/mcp-vision-server
The repo includes a .claude-plugin.json manifest — claude plugins install reads it automatically.
Codex (OpenAI Codex CLI)
Edit ~/.codex/config.toml:
[mcp_servers.vision]
command = "uvx"
args = ["mcp-vision-server"]
env = { VISION_PROVIDER = "zhipu", VISION_API_KEY = "your_key" }
Or for local dev:
[mcp_servers.vision]
command = "uv"
args = ["run", "--directory", "/path/to/mcp-vision-server", "mcp-vision-server"]
env = { VISION_PROVIDER = "zhipu", VISION_API_KEY = "your_key" }
Cursor / other uvx clients
Replace command with uvx, args with ["--from", "/path/to/mcp-vision-server", "mcp-vision-server"], same env.
Provider Examples
// Bailian
"env": { "VISION_PROVIDER": "bailian", "VISION_API_KEY": "your_key" }
// OpenAI
"env": { "VISION_PROVIDER": "openai", "VISION_API_KEY": "sk-xxx" }
// Fully custom
"env": {
"VISION_BASE_URL": "https://your-endpoint/v1",
"VISION_API_KEY": "your_key",
"VISION_MODEL": "your-model"
}
About
Author: RuyimgByCN
License: Personal use only. Commercial use is prohibited — see LICENSE for details. Contact the author for commercial licensing.
中文说明: 个人使用免费,禁止商用。商业授权请联系作者。详见 README_ZH.md。
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.
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.
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.
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.