
isac322/kwin-mcp 是从 https://github.com/isac322/kwin-mcp. 导入的 MCP 服务器候选
概览
isac322/kwin-mcp 是从 https://github.com/isac322/kwin-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
Model Context Protocol server for Linux 桌面 GUI 自动化,适用于 KDE Plasma 6 Wayland
一款模型上下文协议(MCP)服务器,使 AI 代理(Claude Code、光标及其他 MCP 客户端)能够在孤立的虚拟 KWin 会话中启动、交互并观察任何 Wayland 应用——而不影响用户的桌面显示或输入。它还支持通过连接现有的 KWin 会话(真实桌面或容器)实现协作工作流,实现实时桌面自动化。拥有 29 个 MCP 工具,涵盖会话、应用、屏幕截图、AT-SPI2 辅助树、窗口管理、鼠标、键盘、触摸屏、剪贴板和 D-Bus,满足 Linux 端到端图形界面测试和桌面自动化所需的一切。
[!重要] kwin-mcp 1.0 重命名并重塑了工具。 1.0 中的 29 个工具取代了 0.12 的 37 个工具,每个工具共享参数类型和结构化输出。移除的工具名称会返回错误,并命名其替代工具。参见从 0.11 迁移(也涵盖 0.12)。
目录
- 为什么是kwin-mcp?
- 使用场景
- 快速入门
- 配置
- 服务器标志
- 可用工具
- 共享参数类型
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
kwin-mcp
Model Context Protocol server for Linux desktop GUI automation on KDE Plasma 6 Wayland
A Model Context Protocol (MCP) server that enables AI agents (Claude Code, Cursor, and other MCP clients) to launch, interact with, and observe any Wayland application in an isolated virtual KWin session – without affecting the user’s desktop display or input. It also supports live desktop automation by connecting to an existing KWin session (real desktop or container) for collaborative workflows. With 29 MCP tools covering sessions, apps, screen capture, the AT-SPI2 accessibility tree, window management, mouse, keyboard, touch, clipboard, and D-Bus, kwin-mcp provides everything needed for end-to-end GUI testing and desktop automation on Linux.
[!IMPORTANT] kwin-mcp 1.0 renamed and reshaped the tools. The 29 tools of 1.0 replace the 37 tools of 0.12, with shared argument types and structured output on every tool. A removed tool name returns an error that names its replacement. See Migrating from 0.11 (also covers 0.12).
Table of Contents
- Why kwin-mcp?
- Use Cases
- Quick Start
- Configuration
- Server Flags
- Available Tools
- Shared Argument Types
- How It Works
- System Requirements
- Installation
- Migrating from 0.11
- Limitations
- End-to-End Testing
- Contributing
- License
Why kwin-mcp?
- Isolated sessions – Each session runs in its own
dbus-run-session+kwin_wayland --virtualcompositor. Your host desktop never receives its windows or input. This is not a filesystem or network sandbox; see Isolation scope. - Live session support – Connect to a real KDE Plasma desktop or a KWin instance inside a container (e.g.
systemd-nspawn) for collaborative “share my screen” workflows. - No screenshots required for interaction – The AT-SPI2 accessibility tree gives the AI agent structured widget data (roles, names, coordinates, states, available actions). Every element comes with a
refthat any pointer or touch tool accepts as a target, andelement_actinvokes an element’s action without pointer coordinates at all.
安装
uvx kwin-mcp配置
{
"mcpServers": {
"kwin-mcp": {
"command": "uvx",
"args": ["kwin-mcp"]
}
}
}