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.
NPM Package: @z_ai/mcp-server

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.

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 formats
  • video_analysis - Analyze videos and provide detailed descriptions, supports multiple video formats

Environment Variable Configuration

Detailed Configuration

Environment VariableDescriptionDefault ValueOptional Values
Z_AI_API_KEYZ.AI API KEYRequiredYour API key
Z_AI_MODEService platform selectionRequiredZAI

Platform Configuration

Platform URL: https://z.ai/model-api
API Base URL: https://api.z.ai/api/paas/v4/
Get API Key: ZAI Console \
Z_AI_MODE=ZAI
Z_AI_API_KEY=your_zai_api_key

Installation and Usage

Quick Start

1

Get API Key

Visit Z.AI Open Platform to get your API Key
2

Install MCP Server

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

One-click Installation Command
claude mcp add zai-mcp-server --env Z_AI_API_KEY=your_api_key Z_AI_MODE=ZAI -- npx -y @z_ai/mcp-server
Manual ConfigurationEdit Claude Desktop’s configuration file .claude.json mcpServers content:
{
  "mcpServers": {
    "zai-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@z_ai/mcp-server"
      ],
      "env": {
        "Z_AI_API_KEY": "your_api_key",
        "Z_AI_MODE": "ZAI"
      }
    }
  }
}

Usage Example

Using Z.AI MCP Server in Claude Code:
claude mcp add zai-mcp-server --env Z_AI_API_KEY=your_api_key Z_AI_MODE=ZAI -- npx -y @z_ai/mcp-server
code

Troubleshooting