VL 视觉理解 MCP 服务 - 基于 tokendance 的 Qwen2.5-VL 模型
Project description
VL MCP Server
基于 MCP(Model Context Protocol)协议的视觉理解服务,通过 tokendance 平台调用 Qwen2.5-VL 模型,实现图片内容分析功能。
功能特性
- 支持图片 URL 和 Base64 编码输入
- 基于 Qwen2.5-VL-7B-Instruct 模型
- 兼容 Cherry Studio、Claude Code、Cursor 等 MCP 客户端
- 可托管部署到魔搭 MCP 广场
安装使用
环境要求
- Python >= 3.10
- uv(推荐)或 pip
配置
设置环境变量:
export TOKENDANCE_API_KEY="your-api-key"
MCP 客户端配置
Cherry Studio / Claude Desktop / Cursor:
{
"mcpServers": {
"vl-image-analyzer": {
"command": "uvx",
"args": ["vl-mcp-server"],
"env": {
"TOKENDANCE_API_KEY": "your-api-key"
}
}
}
}
开发
本地开发
# 克隆仓库
git clone <repo-url>
cd vl-mcp-server
# 使用 uv 安装依赖
uv sync
# 运行服务
uv run vl-mcp-server
调试
使用 MCP Inspector:
npx @modelcontextprotocol/inspector uv run vl-mcp-server
工具说明
analyze_image
分析图片内容并返回描述。
参数:
image(string, 必填): 图片 URL 或 Base64 编码字符串image_type(string, 可选): 图片类型,"url" 或 "base64",默认 "url"prompt(string, 可选): 自定义分析提示词,默认 "请详细描述这张图片的内容"
示例:
{
"image": "https://example.com/image.jpg",
"image_type": "url",
"prompt": "描述这张图片的主要内容"
}
许可证
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vl_mcp_server-0.1.1.tar.gz
(47.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vl_mcp_server-0.1.1.tar.gz.
File metadata
- Download URL: vl_mcp_server-0.1.1.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8505e20ed55ab80a41ae3ebc3e705b6f812d0f10b9987a92ac101dba00adefe6
|
|
| MD5 |
9e25378d351100f218d656a751af8367
|
|
| BLAKE2b-256 |
10a17ddf0dd48938bd8995c7fd656e433fb2951438df58319d3bf520b1e0926f
|
File details
Details for the file vl_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vl_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb0533625ce0bf14f3d485cf4a314325f2c1253d63f09189e05a5558aeb219f2
|
|
| MD5 |
93e9444b190a050529b106aa82e2879f
|
|
| BLAKE2b-256 |
00d2b3a72649ea64de16d2bebc5527893e5abe9f27d272825f0b1e374429b623
|