Skip to main content
Glama
ccw33
by ccw33

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 (必需): 图片路径或URL

  • maxSide (可选): 最大边长,用于缩放

vision_query

使用 GLM-4.5V 分析图片。

参数:

  • path (必需): 图片路径或URL

  • prompt (必需): 查询提示词

  • 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 tools
process_fileC

使用 GLM-4.5V 处理文件(上传并提取内容)。支持 PDF、DOCX、DOC、XLS、XLSX、PPT、PPTX、PNG、JPG、JPEG、CSV 等格式

ParametersJSON Schema
NameRequiredDescriptionDefault
filePathYes文件路径(本地文件路径)
extractPromptNo可选的内容提取提示词,用于指导如何提取文件内容

TDQS

C2.9/5.0
Behavior2/5

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.

Conciseness4/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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 与尺寸信息

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes图片路径或URL
maxSideNo最大边长,用于缩放

TDQS

C2.9/5.0
Behavior2/5

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.

Conciseness5/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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/问答/检测

ParametersJSON Schema
NameRequiredDescriptionDefault
pathYes图片路径或URL
promptYes查询提示词
modeNo查询模式describe
returnJsonNo是否返回JSON格式结果

TDQS

C2.9/5.0
Behavior2/5

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.

Conciseness4/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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

C2.9/5.0
Disambiguation2/5

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'.

Naming Consistency4/5

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.

Tool Count3/5

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.

Completeness2/5

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

ActivityInactive
ResponsivenessSyncing

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

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables 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.
    1
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides 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.
    53
    MIT

Latest Blog Posts

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