
DeepSeek Visionary
io.github.xlightPublished by GitHub account xlightv0.2.2Updated Oct 24, 2026
DeepSeek web vision model as an MCP server with browser auto-login.
Overview
Gives AI assistants image understanding and OCR through DeepSeek's web vision model, with browser-based auto-login instead of an API key.
- What you can do
- Analyze one or more images with a prompt, optionally with thinking and multi-turn continuation
- Extract text verbatim from screenshots, documents, code and tables via an OCR pipeline
- Check login status and token validity, run browser auto-login, and clear saved credentials
- Also usable as a CLI (vision, ocr, status, login, logout, doctor, init) and as a DeepSeek Harness plugin
- When to use it
- Useful when an assistant needs to read screenshots, diagrams, scanned documents or code images, and you would rather sign in to a DeepSeek web account than manage an API key. Also handy for agents that only accept text input and need images turned into text.
- Requirements
- Runs as a local binary on macOS (Apple Silicon/Intel), Linux (x86_64/aarch64) or Windows x86_64, installed via script, Homebrew, npm or a release binary. A DeepSeek web account is required, plus Chrome, Chromium or Edge for auto-login. Optional environment variables such as DEEPSEEK_USER_TOKEN, DEEPSEEK_SMIDV2, DEEPSEEK_CF_CLEARANCE, DEEPSEEK_BASE_URL and DEEPSEEK_LOGIN_TIMEOUT override defaults. Network access to chat.deepseek.com.
Installation
In SourceWeft
- Open DeepSeek Visionary in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
DeepSeek Visionary
让 DeepSeek 网页版视觉模型,成为你所有 AI 助手的"眼睛"。 在 Zed、OpenCode、Codex、Claude Code、Cursor、Claude Desktop 等任意支持 MCP 的 agent,以及 DeepSeek Harness(DSH,原生插件或 skill + CLI)中直接识图——浏览器自动登录,无需 API key、无需手动复制 token。
Python 版 deepseek-vision-mcp 的 Rust 全量重写:单原生二进制、多平台分发,一处安装处处可用。DSH 用户更可 dsh plugin 一键安装原生插件包 @xlight-oss/visionary-dsh——5 个原生工具 + 文本模型图片桥接,一包全齐。
架构
- visionary-server:单二进制,默认 CLI 模式(
vision/ocr/status/login/logout/skill/init/doctor),mcp-stdio子命令显式启动 MCP stdio 服务;实现完整 vision / OCR 流水线(PoW → 上传 → fork → HIF 签名 → SSE 流式 completion)与 CDP 自动登录 - @xlight-oss/visionary-dsh:DSH 原生插件包(npm,纯 ESM 无构建,单包双插件行),经
ctx.tools注册deepseek_vision/deepseek_ocr等 5 个原生工具,宿主进程内 spawnvisionary-server复用 Rust 管道(续聊/登录不受 bash 沙箱限制);内置文本模型图片桥接(纯文本模型会话粘贴图片自动放行 + 改写为文本引导) - visionary-zed-ext:Zed 扩展壳(仅 Zed 需要),按平台从 GitHub Releases 下载/缓存 visionary-server 并启动
安装
1. 安装二进制
也可以直接从 GitHub Releases 下载对应平台的
visionary-server-<target-triple>裸二进制加入 PATH(Windows 为.exe,或.zip解压)。 Windows 安装脚本默认装到$HOME\.cargo\bin并自动写入 PATH(加-NoModifyPath可跳过);该目录只是 cargo-dist 的默认命名约定,不要求安装 cargo——非 Rust 用户可用VISIONARY_SERVER_INSTALL_DIR环境变量自定义安装目录,或直接用 npm 全局包。首次运行若遇 SmartScreen 弹窗,点「更多信息 → 仍要运行」即可。 npm 全局包注意:Windows 上npm install -g @xlight-oss/visionary-server的 PATH 里只有 shim(.cmd/.ps1),DSH 原生插件会自动解析 shim 定位真实 exe——安装后重启 DSH 即可用。
2. 快速开始(CLI + skill,推荐)
CLI 是零配置入口:安装后即可直接在终端 / 脚本 / AI agent 中调用 vision 识图,无需任何 MCP 配置。首次使用先登录:
给 AI agent 使用时,把内嵌的调用契约 skill 装进 agent 的 skills 目录,agent 即学会以 --json 原子输出正确调用:
3. 进阶:接入 MCP 宿主
需要把 deepseek_vision 作为 MCP 工具暴露给宿主(Zed / OpenCode / Codex / Claude Code / Cursor / Claude Desktop)时,用 init 一键接入:
各 agent 的详细接入文档见 docs/integrations/:
DeepSeek Harness 原生插件:DSH 用户还可安装 npm 插件包
@xlight-oss/visionary-dsh,把deepseek_vision/deepseek_ocr/deepseek_vision_status/deepseek_vision_login/deepseek_vision_logout注册为 DSH 原生工具(结构化 schema、宿主级执行,续聊/登录不受 bash 沙箱限制),安装详见 packages/dsh-plugin/README.md。
新兴通道:Microsoft Agent Package Manager 用户可直接
apm install --mcp io.github.xlight/deepseek-visionary(复用 MCP Registry 标识)。
4. DeepSeek Harness 原生插件(DSH 用户推荐)
DSH 用户除 init dsh(skill + CLI)外,更推荐安装原生插件,获得宿主级权限与结构化工具 schema:
dsh plugin 经包内 dsh.bundle.patch 声明自动注册 visionary-vision、visionary-image-bridge 两个插件行,重启 DSH 后 5 个原生工具出现在工具目录,桥接同时生效(模型可直接调用,无需手写任何配置);两行的配置页由包自身 dsh.client 声明、随主行下发,在 设置 → 插件 → Plugins 打开(不额外占插件行)。验证:dsh --profile web --dump-config 应出现单个 @xlight-oss/visionary-dsh 层。要求 DSH ≥ 0.1.7-rc.1(0.1.5 线请固定 @xlight-oss/[email protected],更早的装 0.7.2)。详见 packages/dsh-plugin/README.md。
文本模型下粘贴图片被拒绝? 本插件已内置图片桥接(
visionary-image-bridge插件行,无需额外安装): 纯文本模型会话中粘贴的图片经桥接放行 → 落盘 → 改写为文本引导, agent 用deepseek_vision完成分析,模型只收到文本;VL 模型原生看图不受干扰。 配置/隐私说明见 packages/dsh-plugin/README.md 的「工具」与「图片桥接」节(设置面板 设置 → 插件 → Plugins 下的两个行配置页,对应visionary-vision:/visionary-image-bridge:settings 命名空间,热重载)。
5. 登录
登录凭据保存在 ~/.deepseek-visionary/config.json,CLI / MCP / DSH 插件三路共享;浏览器自动登录会打开窗口导航到 chat.deepseek.com,登录后自动抓取 token 并保存:
- CLI:
visionary-server login(可先status --json预检) - MCP / DSH 原生工具:调用
deepseek_vision_login
手动兜底:登录 chat.deepseek.com 后,DevTools → Application → Local Storage →
userToken→ 复制JSON.parse(value).value,写入~/.deepseek-visionary/config.json:
6. 使用
- CLI:
visionary-server vision <image>识图(详见下文「CLI 工具」) - MCP / DSH 原生工具:调用
deepseek_vision传入图片路径 / base64 / data URI 即可识图
Zed 扩展安装
如果你只用 Zed,也可以直接从扩展市场安装:
- Zed 命令面板(
Cmd+Shift+P)→zed: extensions→ 搜索 DeepSeek Visionary → Install - 扩展壳自动下载/缓存
visionary-server二进制并启动 MCP 服务 - 授权工具权限(见 docs/integrations/zed.md)
CLI 工具
CLI 输出模式(vision)
vision 的输出模式由 stdout 是否 TTY 与显式开关共同决定:
--stream / --no-stream 可强制指定模式;--json 恒为原子输出(不与 --stream 同用)。失败时退出码非零。
AI agent 使用(CLI + Skill)
CLI 也是 AI agent 的零 MCP 配置工具面:只要 visionary-server 在 PATH,任何能执行 shell 的 agent 都可以调用它。二进制内嵌 agent 调用契约 SKILL.md(随安装具备),核心约定:agent 调用 vision 必须加 --json 原子输出(流式文本无结构化边界,不可可靠解析)。
安装 skill 到 agent skill 目录(以 Zed 为例):
DeepSeek Harness(DSH):DSH 默认扫描
~/.agents/skills与~/.dsh/skills作为技能根,上述位置天然兼容;运行visionary-server init dsh会额外写入 DSH 专属技能根并汇总提示(见 deepseek-harness.md)。DSH 用户更推荐安装原生插件@xlight-oss/visionary-dsh(dsh plugin --profile web add),把deepseek_vision等注册为宿主级原生工具,续聊/登录不受 bash 沙箱限制(见 packages/dsh-plugin/README.md)。
工具面(MCP / DSH 原生)
同一组工具既以 MCP 工具暴露给 MCP 宿主,也以 DSH 原生工具注册给 DeepSeek Harness(命名与 schema 一致):
质量提示:OCR 结果来自服务端文本提取管道,对清晰截图/文档效果好;放大模糊、手写或复杂版式时结果可能不完整。需要结合上下文理解内容(翻译、总结版式)时用
deepseek_vision,deepseek_ocr只负责拿原文。
会话续聊
deepseek_vision(及 deepseek_ocr)支持多轮对话:
continue_conversation=true:复用上一次会话,可对比多张图片session_id:显式切换到指定会话线程
会话状态持久化在 ~/.deepseek-visionary/session.json。
环境变量
开发
发布
版本号由 scripts/bump_version.py 统一管理(同步 Cargo.toml / Cargo.lock×2 / extension.toml / packages/dsh-plugin/package.json / packages/dsh-plugin/lib/index.mjs 的 COMPAT_MINOR / server.json 共 7 个版本条目并校验一致性):
发布完成后,update-server-json workflow(workflow_run 监听 Release 成功)自动下载 5 平台 .mcpb、运行
scripts/update_server_json.py 并把 server.json 的 fileSha256 回填为实际产物哈希(MCP Registry 元数据,commit 回 main)。
若该 workflow 未触发(如手动建 release),可手动兜底:
平台支持
- macOS(Apple Silicon / Intel)
- Linux(x86_64 / aarch64)
- Windows(x86_64)
需要 Chrome / Chromium / Edge 之一用于自动登录。
工作原理(要点)
- PoW:wasmtime 加载 DeepSeek 站内
sha3_wasm_bg.*.wasm(随仓库分发),调用wasm_solve求解upload_file与completion的 challenge - TLS 指纹:completion 端点与 Python 版(curl_cffi chrome131)对齐;Rust 侧默认普通 reqwest,若被 403 再启用指纹模拟(见 design.md spike 记录)
- 登录:CDP 控制 Chrome 系浏览器(专用 profile
~/.deepseek-visionary/browser/),读取localStorage.userToken与smidV2/cf_clearancecookie - 凭据安全:
~/.deepseek-visionary/config.json权限 0600,浏览器 profile 0700
License
MIT
Source: README.md at commit 38c827e
Tools
0Version history
1- v0.2.2LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.