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-mcpWhat's in this image? C:\Users\john\screenshot.png"
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.
glm-vision MCP Server
Gives any AI Agent the ability to "see" images. Under the hood, it calls 智谱's completely free vision reasoning models, exposes them as standard tools via the MCP protocol, and any MCP-compatible client can use them directly — zero API cost.
💡 Free Guarantee: All free models from the 智谱 benefits zone are used (GLM-4.6V-Flash / GLM-4.1V-Thinking-Flash / GLM-4V-Flash), no paid models are included, and long-term use will not incur any charges.
Exposed Tools
analyze_image(image_input, question, thinking)
Parameter | Type | Default | Description |
| string | Required | The http/https URL of the image or an absolute local file path |
| string |
| The question to ask the model |
| bool |
| Enables thinking mode, more accurate for complex charts/GUI/reasoning scenarios |
Returns: The text analysis result output by the model.
Features
Local images are automatically read and transmitted as raw base64, no image hosting or public URL required
Single-image 5MB size limit validation (智谱 restriction)
Automatic backoff retry 3 times on 429 rate limiting (1.5s / 3s / 4.5s)
If still failing, automatically degrades:
glm-4.6v-flash→glm-4.1v-thinking-flash→glm-4v-flash(all free), and when degraded, the model used is indicated at the beginning of the answer
Related MCP server: Kimi Vision MCP Server
Three-Step Deployment
1. Install Dependencies
pip install -r requirements.txt⚠️ Key pitfall:
mcpmust be 1.x. The latestmcp 2.0.0removed the built-inmcp.server.fastmcpmodule, which will cause an ImportError if installed. So usepip install "mcp<2".⚠️ Another pitfall: Do not install
zaiorzhipuai— on PyPI both names are unrelated placeholder packages (zaibelongs to Zalando, andzhipuai's import name has changed). This server uses an OpenAI-compatible client to connect directly to the 智谱 API (base_url=https://open.bigmodel.cn/api/paas/v4); you only need theopenaipackage.
2. Configure API Key
Register at bigmodel.cn with your phone number → create a new one under "API Keys" in the console. Free.
There are two ways to provide the Key, environment variables take higher priority:
Method A (recommended): Set the environment variable
ZHIPU_API_KEY=你的keyMethod B: Rename
zhipu_key.txt.exampletozhipu_key.txtand fill in the Key (the script will automatically read this file in the same directory).
3. Configure in the Client
Add a block to your client's MCP configuration file (change the path to your own):
{
"mcpServers": {
"glm-vision": {
"command": "python",
"args": ["/绝对路径/到/glm_vision_mcp.py"],
"env": {
"ZHIPU_API_KEY": "你的key"
}
}
}
}Configuration file locations for each client:
Client | Configuration file path |
WorkBuddy |
|
Claude Desktop (Win) |
|
Claude Desktop (Mac) |
|
Cursor | in project |
Cline / Roo (VSCode) |
|
Continue | the |
For
command, it is recommended to use the absolute path of the Python interpreter (e.g.D:/python/python.exe), to avoid the client not findingpythonin PATH at startup.
You must restart the client after configuring — the MCP process is spawned only once when the client starts; changing configuration or code will not hot-reload.
Verify It Works
After restarting the client, just have the Agent analyze an image:
Take a look at
D:\test.pngand tell me what is in this image.
If the Agent says it cannot find the tool, check: whether the configuration file's JSON syntax is valid, whether the script's absolute path is correct, whether the client was restarted, and whether the client requires manually "trusting/enabling" this server (WorkBuddy and Cursor both have this step).
Common Errors Reference
Symptom | Cause |
| Free model rate limit, not an invalid Key. The server has automatically retried and degraded. |
| The Key is genuinely invalid or was not read. |
| mcp 2.x was installed; reinstall with |
| Neither the environment variable nor |
| Single image exceeds 5MB; compress it first. |
File List
File | Required | Description |
| ✅ | The server itself, the only core file. |
| Recommended | Dependency list |
| Optional | Only needed when not using environment variables; content is a single line Key. |
| Optional | This document |
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
- AlicenseAqualityAmaintenanceA portable image-understanding MCP server that lets agents analyze local images, URLs, or base64 images via an OpenAI-compatible vision model.176865MIT
- AlicenseNot gradedqualityCmaintenanceEnables analysis of local images through Kimi (Moonshot AI) vision models via the MCP protocol, supporting features like OCR and long context understanding.65MIT
- AlicenseBqualityCmaintenanceMCP server that provides image analysis, OCR text extraction, and image description using the GLM-4V Flash model from Zhipu AI.36MIT
- AlicenseAqualityCmaintenanceProvides image recognition capabilities to MCP clients by integrating with OpenAI-compatible vision models, supporting local images, URLs, multi-image comparison, and model listing.4MIT
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.
Generate images and video on Google Flow (Veo, Nano Banana) from any MCP client
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/Chu-Nian/glm-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server