
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A local MCP server that analyzes images by calling a separately configured vision model, giving text-only agents image understanding through the analyze_image tool.
Vision MCP Server is cataloged as an MCP server attributed to markusbetter. A local MCP server that analyzes images by calling a separately configured vision model, giving text-only agents image understanding through the analyze_image tool. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Vision MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It falls back on HTTP 408, 429, 500, 502, 503, and 504 responses, plus request timeouts, connection resets, DNS, and other network errors; it does not fall back on 400, 401/403, content-safety refusals, or invalid local images.
Local reads can be limited to allowed directories, and online image fetching blocks localhost, intranet addresses, and cloud metadata addresses by default.
README.md · ee079de7d757 · 采集于 2026-11-13 12:56:56 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
这是一个通过视觉模型分析图片的本地 MCP Server。
例如当你在客户端使用的主模型只支持文字输入时,可以把本 MCP 添加到 Agent 工具中,由 analyze_image 工具调用独立的视觉模型完成图片理解。
v1.1 支持:
将模型地址、模型 ID 和 API Key 写入客户端或 Agent 的 MCP 配置:
{
"mcpServers": {
"vision-mcp-server": {
"command": "npx",
"args": ["-y", "vision-mcp-server"],
"env": {
"配置项": "配置值"
}
}
}
}
请妥善保管 API Key,不要把包含真实 Key 的 MCP 配置公开或提交到代码仓库。
下面四种配置方式选择一种即可。
适合只使用魔搭 API-Inference 的用户。
{
"mcpServers": {
"vision-mcp-server": {
"command": "npx",
"args": ["-y", "vision-mcp-server"],
"env": {
"MODELSCOPE_TOKEN": "your_modelscope_token",
"MODELSCOPE_MODELS": "Qwen/Qwen3.5-397B-A17B,Qwen/Qwen3.5-35B-A3B"
}
}
}
}
MODELSCOPE_MODELS 是使用英文逗号分隔的有序列表:
Qwen/Qwen3.5-397B-A17B。MODELSCOPE_TOKEN。请确认所填写模型当前支持魔搭 API-Inference 和图片输入。魔搭的可用模型会变化,本项目不会限制具体 Model ID。
旧版单模型配置仍然兼容:
{
"MODELSCOPE_TOKEN": "your_modelscope_token",
"MODELSCOPE_MODEL": "Qwen/Qwen3.5-397B-A17B"
}
如果同时设置 MODELSCOPE_MODELS 和 MODELSCOPE_MODEL,优先使用 MODELSCOPE_MODELS。
智谱模式不会写死模型。用户必须通过 VISION_MODELS 明确填写自己有权限使用的视觉模型:
{
"mcpServers": {
"vision-mcp-server": {
"command": "npx",
"args": ["-y", "vision-mcp-server"],
"env": {
"VISION_PROVIDER": "zhipu",
"ZAI_API_KEY": "your_zhipu_api_key",
"VISION_MODELS": "glm-4v-flash"
}
}
}
}
默认示例仅使用免费的 glm-4v-flash。如需其他模型,请先确认智谱账户权限和计费规则,再手动加入 VISION_MODELS,例如:
glm-5v-turbo:付费视觉模型glm-4.6v:付费视觉模型glm-4.1v-thinking-flashx:增强型视觉模型,是否可用取决于账号权限glm-4.6v-flash:免费视觉模型glm-4.1v-thinking-flash:免费视觉模型glm-4v-flash:免费基础图片理解模型实际可用模型、价格和权限以智谱官方模型列表为准。
注意:我们在 2026-08-09 的真实联调中,多次遇到 glm-4.6v-flash 返回 HTTP 429、业务码 1305(模型当前访问量过大),而 glm-4v-flash 可正常调用。这属于智谱免费共享服务的临时过载,不是本 MCP 的图片格式错误。如确需配置付费模型作为 fallback,请先确认计费规则和账户额度。
适合 OpenRouter、硅基流动、自建 vLLM/LM Studio 或其他兼容接口。接口必须支持:
POST {baseUrl}/chat/completionsmessages[].content[]image_url.url 中的 base64 data URL{
"mcpServers": {
"vision-mcp-server": {
"command": "npx",
"args": ["-y", "vision-mcp-server"],
"env": {
"VISION_PROVIDER": "openai-compatible",
"OPENAI_BASE_URL": "https://provider.example/v1",
"OPENAI_API_KEY": "your_api_key",
"VISION_MODELS": "vision-model-a,vision-model-b,vision-model-c"
}
}
}
}
三个模型共用 OPENAI_API_KEY,并按照 VISION_MODELS 中的顺序 fallback。
“OpenAI 兼容”不代表第三方一定支持图片。若某接口只兼容文本或不接受 base64 图片,本 MCP 无法使其获得视觉能力。
需要跨供应商 fallback 时,使用 VISION_ROUTES。Key 仍然分别放在 env 中;VISION_ROUTES 只通过 apiKeyEnv 引用 Key 所在的环境变量名。
{
"mcpServers": {
"vision-mcp-server": {
"command": "npx",
"args": ["-y", "vision-mcp-server"],
"env": {
"MODELSCOPE_TOKEN": "your_modelscope_token",
"ZAI_API_KEY": "your_zhipu_api_key",
"CUSTOM_OPENAI_API_KEY": "your_custom_api_key",
"VISION_ROUTES": "[{\"name\":\"modelscope\",\"baseUrl\":\"https://api-inference.modelscope.cn/v1\",\"apiKeyEnv\":\"MODELSCOPE_TOKEN\",\"models\":[\"Qwen/Qwen3.5-397B-A17B\",\"Qwen/Qwen3.5-35B-A3B\"],\"maxImageEdge\":2048},{\"name\":\"zhipu\",\"baseUrl\":\"https://open.bigmodel.cn/api/paas/v4\",\"apiKeyEnv\":\"ZAI_API_KEY\",\"models\":[\"glm-4v-flash\"],\"maxImageEdge\":2048},{\"name\":\"custom-openai\",\"baseUrl\":\"https://provider.example/v1\",\"apiKeyEnv\":\"CUSTOM_OPENAI_API_KEY\",\"models\":[\"your-vision-model\"],\"maxImageEdge\":2048}]"
}
}
}
}
上例的完整调用顺序为:
VISION_ROUTES 一旦设置,就会覆盖前三种简化配置。
| 字段 | 必填 | 说明 |
|---|---|---|
name | 否 | 路由名称,只用于安全日志和测试筛选 |
baseUrl | 是 | OpenAI 兼容接口基础地址 |
apiKeyEnv | 是 | API Key 所在的环境变量名,不是 Key 本身 |
model | 二选一 | 单个模型 ID |
models | 二选一 | 有序模型 ID 数组,同一路由共用一个 Key |
headers | 否 | 额外请求头;不要在这里存 API Key |
timeoutMs | 否 | 该路由请求超时,单位毫秒 |
maxImageEdge | 否 | 该路由接受的图片最长边 |
extraBody | 否 | 供应商特有的请求字段,例如智谱 thinking |
智谱开启思考模式的路由字段示例:
{
"extraBody": {
"thinking": { "type": "enabled" }
}
}
会切换到下一模型:
408、429、500、502、503、504不会切换:
400:图片、Prompt 或请求参数错误401/403:Key、权限或模型授权错误失败模型会进入冷却,默认 60 秒。这样可避免每次工具调用都先撞一次已经限流的模型。
| 环境变量 | 使用场景 | 说明 |
|---|---|---|
MODELSCOPE_TOKEN | 魔搭 | 魔搭 API Token |
MODELSCOPE_MODEL | 魔搭旧版单模型 | 单个模型 ID |
MODELSCOPE_MODELS | 魔搭多模型 | 英文逗号分隔,优先于 MODELSCOPE_MODEL |
VISION_PROVIDER | 简化配置 | zhipu 或 openai-compatible;不设置时默认魔搭兼容模式 |
ZAI_API_KEY | 智谱 | 智谱 API Key |
OPENAI_BASE_URL | 通用兼容接口 | 基础地址,例如 https://provider.example/v1 |
OPENAI_API_KEY | 通用兼容接口 | API Key |
VISION_API_KEY_ENV | 简化配置高级选项 | 改用指定名称的 Key 环境变量 |
VISION_MODELS | 智谱/通用兼容接口 | 必填;英文逗号分隔的有序模型列表 |
VISION_ROUTES | 多供应商 | 高级路由 JSON;设置后覆盖简化配置 |
| 环境变量 | 默认值 | 说明 |
|---|---|---|
VISION_MAX_IMAGE_EDGE | 2048 | 简化配置的默认最长边 |
VISION_MAX_IMAGE_BYTES | 20971520 | 输入或处理后图片最大字节数 |
VISION_MAX_IMAGE_PIXELS | 40000000 | 解码图片最大像素数 |
VISION_ALLOWED_DIRS | 未限制 | 允许读取的本地目录,多个目录用英文逗号分隔 |
VISION_IMAGE_DOWNLOAD_TIMEOUT_MS | 15000 | 在线图片下载超时 |
VISION_REQUEST_TIMEOUT_MS | 60000 | 模型请求超时 |
VISION_FALLBACK_COOLDOWN_MS | 60000 | 失败路由冷却时间 |
VISION_DEBUG | false | 输出脱敏调试日志到 stderr |
推荐为本地图片配置允许目录:
{
"VISION_ALLOWED_DIRS": "D:\\Pictures,D:\\Screenshots"
}
analyze_image| 参数 | 必填 | 说明 |
|---|---|---|
image | 是 | 本地绝对路径、HTTP/HTTPS URL 或 image data URL |
prompt | 否 | 针对图片的问题,默认“请描述这张图片的内容” |
示例:
{
"name": "analyze_image",
"arguments": {
"image": "D:\\Pictures\\chart.png",
"prompt": "提取图表中的标题、数据和单位"
}
}
在发送给供应商之前,本 MCP 会:
maxImageEdge 等比例缩放,不放大小图。在线图片会先安全下载并做同样处理;localhost、内网地址和云元数据地址默认禁止访问。
20.9.0 或更高版本使用 npx 无需提前全局安装:
npx -y vision-mcp-server
npm install
npm test
npm run build
见 CHANGELOG.md。
Vision MCP Server adds image understanding to MCP agents by calling a separately configured vision model.
For a local stdio installation, put provider credentials and model IDs in the MCP host configuration under mcpServers.<name>.env. Models in the same comma-separated VISION_MODELS/MODELSCOPE_MODELS list share one API key and are tried in order. Use VISION_ROUTES for ordered fallback across multiple providers.
Supported configurations:
MODELSCOPE_TOKEN + MODELSCOPE_MODELSVISION_PROVIDER=zhipu + ZAI_API_KEY + explicit VISION_MODELSVISION_PROVIDER=openai-compatible + OPENAI_BASE_URL + OPENAI_API_KEY + VISION_MODELSVISION_ROUTESZhipu models are not hardcoded. Free and paid vision model IDs can be mixed in any order. See the complete configuration examples above.
The server falls back only for rate limits, timeouts, network failures, and selected 5xx responses. Invalid images, authentication failures, and request validation errors do not trigger fallback.
License: MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Vision MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/vision-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.