npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lexmin0412/vision-mcp

v0.0.3

Published

图片理解 MCP Server — 给纯文本模型加上视觉能力

Readme

vision-mcp

给纯文本大模型加上视觉能力的 MCP Server。通过调用多模态 API,让 DeepSeek、GLM、Kimi 等纯文本模型也能"看懂"图片。

安装

npm install -g @lexmin0412/vision-mcp
# 或
pnpm add -g @lexmin0412/vision-mcp

或者从源码安装:

git clone https://github.com/lexmin0412/vision-mcp-server.git
cd vision-mcp-server
pnpm install
pnpm build

配置

设置火山引擎 API Key:

export VOLC_API_KEY=你的火山引擎API Key

可选环境变量:

| 变量 | 默认值 | 说明 | |:-----|:------|:-----| | VISION_MODEL | doubao-seed-2-0-lite-260428 | 多模态模型名称 | | VISION_BASE_URL | https://ark.cn-beijing.volces.com/api/v3/chat/completions | API 端点 | | VISION_TIMEOUT_MS | 60000 | 请求超时(毫秒) |

MCP 配置

Claude Desktop

编辑 claude_desktop_config.json

{
  "mcpServers": {
    "@lexmin0412/vision-mcp": {
      "command": "npx",
      "args": ["-y", "@lexmin0412/vision-mcp"],
      "env": {
        "VOLC_API_KEY": "你的火山引擎API Key"
      }
    }
  }
}

或者本地安装路径:

```json
{
  "mcpServers": {
    "vision-mcp": {
      "command": "node",
      "args": ["/绝对路径/vision-mcp-server/dist/index.js"],
      "env": {
        "VOLC_API_KEY": "你的火山引擎API Key"
      }
    }
  }
}

OpenCode

编辑 opencode.jsonc,在 mcp 字段下添加:

{
  "mcp": {
    "vision-mcp": {
      "type": "local",
      "command": ["npx", "-y", "@lexmin0412/vision-mcp"],
      "enabled": true,
      "environment": {
        "VOLC_API_KEY": "你的火山引擎API Key"
      }
    }
  }
}

工具

read_image

理解图片内容并返回文字描述。

参数:

| 参数 | 必填 | 说明 | |:-----|:----:|:-----| | image | ✅ | 图片来源:本地绝对路径或 http(s) URL | | prompt | ❌ | 对图片的具体提问,默认"详细描述这张图片的内容" |

示例:

read_image image=/Users/xxx/截图.png prompt="这个报错信息是什么"
read_image image=https://example.com/chart.png prompt="描述这张图表的趋势"

配置

| 环境变量 | 默认值 | 说明 | |:---------|:------|:-----| | VOLC_API_KEY | — | 必填。火山引擎 API Key | | VISION_MODEL | doubao-seed-2-0-lite | 多模态模型名称 | | VISION_BASE_URL | https://ark.cn-beijing.volces.com/api/v3/chat/completions | API 端点 | | VISION_TIMEOUT_MS | 60000 | 请求超时(毫秒) | | VISION_MAX_DIM | 1024 | 本地图片压缩阈值(像素) |

工作原理

你(含图片路径的文字 prompt)
  ↓
纯文本 LLM(DeepSeek / GLM / 其他)
  ↓ 遇到图片 → 调用 read_image 工具
vision-mcp MCP Server
  ↓ 本地图片 → base64 编码 + 可选压缩
  ↓ 远程图片 → 直接传 URL
多模态 API(火山引擎 Doubao)
  ↓ 返回图片文字描述
纯文本 LLM 拿到描述后继续回答你的问题

支持的提供商

目前内置火山引擎 Doubao 系列模型。架构设计上通过 providers/ 目录隔离厂商差异,欢迎提交新厂商的适配。

License

MIT