Skip to main content

MCP server for vision capabilities with automatic model fallback via ModelScope API

Project description

vision-mcp-server-pro

MCP server for vision capabilities with automatic model fallback via ModelScope API.

Features

  • Analyze images via URL or local file path
  • Automatic model fallback: when the primary model hits rate limits, it automatically tries the next model
  • Configurable model list via environment variables

Default Model List (fallback order)

  1. Qwen/Qwen3.5-397B-A17B
  2. Qwen/Qwen3-VL-235B-A22B-Instruct
  3. moonshotai/Kimi-K2.5
  4. Qwen/Qwen3.5-122B-A10B

Usage

Add to your MCP client (e.g., Claude Code) using uvx (no global install needed):

claude mcp add vision-mcp-server-pro --scope user \
  -e MODELSCOPE_TOKEN=your_token_here \
  -- uvx vision-mcp-server-pro

Environment Variables

使用前,需要设置以下环境变量:

Variable Required Description
MODELSCOPE_TOKEN Yes 魔搭社区的 API 密钥
MODELSCOPE_MODEL No 首选模型(默认使用回落列表中的第一个)
MODELSCOPE_FALLBACK_MODELS No 自定义回落模型列表,逗号分隔(覆盖默认列表)

获取 MODELSCOPE_TOKEN

访问 魔搭社区 → 个人中心 → API令牌

Specify Primary Model

claude mcp add vision-mcp-server-pro --scope user \
  -e MODELSCOPE_TOKEN=your_token_here \
  -e MODELSCOPE_MODEL=Qwen/Qwen3-VL-235B-A22B-Instruct \
  -- uvx vision-mcp-server-pro

Custom Fallback Models

claude mcp add vision-mcp-server-pro --scope user \
  -e MODELSCOPE_TOKEN=your_token_here \
  -e MODELSCOPE_FALLBACK_MODELS="Qwen/Qwen3.5-397B-A17B,Qwen/Qwen3-VL-235B-A22B-Instruct" \
  -- uvx vision-mcp-server-pro

Tool

The server provides an analyze_image tool:

  • image (required): Image URL or local file path
  • prompt (optional): Question or analysis request (default: "请描述这张图片的内容")

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_mcp_server_pro-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vision_mcp_server_pro-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file vision_mcp_server_pro-1.0.0.tar.gz.

File metadata

  • Download URL: vision_mcp_server_pro-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vision_mcp_server_pro-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cd5620067c61e66033d31f742dc0cc7a1173a65b3ab09c6fe954e60b7a093ede
MD5 b2ca60f92b47f8db57699012051bc76a
BLAKE2b-256 1f08ac4882eb172591f51d63b30b99679a7461de015f01cffd2a06cb68f7c571

See more details on using hashes here.

Provenance

The following attestation bundles were made for vision_mcp_server_pro-1.0.0.tar.gz:

Publisher: publish.yml on lyf534631748/vision-mcp-server-pro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vision_mcp_server_pro-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vision_mcp_server_pro-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f7ccfddf702e0a73e27a1e183f60d0d5ad4cd9f35b6d8ea941a228043b565e8
MD5 73472fd200397041fd544118deb4f951
BLAKE2b-256 0877e7ace81df6627fd6a3c36c466350e7a524d2d2ff0b1d86d76543d9b2e683

See more details on using hashes here.

Provenance

The following attestation bundles were made for vision_mcp_server_pro-1.0.0-py3-none-any.whl:

Publisher: publish.yml on lyf534631748/vision-mcp-server-pro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page