Skip to main content
Glama

glm-vision-mcp

Ein MCP-Server, der das GLM-4.6V-Flash-Modell von Zhipu (kostenloses Vision-Modell) kapselt und jedem MCP-Client ein analyze_image-Tool bereitstellt, das Einzelbild-/Mehrbildanalyse, OCR und Mehrbildvergleich unterstützt.

Funktionen

Fähigkeit

Beschreibung

Bildanalyse

Lokaler Pfad / http(s)-URL / base64-data-URI – alles möglich, wird automatisch in data-URI umgewandelt

Mehrbildvergleich

Mehrere Bilder in einem Aufruf übergeben, gemäß Prompt vergleichend analysieren

Ratenlimit-Robustheit

429 / 1302 / 1305 mit exponentiellem Backoff erneut versuchen → Mehrfach-Key-Rotation → Fallback auf Ersatzmodell glm-4.1v-thinking-flash

Konfigurationsprüfung

Das Tool check_config prüft Key/Modell/Endpunkt, ohne den Key preiszugeben

Related MCP server: vision-mcp

Systemanforderungen

  • Python >= 3.10

  • API-Key der Zhipu Open Platform (https://open.bigmodel.cn/usercenter/apikeys), glm-4.6v-flash ist kostenlos

  • Um die Wahrscheinlichkeit von Ratenlimits weiter zu verringern, können Sie mehrere Konten registrieren und jeweils einen Key erhalten; bei der Konfiguration durch Kommas getrennt angeben

Installation

cd glm-vision-mcp
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt

Start

# stdio 模式(MCP 客户端默认方式)
$env:ZHIPU_API_KEY = "你的Key"
.venv\Scripts\python server.py

# SSE 调试模式(无鉴权,仅限本机)
.venv\Scripts\python server.py --sse 8090

Client-Konfiguration

Codex (~/.codex/config.toml)

[mcp_servers.glm-vision]
command = "C:\\绝对路径\\glm-vision-mcp\\.venv\\Scripts\\python.exe"
args = ["C:\\绝对路径\\glm-vision-mcp\\server.py"]

[mcp_servers.glm-vision.env]
ZHIPU_API_KEY = "你的Key"
# GLM_VISION_MODELS = "glm-4.6v-flash"
# GLM_API_BASE = "https://open.bigmodel.cn/api/paas/v4/chat/completions"

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "glm-vision": {
      "command": "C:\\绝对路径\\glm-vision-mcp\\.venv\\Scripts\\python.exe",
      "args": ["C:\\绝对路径\\glm-vision-mcp\\server.py"],
      "env": { "ZHIPU_API_KEY": "你的Key" }
    }
  }
}

Tool-Schnittstelle

analyze_image(images, prompt, temperature, max_tokens, thinking)

Parameter

Typ

Erforderlich

Beschreibung

images

string[]

Ja

Lokaler Pfad / http(s)-URL / data-URI

prompt

string

Nein

Analyseanforderung, Standard: „Bitte beschreiben Sie den Inhalt dieses Bildes detailliert“

temperature

number

Nein

0.0~1.0, Standard 0.7

max_tokens

integer

Nein

Maximale Ausgabe-Token, Standard 2048

thinking

boolean

Nein

Deep-Thinking-Modus, Standard false

Umgebungsvariablen

Variable

Erforderlich

Beschreibung

ZHIPU_API_KEY

Ja

Zhipu-API-Key, durch Kommas getrennt für Mehrfach-Key-Rotation

GLM_VISION_MODELS

Nein

Modellpriorität, durch Kommas getrennt, Standard glm-4.6v-flash,glm-4.1v-thinking-flash

GLM_API_BASE

Nein

Überschreibt den API-Endpunkt

Hinweise

  • Lokale Bilder maximal 10 MB pro Bild, unterstützt jpg/jpeg/png/webp/gif/bmp

  • Das kostenlose Modell kann zu Spitzenzeiten Ratenlimits haben; nur wenn alle Keys und alle Modelle limitiert sind, wird ein Fehler gemeldet; warten Sie 15~30 Sekunden und versuchen Sie es außerhalb der Spitzenzeiten erneut

  • Fehler wie 401/400 (keine Ratenlimits) werden nicht herabgestuft oder erneut versucht, sondern direkt zurückgegeben, um die Fehlersuche in der Konfiguration zu erleichtern

Verifikation

# 离线检查(不联网)
.venv\Scripts\python test_smoke.py

# 联网冒烟:MCP 握手 + analyze_image 真实调用
$env:ZHIPU_API_KEY = "你的Key"
.venv\Scripts\python test_smoke.py --live
Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    A
    quality
    A
    maintenance
    Multi-model vision understanding MCP server that provides unified image analysis for AI assistants without native vision, supporting models like GLM-4.6V, DeepSeek-OCR, Qwen3-VL-Flash, and more.
    1
    3,789
    100
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for analyzing images using multiple vision LLM providers (OpenCode, OpenAI, Anthropic, Google, and custom OpenAI-compatible endpoints). Provides tools to analyze single or multiple images, list providers, and test vision capabilities.
    MIT

View all related MCP servers

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.

  • MCP server for MiniMax H3 multimodal video generation

View all MCP Connectors

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/River831/glm-vision-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server