readpic MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@readpic MCP ServerDescribe the image at ~/Desktop/photo.jpg"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
readpic MCP Server
通过 MCP 协议暴露 VL(Vision-Language)模型,让 AI 客户端(Claude Code / Claude 桌面版 / WorkBuddy)能直接理解、分析、描述本地图片。 图片识别模型所需连接信息可以从 onerouter dev 租户下的 vl 模型获取。
快速开始
readpic-mcp 通过 npx 分发,无需手动装 Python 依赖。首次启动时 shim 自动用 uv(或回退 venv)装 fastmcp/httpx,耗时数秒;之后走缓存秒启。
在 MCP 客户端配置
Claude Code(CLI):
claude mcp add readpic -s user \
-e READPIC_API_URL=https://openapi-ai.cmaiot.cn/v1 \
-e READPIC_API_KEY=sk-... \
-e READPIC_MODEL=Qwen3-VL-8B-Instruct \
-- npx -y github:tain-alphanume/readpic-mcpClaude 桌面版 / WorkBuddy(claude_desktop_config.json 或 mcp.json):
{
"mcpServers": {
"readpic": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:tain-alphanume/readpic-mcp"],
"env": {
"READPIC_API_URL": "https://openapi-ai.cmaiot.cn/v1",
"READPIC_API_KEY": "sk-...",
"READPIC_MODEL": "Qwen3-VL-8B-Instruct"
}
}
}
}固定版本:args 改为
["-y", "github:tain-alphanume/readpic-mcp#v0.1.0"](用 git tag)。 前置要求:Node 18+(npx 自带);Python 3.10+ 或 uv(shim 自动探测)。
Related MCP server: Photo AI Studio MCP Server
功能
将 PNG / JPG / JPEG / WEBP / GIF / BMP 图片发送给 VL 模型,返回文本描述
单模型调用,同步返回结果
支持自定义 prompt、system prompt、temperature、seed
支持
response_format(json_object/json_schema)做结构化输出API 地址、密钥、模型名均从环境变量读取,不内嵌凭据
环境变量
变量 | 必填 | 说明 |
| 是 | VL 模型 OpenAI 兼容 API 基址(如 |
| 是 | API 密钥(纯 |
| 是 | 模型名(如 |
三项缺失任一,server 启动即报 EnvironmentError。
MCP Tools
read_pic
读取/理解一张或多张图片,返回 JSON 字符串。
参数 | 类型 | 默认值 | 说明 |
| list[str] | 必填 | 本地图片路径(支持 PNG/JPG/JPEG/WEBP/GIF/BMP) |
| str |
| 给模型的文本指令 |
| str |
| 可选 system prompt |
| float |
| 采样温度 0.0-1.0(vLLM 默认 ~0.7) |
| int |
| 随机种子(可复现) |
| dict |
| 透传 vLLM |
返回 JSON 结构:
{
"images": [
{"path": "E:/tmp/demo.png", "size_kb": 12.3}
],
"prompt": "请详细描述这张图片中的内容",
"response_format": null,
"mode": "single",
"results": [
{
"image": "demo.png",
"model": "Qwen3-VL-8B-Instruct",
"success": true,
"result": "图中为一只橘色猫咪,趴在木质桌面上...",
"error": null
}
]
}多图时 mode 为 "multi",image 为 "all"(所有图片一次性发给同一模型)。失败时 success 为 false、result 为 null、error 填错误信息。
results[].model取响应中的model字段(后端实际处理请求的模型名),响应缺该字段时回退到请求的READPIC_MODEL。
运行时
uv 优先:shim 自动
uv run --with-requirements,uv 管理 ephemeral venv + 缓存,二次启动快。无 uv 回退 venv:在
~/.readpic-mcp/venv建独立 venv 并pip install -r requirements.txt;依赖就绪后跳过安装(哨兵文件.installed标记)。Python 3.10+,Node 18+。
注册辅助脚本(install.py)
若不想手写 MCP 配置,可用 install.py 交互式收集 url/key/model 并自动注册到各宿主。
install.py 不再安装依赖、不再拷贝 server.py,仅做注册(command 已配置为 npx -y github:tain-alphanume/readpic-mcp)。
# clone 仓库后本地运行
git clone https://github.com/tain-alphanume/readpic-mcp.git
cd readpic-mcp/python
python install.py # 自动检测宿主
python install.py --host claude # 指定 Claude Code
python install.py --host claude-desktop # 指定 Claude 桌面版
python install.py --host workbuddy # 指定 WorkBuddy安装流程(两步):
交互式输入
READPIC_API_URL/READPIC_API_KEY/READPIC_MODEL(回车采用默认值)按宿主类型注册 MCP 服务器,把三个变量写入
env
install 脚本不内嵌凭据,每次安装时交互收集,避免源码泄露密钥。
支持平台
宿主 |
| 注册方式 |
Claude Code (CLI) |
|
|
Claude 桌面版 |
| 自动写入 |
WorkBuddy (腾讯) |
| 打印 JSON 配置 + GUI 操作指引 |
自动检测 |
| 按优先级自动选择 |
操作系统: Windows、macOS、Linux
注意事项
单张图片上限 20 MB
模型调用为同步阻塞,超时 300s
多图调用时,所有图片一次性发给同一模型(不再做分布/对比分发)
许可
内部使用。
This server cannot be installed
Maintenance
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/tain-alphanume/readpic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server