Skip to main content
Glama
liunan-githu

Image-Vision MCP Server

by liunan-githu

Image-Vision MCP Server

让纯文本语言模型通过调用多模态 API 来"看懂"图片。

安装

pip install -r requirements.txt

Related MCP server: Vision MCP

配置

复制 .env.example.env,填入 API Key:

IMAGE_OPENAI_API_KEY=sk-xxx
IMAGE_ANTHROPIC_API_KEY=sk-ant-xxx
IMAGE_PROVIDER=openai

在 Claude Code 中使用

在项目根目录创建 .mcp.json

{
  "mcpServers": {
    "image-vision": {
      "command": "python",
      "args": ["path/to/image-vision-mcp/server.py"],
      "env": {
        "IMAGE_OPENAI_API_KEY": "sk-xxx",
        "IMAGE_PROVIDER": "openai"
      }
    }
  }
}

在 MiMo Code 中使用

在 MCP 设置面板中添加:

  • 命令: python

  • 参数: 你的路径/image-vision-mcp/server.py

  • 环境变量: 填入 API Key

使用

agent 会自动发现 describe_image 工具。用户发图后,agent 会调用它获取文字描述再回复。

也可以手动调用:

describe_image(image="path/to/photo.png", provider="openai")
describe_image(image="https://example.com/img.jpg", provider="anthropic")

测试

# 测试 OpenAI
set IMAGE_OPENAI_API_KEY=sk-xxx && python test_image.py openai

# 测试 Anthropic
set IMAGE_ANTHROPIC_API_KEY=sk-ant-xxx && python test_image.py anthropic

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityStale
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

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/liunan-githu/image-vision-mcp'

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