Skip to main content
Glama

image-mcp

基于 DashScope 视觉模型的本地 MCP server,用于识别本地或远程图片,并默认以 XML 形式返回图片内容,帮助 AI 理解图片。

安装

npm install

Related MCP server: image-mcp

MCP 配置

模型配置通过 MCP client 的 env 注入到 server 进程,不需要也不应该作为 tool 参数传递。

{
  "mcpServers": {
    "image-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/image-mcp/src/index.mjs"],
      "env": {
        "DASHSCOPE_API_KEY": "your-api-key",
        "VISION_MODEL": "qwen-vl-plus",
        "DASHSCOPE_BASE_URL": "https://dashscope.aliyuncs.com/compatible-mode/v1"
      }
    }
  }
}

DASHSCOPE_BASE_URL 可省略,默认使用 https://dashscope.aliyuncs.com/compatible-mode/v1

Tool

recognize_image

  • image_path: 本地图片路径,和 image_url 二选一。

  • image_url: 远程图片 URL,和 image_path 二选一。

  • prompt: 可选识图提示词,默认值为 识别图像内容,使用xml形式输出,帮助ai理解图片内容

  • max_tokens: 可选最大输出 token 数,默认 1024

CLI

npm run vision -- ./dist/ScreenShot_2026-08-01_155219_072.png "识别图像内容,使用xml形式输出,帮助ai理解图片内容"
npm run vision -- --url https://example.com/image.png

本地 npm 使用

如果只是本机使用,不需要发布到 npm registry。推荐用 npm linknpm pack

在项目目录执行:

npm install
npm link

然后 MCP 配置可以直接使用全局命令:

{
  "mcpServers": {
    "image-mcp": {
      "command": "image-mcp",
      "args": [],
      "env": {
        "DASHSCOPE_API_KEY": "your-api-key",
        "VISION_MODEL": "qwen-vl-plus",
        "DASHSCOPE_BASE_URL": "https://dashscope.aliyuncs.com/compatible-mode/v1"
      }
    }
  }
}

如果之后修改了源码,一般不需要重新 link;重启 MCP client 即可加载新代码。

取消本地链接:

npm unlink -g image-mcp

方式二:npm pack

如果想模拟正式 npm 包安装,但仍然只在本地使用:

npm install
npm pack
npm install -g ./image-mcp-1.0.0.tgz

安装后同样可以在 MCP 配置中使用:

{
  "mcpServers": {
    "image-mcp": {
      "command": "image-mcp",
      "args": [],
      "env": {
        "DASHSCOPE_API_KEY": "your-api-key",
        "VISION_MODEL": "qwen-vl-plus"
      }
    }
  }
}

升级本地包时重新执行:

npm pack
npm install -g ./image-mcp-1.0.0.tgz

检查命令

确认全局命令可用:

which image-mcp
image-mcp

image-mcp 是 MCP stdio server,直接运行后会等待 MCP client 输入;没有输出不代表失败。实际验证建议在 MCP client 中查看是否能列出 recognize_image 工具。

特殊说明

项目扩展自 : https://github.com/asuojun/claude-vision-skill/tree/master

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
    -
    quality
    D
    maintenance
    An MCP server for analyzing images using ModelScope's vision models. Supports both local files and URLs, enabling image content description and question answering.
    Last updated
    55
    8
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    Local MCP server that provides multi-modal vision capabilities to single-modal base models via API, supporting multi-turn iterative image recognition and document image parsing.
    Last updated
    27
    Apache 2.0
  • F
    license
    -
    quality
    C
    maintenance
    MCP server that adds Qwen3-VL vision capabilities to Claude Code or any MCP client, enabling OCR, UI/screenshot recognition, and chart understanding. It provides tools for analyzing single or batch images via DashScope's OpenAI-compatible API, with caching and fast mode.
    Last updated

View all related MCP servers

Related MCP Connectors

  • MCP server for ByteDance Seedream AI image generation

  • MCP server for Wan AI video generation

  • MCP server for Grok Imagine AI 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/OoadaioO/image-mcp'

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