glm-vision-mcp
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., "@glm-vision-mcpDescribe what's happening in this image."
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.
English · 中文
Features
Feature | Description |
8 tools, same names | Identical tool names and parameter schemas as |
Next-gen model by default | Uses glm-5v-turbo — improved accuracy and reasoning over the official glm-4.6v |
Smart retry | 429 / 5xx / network errors retried with exponential backoff; 4xx fails immediately — saves quota |
Local result cache | LRU memory cache + optional disk persistence; same image + prompt skips the API call |
|
|
Extended formats | Images: jpg, png, webp, gif, bmp, tiff. Video: mp4, mov, m4v, avi, mkv, webm, flv |
Related MCP server: glm-vision-mcp
Quick Start
# 1. Copy and edit .env
cp .env.example .env
# Set Z_AI_API_KEY=your_coding_plan_key
# 2. Add to your MCP client
claude mcp add glm-vision-mcp \
--env Z_AI_API_KEY=YOUR_KEY \
-- npx -y glm-vision-mcpUsage
The server exposes 8 vision tools through stdio. Your MCP client handles tool discovery and invocation automatically.
Claude Code
claude mcp add glm-vision-mcp \
--env Z_AI_API_KEY=YOUR_KEY \
-- npx -y glm-vision-mcpOpenCode
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"glm-vision-mcp": {
"type": "local",
"command": ["npx", "-y", "glm-vision-mcp"],
"environment": { "Z_AI_API_KEY": "YOUR_KEY", "Z_AI_MODE": "ZHIPU" }
}
}
}Cline / Roo Code
{
"mcpServers": {
"glm-vision-mcp": {
"command": "npx",
"args": ["-y", "glm-vision-mcp"],
"env": { "Z_AI_API_KEY": "YOUR_KEY", "Z_AI_MODE": "ZHIPU" }
}
}
}Architecture
flowchart LR
Client["MCP Client\n(Claude Code / OpenCode / Cline)"]
Server["glm-vision-mcp\n(stdio transport)"]
Cache["Result Cache\n(LRU + disk)"]
Vision["VisionService\n(unified handler)"]
Chat["ChatService\n(retry + backoff)"]
API["GLM Vision API\n(ZHIPU / ZAI)"]
Client --> Server
Server --> Cache
Cache -->|"miss"| Vision
Cache -->|"hit"| Server
Vision --> Chat
Chat --> API
API --> VisionConfiguration
Variable | Default | Description |
| Required | Zhipu Coding Plan API key |
| — | Fallback alias (auto-mapped) |
|
| Platform: |
|
| Vision model ID |
|
| Sampling temperature |
|
| Nucleus sampling |
|
| Max output tokens |
|
| Request timeout (ms) |
|
| Max retries (retryable errors only) |
|
| Enable result caching |
|
| Cache TTL in seconds (7 days) |
|
| Max LRU cache entries |
|
| Max image file size |
|
| Max video file size |
Directory Structure
src/
├── core/ # Environment, chat, vision, file, cache services
│ ├── environment.ts # Dotenv + dual-platform + key fallback
│ ├── chat-service.ts # GLM API calls with smart retry
│ ├── vision-service.ts # Unified analysis orchestration
│ ├── file-service.ts # Validation, base64 encoding, fingerprinting
│ └── cache.ts # LRU + disk cache
├── tools/
│ ├── definitions.ts # 8-tool data-driven definitions
│ └── registry.ts # Tool registration on MCP server
├── prompts/ # 8 specialized system prompts
├── types/ # Error type hierarchy
└── utils/ # Logger, sanitization, validation
tests/
scripts/
└── smoke.ts # End-to-end verification with real keyTech Stack
Layer | Technology |
Runtime | Node.js ≥ 18 |
Language | TypeScript 5 |
Protocol |
|
Validation | Zod |
Config | dotenv |
Build | TypeScript compiler ( |
Dev | tsx (hot-reload), vitest (64 tests) |
Contributing
Fork → branch → commit → open a pull request. Run npm test before pushing.
License
No LICENSE file detected. The package.json declares MIT. Add a LICENSE file to clarify terms before publishing.
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
- 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.Last updated11,29693MIT
- 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.Last updated
- 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.Last updated1
- Alicense-qualityBmaintenanceAn MCP server that provides 8 vision tools for UI screenshot to code, OCR, error diagnosis, diagram understanding, data visualization analysis, UI diff, and image/video analysis, plus model list query, powered by SiliconFlow's multimodal API.Last updatedGPL 3.0
Related MCP Connectors
MCP server for GLM chat completions using Zhipu AI models via AceDataCloud
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for Hailuo (MiniMax) 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/JJChou000/glm-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server