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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wayland_mcp-0.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 592acd88fb56fef44206062a1b6d36d816477518a413b651c2e56db89aea0842
MD5 19c1550c0032cd406f9b4cf7aa720eb7
BLAKE2b-256 144ad88ca3dacaa9ee1015835142b750059416d961d7445ed29c4f87de7c0aa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wayland_mcp-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 30813b3de090abb0f9978c747156e17e0cefe9faea8a675daae43bd75659a20c
MD5 625778a61da78c2e4f8ee236527cc752
BLAKE2b-256 84c91fe6084203fa019b478680d5b9b1d6b24ef4329d3d71c2d4243f89d16b72

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