glm-vision-mcp
glm-vision-mcp
智譜 GLM-4.6V-Flash(無料ビジョンモデル)をラップする MCP サーバーで、任意の MCP クライアントに analyze_image ツールを公開し、単一画像/複数画像の分析、OCR、複数画像の比較をサポートします。
特性
能力 | 説明 |
画像分析 | ローカルパス / http(s) URL / base64 data URI のいずれも対応、自動的に data URI に変換 |
複数画像比較 | 複数の画像を一度に渡し、プロンプトに従って比較分析 |
レート制限耐性 | 429 / 1302 / 1305 指数バックオフ再試行 → 複数キーのラウンドロビン → 代替モデル |
設定自己チェック |
|
Related MCP server: vision-mcp
環境要件
Python >= 3.10
智譜オープンプラットフォームの API Key(https://open.bigmodel.cn/usercenter/apikeys)、
glm-4.6v-flashは無料レート制限の確率をさらに下げたい場合は、複数のアカウントを登録してそれぞれ Key を取得し、設定時にカンマ(英文)で区切ります
インストール
cd glm-vision-mcp
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt起動
# stdio 模式(MCP 客户端默认方式)
$env:ZHIPU_API_KEY = "你的Key"
.venv\Scripts\python server.py
# SSE 调试模式(无鉴权,仅限本机)
.venv\Scripts\python server.py --sse 8090クライアント設定
Codex(~/.codex/config.toml)
[mcp_servers.glm-vision]
command = "C:\\绝对路径\\glm-vision-mcp\\.venv\\Scripts\\python.exe"
args = ["C:\\绝对路径\\glm-vision-mcp\\server.py"]
[mcp_servers.glm-vision.env]
ZHIPU_API_KEY = "你的Key"
# GLM_VISION_MODELS = "glm-4.6v-flash"
# GLM_API_BASE = "https://open.bigmodel.cn/api/paas/v4/chat/completions"Claude Desktop(claude_desktop_config.json)
{
"mcpServers": {
"glm-vision": {
"command": "C:\\绝对路径\\glm-vision-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\绝对路径\\glm-vision-mcp\\server.py"],
"env": { "ZHIPU_API_KEY": "你的Key" }
}
}
}ツールインターフェース
analyze_image(images, prompt, temperature, max_tokens, thinking)
パラメータ | 型 | 必須 | 説明 |
| string[] | はい | ローカルパス / http(s) URL / data URI |
| string | いいえ | 分析要件、デフォルトは「この画像の内容を詳しく説明してください」 |
| number | いいえ | 0.0~1.0、デフォルト 0.7 |
| integer | いいえ | 最大出力トークン、デフォルト 2048 |
| boolean | いいえ | 深い思考モード、デフォルト false |
環境変数
変数 | 必須 | 説明 |
| はい | 智譜 API Key、カンマ区切りで複数 Key のラウンドロビンをサポート |
| いいえ | モデルの優先順位、カンマ区切り、デフォルトは |
| いいえ | API エンドポイントを上書き |
注意事項
ローカル画像は1枚あたり ≤ 10MB、jpg/jpeg/png/webp/gif/bmp に対応
無料モデルはピーク時にレート制限される可能性があります。すべての Key + すべてのモデルが制限された場合のみエラーになります。15~30 秒待ってピークを避けて再試行してください
401/400 などのレート制限以外のエラーはフォールバックも再試行もせず、そのまま返すため、設定問題の特定に役立ちます
検証
# 离线检查(不联网)
.venv\Scripts\python test_smoke.py
# 联网冒烟:MCP 握手 + analyze_image 真实调用
$env:ZHIPU_API_KEY = "你的Key"
.venv\Scripts\python test_smoke.py --liveMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityAmaintenanceMulti-model vision understanding MCP server that provides unified image analysis for AI assistants without native vision, supporting models like GLM-4.6V, DeepSeek-OCR, Qwen3-VL-Flash, and more.13,789100MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for analyzing images using multiple vision LLM providers (OpenCode, OpenAI, Anthropic, Google, and custom OpenAI-compatible endpoints). Provides tools to analyze single or multiple images, list providers, and test vision capabilities.MIT
- FlicenseNot gradedqualityCmaintenanceAn 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.
- FlicenseAqualityBmaintenanceA Model Context Protocol server that wraps the free GLM-4.6V-Flash vision model, enabling text-only LLM clients like Codex, Cursor, and Claude Desktop to analyze images, videos, and files (PDF/TXT) through standard MCP tools.32
Related MCP Connectors
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
OCR, transcription, file extraction, and image generation for AI agents via MCP.
MCP server for MiniMax H3 multimodal 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/River831/glm-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server