GLM-4.5V MCP Server
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-4.5V MCP Serverprocess this sales report PDF and summarize the quarterly results"
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-4.5V MCP Server
GLM-4.5V 多模态能力的 MCP 服务器,提供图像处理、视觉查询和文件处理功能。
功能
read_image: 读取本地/URL图片并返回 dataURL 与尺寸信息
vision_query: 调用 GLM-4.5V 对图片进行 OCR/问答/检测
process_file: 使用 GLM-4.5V 处理文件(上传并提取内容)
Related MCP server: Look At Pic MCP
安装
npm install配置
复制环境变量文件:
cp .env.example .env编辑 .env 文件,填入你的 GLM API Key:
GLM_API_KEY=your_api_key_here
GLM_BASE_URL=https://open.bigmodel.cn/api/paas/v4/chat/completions构建
npm run build运行
npm start或使用启动脚本:
./start-mcp.sh开发模式
npm run dev测试功能
创建测试文件并验证功能:
node scripts/test-file-processing.js工具说明
read_image
读取图片并返回 base64 编码的 dataURL。
参数:
path(必需): 图片路径或URLmaxSide(可选): 最大边长,用于缩放
vision_query
使用 GLM-4.5V 分析图片。
参数:
path(必需): 图片路径或URLprompt(必需): 查询提示词mode(可选): 查询模式 ("describe", "ocr", "qa", "detect")returnJson(可选): 是否返回JSON格式结果
process_file
使用 GLM-4.5V 处理文件,支持多种格式的文件上传和内容提取。
支持的文件格式:
文档:PDF、DOCX、DOC、XLS、XLSX、PPT、PPTX、CSV、TXT
图片:PNG、JPG、JPEG
文件大小限制:
图片文件:最大 5MB
其他文件:最大 50MB
参数:
filePath(必需): 本地文件路径extractPrompt(可选): 内容提取提示词,用于指导如何提取文件内容
返回结果:
{
"ok": true,
"fileId": "file-xxx",
"content": "提取的文件内容...",
"fileType": "PDF文档",
"filename": "document.pdf",
"metadata": {
"uploadTime": 1234567890,
"fileSize": 1024000,
"processingTime": 5000
}
}使用示例
处理 PDF 文档
# 通过 MCP 调用
{
"tool": "process_file",
"arguments": {
"filePath": "./documents/report.pdf",
"extractPrompt": "请提取文档中的主要内容和关键信息"
}
}处理 Excel 表格
{
"tool": "process_file",
"arguments": {
"filePath": "./data/sales.xlsx",
"extractPrompt": "请分析表格数据并总结销售趋势"
}
}Available Tools
3 toolsprocess_fileC
使用 GLM-4.5V 处理文件(上传并提取内容)。支持 PDF、DOCX、DOC、XLS、XLSX、PPT、PPTX、PNG、JPG、JPEG、CSV 等格式
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 文件路径(本地文件路径) | |
| extractPrompt | No | 可选的内容提取提示词,用于指导如何提取文件内容 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions uploading and extracting content but lacks details on permissions needed, rate limits, error handling, or what 'processing' entails beyond extraction. For a tool that interacts with files and an AI model (GLM-4.5V), this is a significant gap in transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and front-loaded, stating the core purpose in the first part. It efficiently lists supported formats without unnecessary elaboration. However, it could be slightly improved by structuring usage guidelines or behavioral details, but it avoids redundancy and waste.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of file processing with an AI model (GLM-4.5V), no annotations, and no output schema, the description is incomplete. It doesn't cover what the tool returns (e.g., extracted text, structured data), error cases, or operational constraints. For a tool with potential side effects (uploading files), more context is needed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters ('filePath' and 'extractPrompt') with descriptions. The description adds minimal value beyond the schema by implying file processing and extraction, but it doesn't provide additional syntax, format details, or examples for parameters. Baseline 3 is appropriate when the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: '使用 GLM-4.5V 处理文件(上传并提取内容)' - it processes files by uploading and extracting content using GLM-4.5V. It specifies supported formats (PDF, DOCX, etc.), making the purpose concrete. However, it doesn't explicitly differentiate from sibling tools like 'read_image' or 'vision_query', which might have overlapping functionality for image processing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It lists supported formats but doesn't explain scenarios where this tool is preferred over 'read_image' (which might handle images) or 'vision_query' (which might involve visual queries). There's no mention of prerequisites, limitations, or comparative use cases.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_imageC
读取本地/URL图片并返回 dataURL 与尺寸信息
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 图片路径或URL | |
| maxSide | No | 最大边长,用于缩放 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It states the tool reads images and returns dataURL with dimensions, but lacks details on error handling (e.g., invalid paths, unsupported formats), performance (e.g., size limits, rate limits), or side effects (e.g., caching). This is a significant gap for a tool with no annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence in Chinese that front-loads the core functionality ('读取本地/URL图片') and specifies the return value ('返回 dataURL 与尺寸信息'). There is zero waste, making it appropriately sized and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description is incomplete. It doesn't explain the return format (e.g., structure of dataURL and dimensions), error cases, or prerequisites (e.g., network access for URLs). For a tool with 2 parameters and no structured output, more context is needed to be fully helpful.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters ('path' and 'maxSide'). The description adds no additional meaning beyond what the schema provides, such as examples or constraints. Baseline 3 is appropriate when the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('读取' meaning 'read') and resource ('图片' meaning 'image'), specifying it reads local or URL images and returns dataURL with dimension information. It distinguishes from sibling 'process_file' and 'vision_query' by focusing on basic image reading rather than processing or querying, though the distinction could be more explicit.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'process_file' or 'vision_query'. It mentions local/URL sources but doesn't specify scenarios where this tool is preferred over siblings, leaving usage context implied rather than explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
vision_queryC
调用 GLM-4.5V 对图片进行 OCR/问答/检测
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 图片路径或URL | |
| prompt | Yes | 查询提示词 | |
| mode | No | 查询模式 | describe |
| returnJson | No | 是否返回JSON格式结果 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the AI model ('GLM-4.5V') and general capabilities but lacks critical details: it doesn't specify output format (though 'returnJson' parameter hints at this), rate limits, authentication needs, error handling, or performance characteristics. The description is too vague for a tool with AI inference capabilities.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence in Chinese that directly states the tool's purpose. It's front-loaded with the core action and avoids unnecessary words. However, it could be slightly more structured by separating the three capabilities for clarity, but it remains appropriately concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of an AI vision tool with no annotations and no output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., text, structured data), how to interpret results, or any limitations (e.g., image size, format support). For a 4-parameter tool invoking an AI model, this leaves significant gaps for an agent to use it effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all four parameters. The description adds no parameter-specific information beyond what's in the schema—it doesn't explain the 'mode' enum values or how 'prompt' interacts with different modes. Baseline 3 is appropriate since the schema does the heavy lifting, but the description doesn't compensate with additional context.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('调用 GLM-4.5V 对图片进行') and the resource ('图片'), specifying three capabilities: OCR, Q&A, and detection. It distinguishes from sibling tools like 'process_file' and 'read_image' by focusing on AI-powered analysis rather than basic file operations. However, it doesn't explicitly differentiate between the three modes or mention the default 'describe' mode from the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'process_file' or 'read_image'. It lists capabilities but doesn't specify scenarios, prerequisites, or exclusions. For example, it doesn't indicate whether it's for complex AI analysis versus simple image reading, leaving usage context entirely implicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
There is significant overlap between tools, particularly 'process_file' and 'read_image'/'vision_query'. 'process_file' handles image files among others, while 'read_image' and 'vision_query' specifically target images, creating ambiguity about which tool to use for image-related tasks. The descriptions do not clearly delineate boundaries, such as whether 'process_file' extracts text from images or if that's reserved for 'vision_query'.
Tool names follow a consistent snake_case pattern (e.g., 'process_file', 'read_image', 'vision_query'), which is readable and predictable. However, there is a minor deviation in verb style: 'process' and 'read' are action-oriented, while 'vision_query' uses a noun-verb combination, slightly reducing consistency.
With only 3 tools, the server feels thin for a vision/processing domain, potentially limiting functionality. While it covers basic file processing and image tasks, the low count may indicate missing operations for a comprehensive GLM-4.5V integration, such as text analysis or batch processing, making it borderline appropriate.
The tool set has significant gaps for a GLM-4.5V server. It lacks core operations like text querying, model configuration, or error handling tools. There is no clear coverage for non-image file types beyond extraction in 'process_file', and missing update/delete operations for processed data could lead to agent failures in complex workflows.
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 Connectors
Background removal, upscaling, face restore, document OCR, table extraction, visual understanding.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
OCR and document understanding: extract text from images, then summarize or translate it.
Video, audio, and image processing for AI agents: convert, transcribe, upscale - 150+ operations.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables image analysis using GLM-4.5V's vision capabilities from Z.AI. Supports analyzing both local image files and URLs with customizable prompts and parameters.17MIT
- FlicenseNot gradedqualityBmaintenanceEnables image analysis using GLM-4V multimodal model, supporting local files and base64 images with optional custom prompts.
- AlicenseAqualityBmaintenanceEnables image analysis using the GLM-4.6V-Flash model, supporting image URLs and local file paths with custom prompts for tasks like OCR and chart analysis.11MIT
- AlicenseNot gradedqualityBmaintenanceProvides image understanding and OCR via GLM-4.6V-Flash, supporting URL, base64, and local file inputs. Enables AI assistants to analyze images and extract text from screenshots, documents, and more.53MIT
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/ccw33/Multimodel-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server