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
-
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
./wayland_mcp/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
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.3.1.tar.gz.
File metadata
- Download URL: wayland_mcp-0.3.1.tar.gz
- Upload date:
- Size: 16.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 |
bc5d318f7ae6a4dbb94eb807d6ff9d0dcdd7608587a7038ad6e83fcb6b53c76e
|
|
| MD5 |
f13fd79f90473770490c44d10af9b072
|
|
| BLAKE2b-256 |
7e25754cdb877fe8605f8bbb64859b015d9e94b698da8c9580293826eaea4cdb
|
File details
Details for the file wayland_mcp-0.3.1-py3-none-any.whl.
File metadata
- Download URL: wayland_mcp-0.3.1-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 |
d00d46df9e75b34b7ac3319d72b24b4e5070aac52fb901932702ffd2bfedeea7
|
|
| MD5 |
cc1544e4c0bfba6de2b0b124a8a56bdf
|
|
| BLAKE2b-256 |
20893d3d38d6a187981289784bc3a5c918e8632dd65bb3eac7d1200f6288c217
|