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.

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

讓助理檢查並操作本機 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 工作階段在同一台機器上執行。
安裝前請注意
它能檢查與操作目前桌面工作階段,只應連接可信任的 MCP 用戶端。Docker 方式使用 host 網路、unconfined AppArmor 並掛載工作階段執行階段目錄,會擴大容器可存取的範圍。其操作會在真實應用中點擊、輸入並改變介面狀態。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 GNOME UI MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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:

text
ghcr.io/asattelmaier/gnome-ui-mcp:latest

latest tracks the most recent release. Version tags such as v0.1.0 publish matching image tags as well.

Docker setup

Direct docker run:

bash
docker run --rm \  --security-opt apparmor=unconfined \  --network host \  --user "$(id -u):$(id -g)" \  -e DBUS_SESSION_BUS_ADDRESS="$DBUS_SESSION_BUS_ADDRESS" \  -e XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \  -e WAYLAND_DISPLAY="$WAYLAND_DISPLAY" \  -e DISPLAY="$DISPLAY" \  -e XDG_SESSION_TYPE="${XDG_SESSION_TYPE:-wayland}" \  -v "$XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR" \  -v /tmp/.X11-unix:/tmp/.X11-unix:ro \  ghcr.io/asattelmaier/gnome-ui-mcp:latest

--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.

  1. Copy .env.example to .env
  2. Adjust the values to your session
  3. Run:
bash
docker compose builddocker compose run --rm gnome-ui-mcp

Available transports

The server supports three transports, both locally and in Docker:

  • stdio (default): recommended for local MCP clients that spawn the server process
  • streamable-http: recommended for HTTP-based integrations on http://127.0.0.1:8000/mcp
  • sse: available for backwards compatibility on http://127.0.0.1:8000/sse with message POSTs to http://127.0.0.1:8000/messages/

Examples:

bash
gnome-ui-mcpgnome-ui-mcp --transport streamable-httpgnome-ui-mcp --transport sse

The same flags can be passed to the Docker image by appending them after the image name:

bash
docker run ... ghcr.io/asattelmaier/gnome-ui-mcp:latest --transport streamable-httpdocker run ... ghcr.io/asattelmaier/gnome-ui-mcp:latest --transport sse

Marketplaces

The repository includes metadata for these distribution channels:

Claude Code plugin marketplace

To add this repository as a plugin marketplace in Claude Code:

sh
/plugin marketplace add asattelmaier/gnome-ui-mcp

Then install the plugin:

sh
/plugin install gnome-ui-mcp

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

json
{  "mcpServers": {    "gnome-ui": {      "command": "docker",      "args": [        "run",        "--rm",        "--security-opt",        "apparmor=unconfined",        "--network",        "host",        "--user",        "1000:1000",        "-e",        "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus",        "-e",        "XDG_RUNTIME_DIR=/run/user/1000",        "-e",        "WAYLAND_DISPLAY=wayland-0",        "-e",        "DISPLAY=:0",        "-e",        "XDG_SESSION_TYPE=wayland",        "-v",        "/run/user/1000:/run/user/1000",        "-v",        "/tmp/.X11-unix:/tmp/.X11-unix:ro",        "ghcr.io/asattelmaier/gnome-ui-mcp:latest"      ]    }  }}

Navigation

The blessed way to drive the desktop is snapshot-first:

  1. take_snapshot — capture the active window (or pass window from list_windows, or app_name). Every element gets a stable opaque uid such as 7_42.
  2. click / fill / hover / fill_form — reference elements by uid. Actions auto-wait for the shell to settle and report effect verification. Pass include_snapshot=true to get a fresh snapshot of the result in the same turn.
  3. select_window sets 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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.5.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分