vision-augment
The vision-augment MCP Server is a local-first multimodal tool that gives non-vision LLMs (e.g., DeepSeek, GLM) the ability to understand images, extract text, and parse documents — all with privacy-first local execution and flexible cloud fallback.
Core capabilities:
Visual reasoning (
reasoning): Ask questions about images; routes requests through configured OpenAI-compatible endpoints, falling back to a local Ollama vision-language model when no channels are configured.OCR text extraction (
ocr): Extract text from images locally using RapidOCR (ONNX-based, lightweight, cross-platform), supporting Chinese, English, Japanese, Korean, Latin, and more. Optional PaddleOCR upgrade.Document parsing (
document): Convert DOCX, PDF, PPTX, XLSX, HTML, and MD files to Markdown using local markitdown, with optional PaddleOCR-VL or MinerU upgrades for complex content.Health check (
mcp_vision_augment_health): Inspect the operational status of vision channels, Ollama, OCR, and document engines — without exposing API keys — so agents can detect missing dependencies and get installation instructions.Cache management (
mcp_vision_augment_clear_cache): Clear the local result cache; TTL is configurable viaVISION_AUGMENT_CACHE_TTL_SECONDS.
Input flexibility: Accepts local file paths, file:// URIs, data: URLs, and optionally http(s):// URLs (SSRF protection off by default).
Consistent output: All tools return a unified JSON response with {task_type, tool_used, code, error, result, confidence, metadata} for easy integration into agent pipelines.
Uses local Ollama vision-language models (e.g., llava, qwen2.5-vl) as a fallback or primary vision channel, enabling OCR and image reasoning without an external API key.
Routes vision reasoning tasks through OpenAI-compatible API endpoints, allowing the MCP server to use any compatible vision model service for image understanding and question answering.
Click on "Deploy 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., "@vision-augment Describe this image in detail: /tmp/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.
vision-augment
本地优先的多模态视觉 MCP —— 为无视觉 LLM(DeepSeek、GLM 等)提供可自定义端点的看图 / OCR / 文档解析能力。
简化配置、本地优先:不强制依赖云端;OCR 与文档解析全部本地完成
视觉理解用视觉模型:OpenAI 兼容通道链,按序降级,最后兜底本地 Ollama VL(无 key 即用)
不限制模型渠道:任意 OpenAI 兼容端点,
base_url + api_key + model三元组可配多个uvx 一键分发:
uvx vision-augment直接接入任意 MCP harness
架构
MCP client (Hermes / Claude / OpenCode ...)
└─ mcp_vision_augment_vision(task_type=reasoning|ocr|document)
└─ Router ─┬─ reasoning → OpenAI 兼容通道链 + Ollama 兜底
├─ ocr → RapidOCR(本地)→ PaddleOCR(可选升级)
└─ document → markitdown(本地)→ PaddleOCR-VL / MinerU(可选升级)所有工具返回统一 JSON envelope:{task_type, tool_used, code, error, result, confidence, metadata},错误码 0-5。
Related MCP server: vision-bridge-mcp
快速开始
环境要求:Python >= 3.12,uv。
方式一:无 key,本地 Ollama(默认)
ollama pull llava # 或任一视觉模型(llava/vision/qwen2.5-vl/...)
uvx vision-augment方式二:自定义 OpenAI 兼容端点(推荐)
uvx vision-augment[ocr,document] # 按需安装本地 OCR/文档引擎# 注册到 Hermes config.yaml(其他客户端见下)
mcp_servers:
vision-augment:
command: uvx
args: [vision-augment]
env:
VISION_AUGMENT_CHANNELS: '[{"base_url": "https://api.example.com/v1", "api_key": "${API_KEY}", "model": "qwen3.7-plus"}]'无通道配置时自动探测本地 Ollama VL 模型作为兜底;通道配置优先。
本地 OCR/文档引擎(按需安装)
默认安装(
uvx vision-augment)只含视觉理解(云端通道/Ollama);OCR 与文档解析是本地引擎,按需通过 extras 安装:[ocr]:RapidOCR(ONNX,跨平台轻量)——uvx vision-augment[ocr][document]:markitdown(docx/pdf/pptx/xlsx/html → Markdown)——uvx vision-augment[document]
引擎未安装时调用对应任务返回
code=4 dependency_missing(错误信息附安装命令);随时可用mcp_vision_augment_health查看引擎可用状态⚠️ 超时注意:RapidOCR 引擎首次加载(ONNX 模型初始化)较慢,首个 OCR 请求可能触发客户端 MCP 超时——重试一次即可(引擎在 server 进程内缓存,第二次起秒回);若频繁超时,调大客户端 MCP 工具超时(如 opencode 的
toolTimeout),或改用 HTTP 传输(见方式四)
方式三:从 GitHub 直接安装(未发布到 PyPI 前)
# 最新 master(PEP 508 语法:extras 在 @ 之前)
uvx "vision-augment[ocr,document] @ git+https://github.com/CaoMeiYouRen/vision-augment"
# 锁定 tag / commit
uvx "vision-augment @ git+https://github.com/CaoMeiYouRen/vision-augment@v0.1.0"
# 长期安装到 PATH(等价 pipx)
uv tool install "vision-augment[ocr] @ git+https://github.com/CaoMeiYouRen/vision-augment"方式四:HTTP 传输(streamable-http)
适合 Docker 部署、远程服务器、多客户端并发场景(stdio 单进程只能服务一个客户端):
VISION_AUGMENT_TRANSPORT=streamable-http VISION_AUGMENT_PORT=8000 uvx vision-augment默认绑定
127.0.0.1:8000,MCP 端点/mcp;SDK 对 localhost 自动启用 DNS rebinding 防护跨机器访问:设置
VISION_AUGMENT_HOST=0.0.0.0,并自行加反向代理/鉴权(远程暴露是部署方责任)客户端配置示例(Hermes):
mcp_servers:
vision-augment:
url: http://127.0.0.1:8000/mcp
transport: streamable-http注意:不要给
streamable-http端点发送空params的 initialize 探测请求——SDK 会挂起该请求,用合法握手载荷探测。
方式五:Docker 部署(streamable-http)
直接使用 CI 构建发布的多架构镜像(linux/amd64 + linux/arm64,发布到 Docker Hub / ghcr.io / 阿里云三个渠道,tag:latest / 日期 / sha-<短hash>):
docker compose up -d
# 等价:docker run -d --name vision-augment -p 127.0.0.1:8000:8000 caomeiyouren/vision-augment自定义镜像源:
DOCKER_IMAGE=ghcr.io/caomeiyouren/vision-augment docker compose up -d通道/密钥等配置通过环境变量或
.env注入,示例见 docker-compose.yml本地开发构建:
docker build -t vision-augment .(构建上下文直接安装源码,不依赖 PyPI)
与 Hermes 同 compose 网络接入(共享 networks 后走容器名):
mcp_servers:
vision-augment:
url: http://vision-augment:8000/mcp
transport: streamable-http注册到其他客户端
env 字段用于注入通道配置与密钥(与 Hermes 示例中的 env 同理);通道为空时自动探测本地 Ollama 兜底。
// Claude Desktop: claude_desktop_config.json
{
"mcpServers": {
"vision-augment": {
"command": "uvx",
"args": ["vision-augment"],
"env": {
"VISION_AUGMENT_CHANNELS": "[{\"base_url\": \"https://api.example.com/v1\", \"api_key\": \"...\", \"model\": \"qwen3.7-plus\"}]"
}
}
}
}// OpenCode: opencode.json(--from 指定 extras 可启用本地 OCR/文档引擎)
{
"mcp": {
"vision-augment": {
"type": "local",
"command": ["uvx", "--from", "vision-augment[ocr,document]", "vision-augment"],
"enabled": true,
"env": {
"VISION_AUGMENT_CHANNELS": "[{\"base_url\": \"https://api.example.com/v1\", \"api_key\": \"...\", \"model\": \"qwen3.7-plus\"}]"
}
}
}
}注意:修改配置(通道/模型/extras)后需重启客户端会话——MCP server 在启动时加载 env,不重启仍是旧配置。
工具
工具 | 说明 |
| 入口: |
| 环境探测:通道/Ollama/OCR/文档引擎配置状态(不含密钥),供 agent 反馈缺失配置 |
| 清除本地结果缓存 |
安装与使用 Skill
仓库根目录的 SKILL.md 符合 Agent Skills 规范,可通过 npx skills 生态一键安装(需仓库已公开):
# 全局安装到 opencode / hermes-agent
npx skills add CaoMeiYouRen/vision-augment -g -a opencode -a hermes-agent -y
# 或项目级安装(不指定 -g)
npx skills add CaoMeiYouRen/vision-augment
# 查看已安装
npx skills listSkill 安装后 agent 的工作方式:
环境探测:优先调用
mcp_vision_augment_health检查通道/Ollama/引擎状态,自动向你反馈还缺哪些配置及安装命令(如uvx vision-augment[ocr])任务路由:看图 →
reasoning;图片文字 →ocr;文档解析 →document,由 skill 指引 agent 选择故障闭环:错误码 0-5 对应的处置路径写在 SKILL.md 中
手动安装:把 SKILL.md 复制到 ~/.config/opencode/skills/vision-augment/(opencode)或 ~/.hermes/skills/(Hermes)等目录即可。
配置(环境变量,均有默认值)
变量 | 默认 | 说明 |
|
| OpenAI 兼容通道 JSON 数组 |
|
| 本地 Ollama 地址 |
|
| 缓存 TTL(0=关闭) |
|
| 缓存目录 |
|
| 输入大小上限 |
|
| 输出截断上限 |
|
| 允许 http(s) 输入(防 SSRF,默认关闭) |
|
| DEBUG 日志 |
|
| 传输方式: |
|
| HTTP 绑定地址 |
|
| HTTP 端口 |
完整说明见 docs/design.md。
开发
uv sync # 安装开发环境(基础依赖)
uv run pytest # 单元测试(不依赖重型引擎)
uv run ruff check # 代码检查安装可选引擎做集成验证:
uv sync --extra ocr --extra document # RapidOCR + markitdown
# 或全量:uv sync --all-extras(含 PaddleOCR,体积大)发布(CI 自动)
push 到 master 后,release workflow 由 python-semantic-release 根据 conventional commits 自动版本化(pyproject + __version__ + CHANGELOG + tag + GitHub Release),并通过 Trusted Publisher(OIDC,免 token) 发布到 PyPI。
Trusted Publisher 配置(PyPI → Publishing → Trusted Publishers → Add pending publisher):
字段 | 值 |
PyPI Project Name |
|
Owner |
|
Repository name |
|
Workflow name |
|
Environment name | 留空 |
首次发布后 uvx vision-augment 即生效。手动发布备选:uv build && uv publish(需 UV_PUBLISH_TOKEN)。
文档
许可证
MIT © 2026 CaoMeiYouRen
Available Tools
3 toolsmcp_vision_augment_clear_cacheA
清除本地结果缓存(缓存 TTL 上限由 VISION_AUGMENT_CACHE_TTL_SECONDS 控制)。
Inputs: no named parameters. Returns: result
mcp_vision_augment_healthA
环境探测:检查视觉通道/Ollama/OCR/文档引擎的配置状态(不含密钥), 用于向用户反馈还缺少哪些配置及对应安装命令。
Inputs: no named parameters.
mcp_vision_augment_visionA
多模态视觉工具:为无视觉能力的 LLM 提供看图、OCR 与文档解析能力。
返回统一 JSON envelope:{task_type, tool_used, code, error, result, confidence, metadata}。 视觉理解按配置的 OpenAI 兼容通道依次降级,最后兜底本地 Ollama VL 模型; OCR 与文档解析在本地完成(RapidOCR / markitdown)。
Inputs: source (required), task_type (required), task, language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: the vision tool performs vision/OCR/document tasks, clear_cache manages caching, and health checks the environment. There is no overlap or ambiguity between them.
All tools share the consistent mcp_vision_augment_ prefix, but the suffixes are not uniform: 'clear_cache' follows verb_noun, while 'vision' and 'health' are nouns. Still, the pattern is predictable and readable.
Three tools is at the lower end of the typical range but is reasonable for this server's scope: one main functional tool plus two support tools. It does not feel unnecessary or sparse.
The tool surface covers the core vision augmentation functionality (vision, OCR, document parsing) and the necessary operational tools (health check, cache clearing). No obvious missing operations that would impede an agent.
Maintenance
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Chat, image, video, and audio models from many vendors behind one remote MCP server and one key.
OCR for agents: PDFs and images to Markdown or JSON, routed across OCR models. Free models included.
Hosted MCP server: convert PDFs to clean, LLM-ready Markdown with tables, formulas and OCR.
Related MCP Servers
- AlicenseAqualityBmaintenanceLocal MCP server that provides multi-modal vision capabilities to single-modal base models via API, supporting multi-turn iterative image recognition and document image parsing.419 npmApache 2.0
- AlicenseAqualityDmaintenanceEnables non-multimodal models to see images by providing MCP tools for image understanding and OCR, backed by any OpenAI-compatible vision model.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables text-only models to understand images through a conversational MCP server, supporting multi-turn follow-ups, URL inputs, and OpenAI-compatible vision APIs.1MIT
- AlicenseAqualityDmaintenanceProvides vision understanding capabilities such as image analysis, OCR, object localization, and video frame analysis, plus optional image generation and editing, to coding agents via OpenAI-compatible multimodal models. Runs as a local MCP server with HTTP and stdio transports, configurable for clients like Codex, Claude Code, Kimi, and Cursor.323 npmMIT