Skip to main content
Glama

API Vision MCP Server

视觉模型图像识别 MCP server,默认模型 mimo-v2.5,兼容 OpenAI 格式 API。


安装

1. 克隆仓库

git clone https://github.com/stzhiyang/api-vision-mcp.git ~/.claude/plugins/custom/api-vision-mcp
cd ~/.claude/plugins/custom/api-vision-mcp
npm install

2. 注册到 Claude Code

编辑 ~/.claude.json,添加全局配置:

"mcpServers": {
  "api-vision": {
    "command": "node",
    "args": ["~/.claude/plugins/custom/api-vision-mcp/index.js"],
    "env": {
      "VISION_API_KEY": "你的API密钥",
      "VISION_API_BASE_URL": "https://api.example.com",
      "VISION_API_MODEL": "mimo-v2.5"
    }
  }
}

3. 重启 Claude Code


Related MCP server: Vision MCP

环境变量

变量

必填

说明

默认值

VISION_API_KEY

API 密钥

-

VISION_API_BASE_URL

API 地址

-

VISION_API_MODEL

模型名称

mimo-v2.5


使用

在对话中粘贴图片并提问,或显式调用:

请使用 analyze_image 工具识别图片内容

说明:MCP 工具不会自动触发,需要用户显式请求或 Claude 判断需要图像识别时才会调用。


切换模型/平台

修改 env 中的三个变量即可:

平台

VISION_API_BASE_URL

VISION_API_MODEL

OpenAI

https://api.openai.com

gpt-4o

DeepSeek

https://api.deepseek.com

deepseek-chat

通义千问

https://dashscope.aliyuncs.com/compatible-mode

qwen-vl-max

智谱

https://open.bigmodel.cn/api/paas

glm-4v

Ollama

http://localhost:11434

llava

注意:不同平台的 API 路径可能不同。如果请求失败,检查 index.js 中的 /v1/chat/completions 路径是否需要调整(如某些平台用 /v1/messages)。


依赖

  • Node.js >= 18

  • @modelcontextprotocol/sdk

  • zod

F
license - not found
-
quality - not tested
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.

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/stzhiyang/api-vision-mcp'

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