Token导航 LogoToken导航TokenDH.com
DesktopLens MCP logo
AI代理stdio官方级别未说明来源级核验

DesktopLens MCP

MCP Server

tsc

DesktopLens MCP是一个Model Context Protocol (MCP) Server,允许Claude Code实时捕获桌面应用程序的UI画面,进行实时串流和UI比较分析,并支持插件扩展生态系统。

工具数

10

提示词数

0

GitHub Stars

0

资源数

0
桌面应用TypeScriptClaudeClaudeVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

LostSunset

提供方

LostSunset

最后核验

2026/5/17 20:19

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx tsc --noEmit

详细介绍

DesktopLens MCP

![CI](https://github.com/LostSunset/DesktopLens_MCP/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/MIT) ](https://nodejs.org/) ](https://www.npmjs.com/package/desktoplens-mcp) ](https://github.com/LostSunset/DesktopLens_MCP/stargazers) ](https://github.com/LostSunset/DesktopLens_MCP/network/members) ](https://github.com/LostSunset/DesktopLens_MCP/issues)

Give Claude Code eyes beyond the browser.

DesktopLens MCP 是一個 Model Context Protocol (MCP) Server,讓 Claude Code 能即時捕獲桌面應用程式的 UI 畫面、進行即時串流、UI 比較分析,並支援 Plugin 擴充生態系統。

功能一覽

核心工具 (6 個)

工具說明
desktoplens_list_windows列出所有可見桌面視窗,支援模糊搜尋
desktoplens_screenshot截取指定視窗截圖,自動儲存快照,支援品質調整與 grid overlay 標注
desktoplens_status回傳伺服器狀態、平台資訊、串流 session 資訊
desktoplens_watch開始即時串流指定視窗,透過 WebSocket 傳輸至 Chrome Viewer
desktoplens_stop停止串流 session (指定或全部)
desktoplens_compare比較兩張截圖差異 — 像素比對、變化區域偵測、diff image 生成

Plugin 工具 (4 個)

工具說明
desktoplens_plugin_search在 GitHub marketplace 搜尋 DesktopLens Plugin
desktoplens_plugin_install從本地路徑安裝 Plugin
desktoplens_plugin_list列出所有已安裝的 Plugin
desktoplens_plugin_remove移除已安裝的 Plugin

快速開始

Claude Code Plugin 安裝(推薦)

透過 Claude Code Plugin Marketplace 一鍵安裝,自動啟動 MCP Server 並載入所有 skills、commands、agents:

/plugin marketplace add LostSunset/DesktopLens_MCP
/plugin install desktoplens-mcp@desktoplens-mcp

安裝後可直接使用:

  • /screenshot [window] — 快速截取桌面視窗截圖
  • /windows [filter] — 列出所有可見視窗
  • /watch [window] — 開始即時串流

手動 MCP 設定

或者,將以下設定手動加入你的 MCP 設定:

{
  "mcpServers": {
    "desktoplens": {
      "command": "npx",
      "args": ["-y", "desktoplens-mcp"]
    }
  }
}

使用範例

> 列出我桌面上所有視窗
> 截取 Notepad 的畫面並分析 UI 佈局
> 開始即時串流 VS Code 的畫面
> 比較截圖前後的 UI 差異
> 搜尋可用的 DesktopLens Plugin
> 停止所有串流 session

即時串流

> 使用 desktoplens_watch 工具串流 "Visual Studio Code" 視窗

回傳:
{
  "session_id": "abc-123",
  "stream_url": "ws://localhost:9876/stream/abc-123",
  "viewer_url": "http://localhost:9876/?session=abc-123",
  "status": "streaming"
}

串流支援自適應 FPS (0.5-5fps)、三種品質級別 (low/medium/high)、dirty block 差異壓縮。

Plugin 系統

> 搜尋 UI 相關的 Plugin
> 安裝 Plugin: /path/to/my-plugin
> 列出已安裝的 Plugin

Plugin 使用命名空間隔離:plugin_{pluginName}_{toolName}。詳見 Plugin 開發指南

架構

Claude Code ◄─ stdio MCP ─► MCP Server (10 tools)
                               │
              ┌────────────────┼────────────────┐
              │                │                │
         Capture         WebSocket          Plugin
         Engine          Streaming          System
              │                │                │
         Screenshots     Chrome Viewer     Marketplace

詳見 系統架構文件

開發

# 安裝依賴
npm install

# TypeScript 型別檢查
npx tsc --noEmit

# 開發模式
npm run dev

# 執行測試 (329 tests)
npm test

# 執行測試 + 覆蓋率 (100%)
npm run test:coverage

# 編譯
npm run build

平台支援

平台截圖方式狀態
Windowsnode-screenshots (Rust native)✅ 完整支援
macOSnode-screenshots (Rust native)✅ 完整支援
Linuxnode-screenshots (Rust native)✅ 完整支援

環境變數

變數預設值說明
DESKTOPLENS_PORT9876WebSocket 埠號
DESKTOPLENS_DEFAULT_FPS2預設串流幀率
DESKTOPLENS_DEFAULT_QUALITYmedium預設畫質 (low/medium/high)
DESKTOPLENS_PLUGIN_DIR~/.desktoplens/pluginsPlugin 目錄
DESKTOPLENS_LOG_LEVELinfo日誌等級 (debug/info/warn/error)

文件

專案路線圖

  • [x] Phase 1 — Core MVP:視窗列表 + 截圖 + MCP Server (v0.1.0)
  • [x] Phase 2 — Streaming:WebSocket 即時串流 + Chrome Viewer (v0.2.0)
  • [x] Phase 3 — Analysis:UI 對比分析 + 標註 (v0.3.0)
  • [x] Phase 4 — Plugin Ecosystem:Plugin 市場 + 動態載入 (v0.4.0)
  • [x] Phase 5 — Polish & Ship:E2E 測試 + 文件 + npm 發布 (v0.5.0)
  • [x] Phase 6 — Claude Code Plugin:Plugin 打包 + Marketplace 發布 (v0.6.0)

授權

MIT

Star History

![Star History Chart](https://star-history.com/#LostSunset/DesktopLens_MCP&Date)

目录标签

目录标签

桌面应用TypeScriptClaude本地部署UI分析实时串流插件扩展MCP协议

支持客户端

ClaudeVS Code

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

tsc

工具数量(toolCount,工具数)

10

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP