Skip to main content
Glama

ai-vision

支持 OpenAI 兼容协议的视觉识别 MCP 服务器。让 Claude Desktop / Cline / Cherry Studio 等 MCP 客户端获得图片识别能力,可接入 OpenAI、通义千问、智谱、Moonshot 等任意 OpenAI 兼容服务商。

📖 完整使用说明(中文): docs/使用说明.html

快速开始

pnpm install
pnpm build

# 方式一:环境变量(也可直接在 MCP 客户端的 env 字段里注入)
OPENAI_API_KEY=sk-xxx node dist/index.js

# 方式二:配置文件(支持多服务商,参考 sample-config.json)
cp sample-config.json config.json
node dist/index.js --config=config.json

Related MCP server: vision-mcp

MCP 客户端配置(推荐:env 注入,无需配置文件)

{
  "mcpServers": {
    "vision": {
      "command": "ai-vision",
      "args": [],
      "env": {
        "OPENAI_API_KEY": "sk-你的密钥",
        "OPENAI_BASE_URL": "https://api.openai.com/v1",
        "OPENAI_MODEL": "gpt-4o"
      }
    }
  }
}

提供的 MCP 工具

工具

功能

analyze_image

分析本地图片(路径 / base64)

analyze_image_url

分析远程图片 URL

analyze_images

多图对比(最多 10 张)

list_models

查询服务商可用模型

技术栈

测试

pnpm test   # 本地 mock 服务器验证协议格式,无需真实 API Key

Available Tools

4 tools
analyze_imageA

分析一张本地图片(通过路径或 base64 数据传入),返回视觉模型的识别结果

Inputs: model, prompt, provider, mime_type, +4 more.

analyze_imagesA

同时分析多张图片(路径/base64/URL 混合),用于对比、找差异、多图综合理解

Inputs: images (required), model, prompt, provider, +2 more.

analyze_image_urlB

分析一张远程图片(通过 http/https URL 传入),返回视觉模型的识别结果

Inputs: url (required), model, prompt, provider, +2 more.

list_modelsA

查询当前服务商支持的模型列表(调用 /v1/models)

Inputs: provider.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct input type (local image, remote image, multiple images, models). No overlap between analyze tools is present.

    Naming Consistency5/5

    All tools follow a clear verb_noun pattern: list_models and analyze_* are consistent and predictable.

    Tool Count5/5

    Four tools is well-scoped for a vision analysis server, covering model listing and image analysis without unnecessary bloat.

    Completeness5/5

    The set covers the core workflows: listing available models, analyzing local and remote images, and multi-image analysis. No obvious gaps for the domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      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
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for image recognition and OCR via OpenAI-compatible vision APIs, supporting local files, URLs, and data URLs. Enables natural language image description and text extraction.
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables image analysis via OpenAI-compatible vision APIs, supporting local files, URLs, and base64 inputs with intelligent tiling for high-resolution images. Provides a secure, configurable MCP stdio server for structured vision analysis.
      91 npm
      3
      MIT