Skip to main content

Wayland MCP server (Python, uvx-compatible)

Project description

Wayland MCP Server

Status: WIP License: GPT3

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

  • Custom VLM integration for analysis
  • Images comparison
  • Mouse & keyboard input simulation

⚠️ 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.

Input Control Setup

To enable mouse and keyboard control (move, click, drag, scroll, type):

./wayland_mcp/setup.sh

This configures permissions for evemu-event to control input devices.


MCP Server Configuration

Add to your MCP server config (e.g., .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

GPT3

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.2.6.tar.gz (13.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.2.6-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wayland_mcp-0.2.6.tar.gz
  • Upload date:
  • Size: 13.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.2.6.tar.gz
Algorithm Hash digest
SHA256 7c4ccf97a4dc40dddf702fc2cb5ecf6179b6c5fa03cd6adc3889c9ff21e4d1e4
MD5 6ce6d72ba17a79a1307dc98ba9baed84
BLAKE2b-256 2ec5e803c67fa986965e0d83054822201891092abbda17c06e80e59c2f7f79a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wayland_mcp-0.2.6-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.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d384c51e9f71abffec093405e5b50e35e6b8592cebc69faa3056acaefdf63a
MD5 2bd2f534b29b4da06ec28631eb0b342a
BLAKE2b-256 6bd7c9adc1cdc8b4d27af81cb32a223377ad7b5a9a5307496369d81db2721579

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