Skip to main content
Glama

Kimi Vision MCP

一个基于 Kimi K2.5 视觉模型的 MCP 服务器,用于分析图片内容。

功能特性

  • ✅ 支持本地图片文件和 URL

  • ✅ 支持多种图片格式 (JPG, PNG, GIF, WebP)

  • ✅ 安全的 URL 验证,防止 SSRF 攻击

  • ✅ 文件大小限制 (最大 10MB)

  • ✅ 自定义分析提示词

Related MCP server: Vision MCP

安装

方式 1: 通过 npm 安装 (推荐)

npm install -g kimi-vision-mcp

方式 2: 从源码安装

git clone https://github.com/yourusername/kimi-vision-mcp.git
cd kimi-vision-mcp
npm install
chmod +x index.js

配置

1. 获取 Kimi API Key

访问 Moonshot AI 注册并获取 API Key。

2. 配置 Claude Desktop

编辑配置文件:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

使用 npm 全局安装 (推荐)

{
  "mcpServers": {
    "kimi-vision": {
      "command": "kimi-vision-mcp",
      "env": {
        "KIMI_API_KEY": "your-api-key-here"
      }
    }
  }
}

使用本地路径

{
  "mcpServers": {
    "kimi-vision": {
      "command": "node",
      "args": ["/absolute/path/to/kimi-vision-mcp/index.js"],
      "env": {
        "KIMI_API_KEY": "your-api-key-here"
      }
    }
  }
}

3. 重启 Claude Desktop

配置完成后,完全退出并重启 Claude Desktop。

使用方法

在 Claude 对话中:

请帮我分析这张图片: /path/to/image.jpg

或使用 URL:

请分析这张图片: https://example.com/image.png

自定义提示词

请用以下要求分析图片 /path/to/screenshot.png:
重点关注UI布局和配色方案

API 参数

analyze_image

  • image_path (必需): 图片文件路径或 URL

  • prompt (可选): 对图片的具体问题或要求

  • model (可选): 使用的模型名称,默认 kimi-k2.5

支持的图片格式

  • JPG/JPEG

  • PNG

  • GIF

  • WebP

限制

  • 最大文件大小: 10MB

  • 下载超时: 30秒

  • 仅支持公开可访问的图片 URL

故障排除

1. "KIMI_API_KEY 环境变量未设置"

确保在配置文件中正确设置了 API Key。

2. "文件不存在"

检查文件路径是否正确,使用绝对路径更可靠。

3. "不支持的 URL 或存在安全风险"

不支持访问本地网络地址 (localhost, 127.0.0.1, 内网 IP 等)。

开发

# 克隆项目
git clone https://github.com/yourusername/kimi-vision-mcp.git
cd kimi-vision-mcp

# 安装依赖
npm install

# 运行
KIMI_API_KEY=your-key node index.js

贡献

欢迎提交 Issue 和 Pull Request!

许可证

MIT License

相关链接

Available Tools

1 tool
analyze_imageA

使用 Kimi K2.5 分析图片内容,支持本地文件路径或图片 URL。支持格式: JPG, PNG, GIF, WebP。最大文件大小: 10MB。

Inputs: image_path (required), model, prompt.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 1 tool

    Disambiguation4/5

    With only a single tool in the set, there is no possibility of misselection between tools. The purpose (analyze an image via Kimi K2.5) is clearly stated, though there is nothing to distinguish it from.

    Naming Consistency4/5

    The lone name 'analyze_image' follows a clean verb_noun snake_case convention. There is no inconsistency, but one name cannot establish a robust pattern across a set.

    Tool Count2/5

    A single tool is a very thin surface for a server branded as a vision MCP. While image analysis is a focused job, one operation leaves little room for realistic multi-step workflows.

    Completeness3/5

    Core single-image analysis is covered with format and size guidance, but obvious adjuncts are missing: batch/multi-image analysis, image comparison, and metadata or OCR-specific extraction. Agents can work around this by calling the tool repeatedly, but coverage is minimal.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers