Wayland MCP server (Python, uvx-compatible)
Project description
Wayland MCP Server
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40c53373fff47c38d6eab17a0b3cc0977b8f1c31b04b68f09c7a21fc701e9e05
|
|
| MD5 |
f4bc2c76e497911b472e4be6869625d6
|
|
| BLAKE2b-256 |
9d2bce0f71696beb709fd2d125c6851705457f060c46080ca21eed1b2114f4a3
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7e26076036159ef563bb3d2b17b50c9721394bedbf6f1f3f63db8dd3cae73c6
|
|
| MD5 |
a94eb4c930cb396269fe07ddc717b9b2
|
|
| BLAKE2b-256 |
82ce315fad8a496b503152de1a685a9ec9ce19ee68d6d2d09c099e73eab00f72
|