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",
        "PYTHONPATH": "wayland-mcp",
        "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.5.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.5-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wayland_mcp-0.2.5.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.5.tar.gz
Algorithm Hash digest
SHA256 40c53373fff47c38d6eab17a0b3cc0977b8f1c31b04b68f09c7a21fc701e9e05
MD5 f4bc2c76e497911b472e4be6869625d6
BLAKE2b-256 9d2bce0f71696beb709fd2d125c6851705457f060c46080ca21eed1b2114f4a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wayland_mcp-0.2.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a7e26076036159ef563bb3d2b17b50c9721394bedbf6f1f3f63db8dd3cae73c6
MD5 a94eb4c930cb396269fe07ddc717b9b2
BLAKE2b-256 82ce315fad8a496b503152de1a685a9ec9ce19ee68d6d2d09c099e73eab00f72

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