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.0.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.0-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wayland_mcp-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 54e069c0beb0b72c057d1f195cfe7ebec7d8dc85f867484f2d0aafd4984cf6a9
MD5 4891a0d753e17ca6d979d3e87d54fedf
BLAKE2b-256 19e4cf662a8089362eda7132eba6272643c502fb3d42d070becea99c84105b5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wayland_mcp-0.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9081bb85c6e7e9f1d09038127f0a103e442fa96dd652e6614ce95e9e496a0f8f
MD5 e554f209b97a9181b55534c6e59f99f7
BLAKE2b-256 5de9218fcaa9950cfacc255f90dd3f371597d57320e85e26b81bc6e3bd546b9e

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