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

./wayland_mcp/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.1.tar.gz (16.5 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.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wayland_mcp-0.3.1.tar.gz
  • Upload date:
  • Size: 16.5 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.1.tar.gz
Algorithm Hash digest
SHA256 bc5d318f7ae6a4dbb94eb807d6ff9d0dcdd7608587a7038ad6e83fcb6b53c76e
MD5 f13fd79f90473770490c44d10af9b072
BLAKE2b-256 7e25754cdb877fe8605f8bbb64859b015d9e94b698da8c9580293826eaea4cdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wayland_mcp-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 2.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d00d46df9e75b34b7ac3319d72b24b4e5070aac52fb901932702ffd2bfedeea7
MD5 cc1544e4c0bfba6de2b0b124a8a56bdf
BLAKE2b-256 20893d3d38d6a187981289784bc3a5c918e8632dd65bb3eac7d1200f6288c217

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