dsh-vision
Provides vision understanding tools (image analysis, OCR, video understanding, document QA) via OpenAI-compatible chat completions endpoints, including OpenAI's API.
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., "@dsh-vision提取这张图片中的所有文字"
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.
dsh-vision
支持 OpenAI 协议的 vision MCP 服务器:为 dsh 及其他 harness 提供视觉理解工具。图片/视频/文档理解通过任意 OpenAI 兼容的 chat-completions 端点完成,默认指向智谱 GLM 视觉模型。
工具:
vision_analyze(图片/图表问答)、vision_ocr(文字提取)、vision_video(视频理解)、vision_document(文档问答)输入支持:http(s) URL、本地文件路径、
file://URI、data:...;base64,...URI传输:
stdio(harness 默认)与streamable-http(远程/Web 场景)后端:OpenAI 协议 chat-completions;图片走标准
image_url,视频/文档/思考链为智谱扩展(见下方兼容性说明)
安装
git clone <repo> dsh-vision
cd dsh-vision
uv sync # 建 .venv 并安装依赖Related MCP server: glm-vision-mcp
配置(环境变量)
变量 | 默认值 | 说明 |
| — | API Key(必填)。回退顺序: |
|
| OpenAI 兼容端点 |
|
| 默认模型(图片/视频可用 |
|
| 请求超时(秒) |
|
| 本地图片大小上限 / 单次图片数量 |
|
| 本地视频大小上限 / 单次视频数量 |
|
| 本地文档大小上限 / 单次文档数量 |
|
| 智谱文档解析工具: |
|
| 解析后的文档文本喂给模型的最大字符数 |
|
| streamable-http 模式下的监听参数 |
运行
# stdio(harness 用)
$env:VISION_API_KEY = "<你的智谱 API Key>"
uv run dsh-vision # 或 .venv\Scripts\dsh-vision.exe
# streamable-http
uv run dsh-vision --transport streamable-http --host 127.0.0.1 --port 8000工具用法
vision_analyze — 图片/图表问答
参数 | 类型 | 说明 |
|
| 图片引用:URL / 本地路径 / data URI(照片、截图、UI、图表、曲线图、原理图均可) |
|
| 给视觉模型的指令或问题,越具体越好 |
|
| 可选模型覆盖(如 |
|
| 可选回复长度上限 |
|
| 开启推理链(智谱 |
vision_ocr — 文字提取
参数 | 类型 | 说明 |
|
| 同 |
vision_video — 视频理解
参数 | 类型 | 说明 |
|
| 视频引用:URL / 本地路径(mp4/mov/avi/mkv/webm 等)/ data URI |
|
| 问题或指令,如"总结这个视频"、"第几秒出现人物?" |
| — | 同 |
vision_document — 文档问答
参数 | 类型 | 说明 |
|
| 文档引用:URL / 本地路径 / data URI(pdf/doc/docx/xls/xlsx/ppt/pptx/txt/md/csv) |
|
| 问题或指令,如"总结要点"、"第 2 页表格的最大值是多少?" |
| — | 同 |
智谱端点的文档走文件解析服务:本地/URL 文档先经解析器(lite 免费 / expert / prime,见配置)提取文本,再把文本与问题一起交给模型回答;扫描版 PDF 建议把 VISION_DOC_TOOL_TYPE 设为 expert(带 OCR)。其他 OpenAI 兼容端点使用通用 file_url 内容块直传。
失败时工具返回 [vision error] ... 文本而不是让 MCP 会话报错,方便模型自行修正重试。
兼容性说明
✅ 已实测:智谱 GLM ——
glm-4v-plus(图片/视频)、glm-4.6v(文档、复杂图表、thinking),均用真实图片、视频和数学建模竞赛 PDF 验证过。⚠️ 尚未用其他供应商测试:OpenAI、DeepSeek、Qwen/DashScope、本地 vLLM 等只是按 OpenAI 协议实现,没有实测。其中:
图片理解(
vision_analyze/vision_ocr)走标准image_url,兼容性预期较好;video_url、file_url内容块与thinking参数是智谱对 OpenAI 协议的扩展,其他供应商可能不支持或格式不同,使用前请先验证;智谱端点下
vision_document使用智谱文件解析服务(非 OpenAI 协议),仅适用于bigmodel.cn的 base_url。
欢迎在其他供应商上测试后反馈结果(issue/PR)。
接入 dsh
在 harness 的 MCP 配置中注册 stdio 服务器:
command: .venv\Scripts\dsh-vision.exe # 或 uv run --directory <项目路径> dsh-vision
env:
VISION_API_KEY: "<你的智谱 API Key>"(具体写入位置按 dsh-mcp-install 技能 / harness 文档执行。)
开发
uv run pytest # 单元测试 + stdio 端到端冒烟
uv build # 打包 wheel端到端脚本(需要智谱 API Key):
uv run python scripts/e2e_zhipu.py --mcp # 图片链路
uv run python scripts/e2e_media.py # 视频/文档/图表思考链路测试智谱视觉模型
到 open.bigmodel.cn 创建 API Key
设置
VISION_API_KEY后启动服务器调用工具,例如:
{"images": ["https://example.com/photo.png"], "prompt": "描述图片内容"}
{"videos": ["C:\\videos\\clip.mp4"], "prompt": "总结这个视频"}
{"files": ["https://example.com/report.pdf"], "prompt": "总结要点", "model": "glm-4.6v"}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.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for image recognition, supporting multiple vision backends (Anthropic, Zhipu, Ollama) to describe, answer questions, and analyze images.3461MIT
- Flicense-qualityCmaintenanceAn MCP server that leverages Zhipu's free GLM-4.6V-Flash vision model to enable image, video, and file understanding (OCR, table parsing, defect detection, document Q&A, and more) across MCP-compatible clients like Codex and Claude Desktop.
- Flicense-qualityCmaintenanceMCP server that gives text-only models vision capabilities via free GLM vision models, supporting image description, OCR, chart/document analysis, and grounding with automatic model fallback.1
- AlicenseBqualityCmaintenanceMCP server that provides image analysis, OCR text extraction, and image description using the GLM-4V Flash model from Zhipu AI.36MIT
Related MCP Connectors
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Google Veo 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/smjda0719/dsh-vision'
If you have feedback or need assistance with the MCP directory API, please join our Discord server