
GNOME UI MCP
io.github.asattelmaier由 GitHub 帳號 asattelmaier 發布v0.5.0更新於 Oct 24, 2026
GNOME Wayland desktop automation via AT-SPI discovery and Mutter input.
概覽
讓助理檢查並操作本機 GNOME Wayland 桌面的 MCP 伺服器:尋找元素、點擊、輸入、懸停、填寫表單與截圖。
- 可以做什麼
- 對目前視窗做快照,取得穩定的元素 uid,並可透過選取視窗設定快照範圍
- 依 uid 點擊、填寫、懸停與填寫表單,自動等待介面穩定並驗證效果
- 列出視窗,並使用 find_elements、click_element、set_element_text 等底層路徑工具
- 擷取螢幕截圖,並用等待輔助工具讓介面就緒
- 啟動時依類別啟用或停用工具
- 適用情境
- 適合讓助理操作或測試 Wayland 上的 GNOME 桌面應用,例如重現介面步驟、填寫表單或核對螢幕內容,且需與即時工作階段在同一台機器上。
- 執行需求
- 需要執行 GNOME Shell on Wayland 的 Linux 主機與本機即時工作階段;工作階段環境變數 DBUS_SESSION_BUS_ADDRESS、XDG_RUNTIME_DIR、WAYLAND_DISPLAY、DISPLAY、XDG_SESSION_TYPE 必須可用。建議方式使用 Docker Engine,需 host 網路、相同使用者 ID 與執行階段目錄掛載,容器必須與 GNOME 工作階段在同一台機器上執行。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 GNOME UI MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
gnome-ui-mcp
Small MCP server for GNOME Wayland desktop automation.
It exposes GNOME desktop inspection and interaction through AT-SPI for discovery and Mutter RemoteDesktop for input. In practice that means element lookup, activation, typing, screenshots, and wait helpers for the current desktop session.
For navigation it follows a snapshot-driven model: take a snapshot of the active window to get stable element uids, then click/fill/hover/fill_form those uids. Stale uids are rejected rather than silently mis-targeted, and actions auto-wait for the UI to settle. See Navigation below.
Requirements
- Linux host with GNOME Shell on Wayland
- Live local GNOME session on the machine you want to automate
- Session environment available:
DBUS_SESSION_BUS_ADDRESS,XDG_RUNTIME_DIR,WAYLAND_DISPLAY,DISPLAY,XDG_SESSION_TYPE
Docker
- Docker Engine
The container must run on the same machine as the GNOME session and use the session environment plus runtime mounts.
Docker image
The recommended way to run the server is via the published GHCR image:
latest tracks the most recent release. Version tags such as v0.1.0 publish matching image tags as well.
Docker setup
Direct docker run:
--user "$(id -u):$(id -g)" is required so the container joins the same user
session as GNOME, D-Bus, and AT-SPI.
Local development via Compose:
This path additionally requires docker compose.
- Copy
.env.exampleto.env - Adjust the values to your session
- Run:
Available transports
The server supports three transports, both locally and in Docker:
stdio(default): recommended for local MCP clients that spawn the server processstreamable-http: recommended for HTTP-based integrations onhttp://127.0.0.1:8000/mcpsse: available for backwards compatibility onhttp://127.0.0.1:8000/ssewith message POSTs tohttp://127.0.0.1:8000/messages/
Examples:
The same flags can be passed to the Docker image by appending them after the image name:
Marketplaces
The repository includes metadata for these distribution channels:
- MCP Registry via
server.json - Claude Code plugin marketplaces via
.claude-plugin/plugin.json - VS Code and GitHub agent plugin marketplaces via
.github/plugin/plugin.json
Claude Code plugin marketplace
To add this repository as a plugin marketplace in Claude Code:
Then install the plugin:
The plugin starts the published Docker image through
scripts/run-docker-mcp.sh, so Docker and the
GNOME session environment must be available on the host.
Example MCP client configuration
Navigation
The blessed way to drive the desktop is snapshot-first:
take_snapshot— capture the active window (or passwindowfromlist_windows, orapp_name). Every element gets a stable opaqueuidsuch as7_42.click/fill/hover/fill_form— reference elements byuid. Actions auto-wait for the shell to settle and report effect verification. Passinclude_snapshot=trueto get a fresh snapshot of the result in the same turn.select_windowsets the implicit snapshot scope.
A uid is only valid for the latest snapshot: if the UI changed and a uid is rejected as stale, call take_snapshot again and use a fresh one. The lower-level path-based tools (find_elements, click_element, set_element_text, …) remain available as advanced building blocks.
Tool categories can be enabled or disabled at startup with --category NAME / --no-category NAME (for example --category navigation --category input).
API Documentation
Complete tool reference available at https://asattelmaier.github.io/gnome-ui-mcp/
Security
This server can inspect and control the active desktop session. Use it only with trusted MCP clients.
Containerized execution on Ubuntu may require --security-opt apparmor=unconfined
so the process can talk to the GNOME session buses.
來源:README.md,提交 b11ec2f
工具
0版本歷史
1- v0.5.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分