# KDE Plasma

> KDE Plasma is an open-source MCP server for desktop automation. MCP server letting AI agents view and control a KDE Plasma 6 desktop safely. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Linux, CLI
- **Repository:** https://github.com/rjcogburn/plasma-mcp
- **MCP Registry name:** io.github.RJCogburn/plasma-mcp
- **Categories:** [desktop automation](https://ai-powered.com/categories/desktop-automation)
- **Listing updated:** 2026-11-30

## About

Plasma-mcp gives MCP clients such as Claude Code, Codex and Cursor a structured view of a KDE Plasma 6 desktop. Instead of reading screenshots or simulating clicks, it talks to KDE through D-Bus, KWin scripting and KConfig, so an agent can list and arrange windows, change settings, control media and watch desktop events.

Every write is previewed where possible and recorded as a snapshot that can be rolled back with a single undo call. Theme changes also restore the active global theme, colour scheme, cursor and icons, so an undo returns the desktop to its prior state. Permissions are split into read, write, dangerous and private tiers that the user switches on in a local config file.

The server suits Linux desktop users on Plasma 6 who want an assistant to handle window layout, appearance tweaks or notification-driven workflows. It is not available on GNOME or other desktops.

## Features

- **Window listing and tiling:** Lists open windows with their desktops and geometry, and moves, tiles or maximizes them.
- **Settings read and write:** Reads and writes KConfig values, with a dry run by default for changes.
- **Snapshot undo:** Saves config files before each write so the most recent change can be reverted.
- **Desktop event subscriptions:** Buffers window, desktop, media, config and screen-lock events that agents can poll.
- **Notifications and media control:** Sends and closes desktop notifications and toggles play/pause on MPRIS media players.
- **Tiered permissions:** Lets the user enable read, write, dangerous and private tool groups individually.

## Good for

- Tiling an editor beside a browser by asking an agent in plain language
- Switching the desktop between light and dark themes
- Getting notified in chat when a build notification appears
- Reverting a settings change made by an assistant
- Checking which windows and virtual desktops are open

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add plasma-mcp -- uvx plasma-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add plasma-mcp -- uvx plasma-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.plasma-mcp]
command = "uvx"
args = ["plasma-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user plasma-mcp uvx -- plasma-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "plasma-mcp": {
      "command": "uvx",
      "args": [
        "plasma-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 20 tools change data; 13 names don't say. From the server's own tool labels and tool names; not verified by us.

- `get_setting` (name suggests: reads): Read a KConfig value.
- `set_setting` (name suggests: changes): Write a KConfig value; dry run by default.
- `undo_last`: Restore the most recent snapshot.
- `list_windows` (name suggests: reads): List windows and virtual desktops.
- `focus_window`: Activate a window.
- `move_to_desktop` (name suggests: changes): Move a window to a virtual desktop.
- `tile_window`: Tile, maximize or unmaximize a window.
- `current_theme`: Show the active global theme, colour scheme, style, icons and cursor.
- `theme_guide`: Show the theme spec format.
- `check_theme` (name suggests: reads): Validate a theme spec file.
- `apply_theme`: Build and apply a theme spec; dry run by default.
- `notify`: Show a desktop notification.
- `close_notification`: Close a notification by id.
- `notification_status` (name suggests: reads): Show server info and Do Not Disturb state.
- `watch_notifications`: Collect notifications from any app for up to 120 seconds.
- `media_status` (name suggests: reads): Show MPRIS players and current tracks.
- `media_play_pause`: Toggle play or pause on a media player.
- `subscribe_events`: Start buffering desktop events of given kinds.
- `poll_events`: Fetch events after a cursor, optionally waiting.
- `unsubscribe_events`: Stop listening for events.

## FAQ

### Which desktop environment does KDE Plasma support?

It supports KDE Plasma 6 only. The README notes there is no GNOME backend yet.

### Can I undo changes an agent makes?

Yes. Each real write saves a snapshot, and undo_last restores the newest one. Theme snapshots also restore the active theme settings.

### How does KDE Plasma control windows without screenshots?

It loads a short KWin script for each call that reports window data back over D-Bus, and it does not use simulated clicks or keyboard input.

### Does KDE Plasma need extra software for theming?

The theme tools need KDE Customizer installed. Other tools work without it.

### Is KDE Plasma free?

Yes. KDE Plasma is open source, so you can use and self-host it for free.

### How do I add KDE Plasma to Claude Code?

Run this command in your terminal: claude mcp add plasma-mcp -- uvx plasma-mcp

### What are the best alternatives to KDE Plasma?

The closest alternatives to KDE Plasma are kwin-mcp, ultranix-mcp, Windows MCP, Bridge MCP and Computer Use.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [kwin-mcp](https://ai-powered.com/mcp/kwin-mcp): kwin-mcp is an open-source MCP server for developer tools.
- [ultranix-mcp](https://ai-powered.com/mcp/ultranix-mcp): ultranix-mcp is an open-source MCP server for desktop automation.
- [Windows MCP](https://ai-powered.com/mcp/windows-mcp): Windows MCP is an open-source MCP server for desktop automation.
- [Bridge MCP](https://ai-powered.com/mcp/bridge-mcp): Bridge MCP is an open-source MCP server for desktop automation.
- [Computer Use](https://ai-powered.com/mcp/computer-use): Computer Use is an open-source MCP server for desktop automation.
- [Computer Use](https://ai-powered.com/mcp/computer-use-2): Computer Use is an open-source MCP server for desktop automation.
- [Windows Computer Use MCP](https://ai-powered.com/mcp/windows-computer-use-mcp): Windows Computer Use MCP is an open-source MCP server for desktop automation.
- [macOS MCP Server](https://ai-powered.com/mcp/macos-mcp-server-2): macOS MCP Server is an open-source MCP server for desktop automation.

---
Source: https://ai-powered.com/mcp/kde-plasma
