Vision MCP Server is a Z.AI capability implementation based on the Model Context Protocol (MCP), providing powerful Z.AI GLM-4.5V capabilities for MCP-compatible clients such as Claude Code and Cline, including image analysis, video understanding, and other features.
Prerequisites: Node.js >= v22.0.0
Product Overview
This Local MCP Server is an exclusive server developed by Z.AI for GLM Coding Plan Pro or higher tiers users, empowering your Code Agent with eyes and limitless visual understanding.
Except in Claude Code, pasting an image directly into the client cannot call this MCP Server, as the client will by default transcode the image and call the model interface directly.
The best practice is to place the image in a local directory and invoke the MCP Server by specifying the image name or path in the conversation.
For example:
The best practice is to place the image in a local directory and invoke the MCP Server by specifying the image name or path in the conversation.
For example:
What does demo.png describe?Features
Image Analysis
Supports intelligent analysis and content understanding of multiple image formats, giving your AI Agent visual capabilities
Video Understanding
Supports visual understanding of both local and remote videos
Easy Integration
One-click installation, quick integration with Claude Code and other MCP-compatible clients
Supported Tools
This server implements the Model Context Protocol and can be used with any MCP-compatible client. Currently provides the following tools:image_analysis- Analyze images and provide detailed descriptions, supports multiple image formatsvideo_analysis- Analyze videos and provide detailed descriptions, supports multiple video formats
Environment Variable Configuration
Detailed Configuration
| Environment Variable | Description | Default Value | Optional Values |
|---|---|---|---|
Z_AI_API_KEY | Z.AI API KEY | Required | Your API key |
Z_AI_MODE | Service platform selection | Required | ZAI |
Platform Configuration
- Z.AI Platform (Z.AI)
Get API Key: Z.AI Console \
Installation and Usage
Quick Start
1
Get API Key
Visit Z.AI Open Platform to get your API Key
2
Install MCP Server
Prerequisites: Node.js >= v22.0.0
Choose the appropriate installation method based on your client
Choose the appropriate installation method based on your client
3
Configure Environment Variables
Set necessary environment variables, including API Key and platform selection
Supported Clients
- Claude Desktop
- Cline (VS Code)
- OpenCode
- Crush
- Roo Code, Kilo Code and Other MCP Clients
Method A: One-click Installation CommandBe sure to replace If you forgot to replace the API Key, you need to uninstall the old MCP Server before re-executing the installation command:Method B: Manual ConfigurationEdit Claude Desktop’s configuration file
Be sure to replace
your_api_key with the API Key you obtained..claude.json mcpServers content: Be sure to replace
your_api_key with the API Key you obtained.Usage Example
Except in Claude Code, pasting an image directly into the client cannot call this MCP Server, as the client will by default transcode the image and call the model interface directly.
The best practice is to place the image in a local directory and invoke the MCP Server by specifying the image name or path in the conversation.
For example:
The best practice is to place the image in a local directory and invoke the MCP Server by specifying the image name or path in the conversation.
For example:
What does demo.png describe?For example, in Claude Code, inputting
hi describe this xx.png in the conversation, the MCP Server will process the image and return the description result. (The prerequisite is that you have the image in your current directory)
Troubleshooting
Run the following command in your local terminal to verify if it can be installed locally, to troubleshoot environment, permission, and other issues:- If installed successfully, it indicates that the environment is correct, and the issue may be with the client configuration. Please check the client’s MCP configuration.
- If installation fails, please troubleshoot based on the error message. It is recommended to paste the error message to a large model for analysis and resolution.
Connection Closed
Connection Closed
Issue: Mcp server connection closedSolutions:
- Check whether Node.js 22 or a newer version is installed locally.
- Run
node -vandnpx -vto verify that the execution environment is available. - Check the environment variable
Z_AI_API_KEYis configured correctly.
Invalid API Key
Invalid API Key
Issue: Receiving invalid API Key errorSolutions:
- Confirm the API Key is correctly copied
- Check if the API Key is activated
- Confirm the selected platform (
Z_AI_MODE) matches the API Key - Check if the API Key has sufficient balance
Connection Timeout
Connection Timeout
Issue: MCP server connection timeoutSolutions:
- Check network connection
- Confirm firewall settings
- Increase timeout settings