Skip to main content

Wayland MCP server (Python, uvx-compatible)

Project description

Wayland MCP Server

Status: WIP License: GPL3

Note: This package was created because existing screenshot solutions didn't work reliably on my Wayland setup. Wayland MCP provides screenshot, analysis, mouse and keyboard control tools for modern Linux desktops.


Features

  • Screenshot & Analysis

    • Custom VLM integration for image analysis
    • Image comparison capabilities
  • Input Simulation

    • Mouse control (move, click, drag, scroll)
    • Keyboard input (typing, key presses)
    • Action chaining for complex sequences

⚠️ Security Warning

WARNING: Enabling input control gives the MCP server full access to your mouse and keyboard. Only use with trusted MCP servers and models.


Quick Start

Input Control Setup

./setup.sh

Configures permissions for evemu-event to control input devices.

MCP Server Configuration

Add to your MCP server config (.roo/mcp.json):

{
  "mcpServers": {
    "wayland-screenshot": {
      "command": "uvx",
      "args": ["wayland-mcp"],
      "env": {
        "OPENROUTER_API_KEY": "your-api-key",
        "VLM_MODEL": "qwen/qwen2.5-vl-72b-instruct:free",
        "XDG_RUNTIME_DIR": "/run/user/1000",
        "WAYLAND_MCP_PORT": "4999",
        "DISPLAY": ":0",
        "WAYLAND_DISPLAY": "wayland-0",
        "XDG_SESSION_TYPE": "wayland"
      }
    }
  }
}

Development

git clone https://github.com/someaka/wayland-mcp
cd wayland-mcp
pip install -e .

License

GPL 3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wayland_mcp-0.3.2.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wayland_mcp-0.3.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file wayland_mcp-0.3.2.tar.gz.

File metadata

  • Download URL: wayland_mcp-0.3.2.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for wayland_mcp-0.3.2.tar.gz
Algorithm Hash digest
SHA256 16e0b95b92cbe78eed2ea15c724609bd16a497a416d75932da75278b7cef0f5d
MD5 9ee58aceb49530f0ecf55e51ce79562c
BLAKE2b-256 af717658a614507f485f0a33ef3561ae0ffd0704fa6bd450788e2160a8144a21

See more details on using hashes here.

File details

Details for the file wayland_mcp-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: wayland_mcp-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for wayland_mcp-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b2f7a40c71f29b1f3f6fd55757aa3f4a283695e320bf5db03be2ae616fcff55c
MD5 d70e65e8acd6033bfce5d228ac523faf
BLAKE2b-256 550d9100c348aabe52b9bb7e6812b8d43862778d70efefd6f34605b912a96bbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page