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

View setup.sh on GitHub

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.4.0.tar.gz (17.3 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.4.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wayland_mcp-0.4.0.tar.gz
  • Upload date:
  • Size: 17.3 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.4.0.tar.gz
Algorithm Hash digest
SHA256 90e6e15141b1849b42010d1463b8cb9982e8d17cae88428861bd83b1339a9cf9
MD5 acc9549cbb525089a3e4aac8d491b5bf
BLAKE2b-256 7cd03e69d65a2af7b08542c399952c5d8d4660360e8921d2437d7a48509bf51b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wayland_mcp-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce82c48e7ca0adc0c8955c59f7afebe8faa45c7df7c6e7cf66a6d24de4f2968
MD5 c24fc954d319968af34384b43612c88d
BLAKE2b-256 8bd83038ee4ff5a27840fb4f71466596cd12cbe3657573759a182d83649f6571

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