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.1.tar.gz (16.1 kB view details)

Uploaded Source

Built Distributions

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

wayland_mcp-0.3.2.1.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wayland_mcp-0.3.2.1.tar.gz
  • Upload date:
  • Size: 16.1 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.1.tar.gz
Algorithm Hash digest
SHA256 48eb8799dfa8f4e00d6357fcbb87c8ff9981496777a0c2ae5e6d2182c9878bae
MD5 50fa7b23ffb9b154c69b7543571761a5
BLAKE2b-256 f8b870af938d141dc4cc4d5fef3fdfa1cdcf58a046a3b6d89c837ca033ddd249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wayland_mcp-0.3.2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6093821756a5dd2274a4b20f786c6135b52564b11d1e429c6cf00824ed1e8e60
MD5 54381feab87b0790cb1ae84f3acb3cab
BLAKE2b-256 16d1c9f07452bf7efd941a38305c6866dbee0bdce9fbd756b8519e11becc975e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wayland_mcp-0.3.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c4dbb2dbf89f5994f2af4c2ff4c4dd23fdbe84316b36ba94bccc4d97351418
MD5 75a92e7a1dddd78db6676cf7874a7125
BLAKE2b-256 c03b2ab42106ceea874661a6456cfc1c108e46f9dae6c8f1f3f7ce4729c8801a

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