Friendly note: this project is in prefunctional development. Some parts are still being wired up, so if something doesnβt work yet, thatβs expected. Thanks for your patience while we improve it.
Let AI control your computer screen - Create overlays, take screenshots, simulate mouse clicks, and interact with any desktop through your favorite AI assistant (Cherry AI, Claude Desktop, etc.).
π Looking for the Clipboard Bridge? See docs/CLIPBOARD_BRIDGE.md for the standalone Flatpak clipboard sync tool.
Overlay Companion MCP connects your AI assistant to a computer desktop (yours or a virtual machine) so the AI can:
- π― Create visual overlays - Draw shapes, text, and annotations on the screen
- πΈ Take screenshots - Capture what's on screen for AI analysis
- π±οΈ Control mouse & keyboard - Click buttons, type text, automate tasks
- π Access clipboard - Copy and paste between systems
- π₯οΈ Support multiple monitors - Work across several screens at once
Perfect for: Testing GUIs, automating desktop tasks, AI-assisted workflows, remote system management
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Your AI β β Overlay β β Target β
β Assistant βββββββΆβ Companion βββββββΆβ Desktop β
β (Cherry AI) β β (This Project) β β (VM or Local) β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
"Click the MCP Server Desktop with
Save button" translates to overlays &
screen actions automation
Two computers involved:
- Host - Your main computer (Fedora Desktop) running the Overlay Companion containers
- Target - The desktop you want to control (can be a VM, or the same computer)
What is KasmVNC? A modern, web-based remote desktop system that works in your browser (no VNC client needed). Think of it like Chrome Remote Desktop, but open-source and designed for multi-monitor setups.
Run this on your Fedora Desktop (the computer you're sitting at):
# Recommended: Compose-based install (no remote scripts)
# 1) Copy the compose file and .env template
cp infra/kasmvnc-compose.yml ./docker-compose.yml
cp infra/.env.example ./.env
# 2) Edit .env with your port preferences and settings
# CONTAINER_PORT=8080
# WEB_PORT=8082
# MCP_PORT=3001
# KASMVNC_PORT=6080
# KASMVNC_ADMIN_PORT=3000
# 3) Start the stack
podman-compose up -d
# Optional: use Docker Compose instead
# docker compose up -dIf you still prefer the one-line installer, use at your own discretion:
curl -fsSL https://raw.githubusercontent.com/RyansOpenSourceRice/overlay-companion-mcp/main/scripts/host-setup-kasmvnc.sh | bashWhat this installs:
- Web interface for managing connections (accessible at
http://localhost:8080) - MCP server for AI integration (connects to Cherry AI, Claude, etc.)
- KasmVNC client (for connecting to remote desktops)
- All running in containers (no mess on your system)
Default port: 8080 (script will auto-detect conflicts and offer alternatives)
π§ Advanced: Custom Port Installation (click to expand)
# Download and run with custom port
wget https://raw.githubusercontent.com/RyansOpenSourceRice/overlay-companion-mcp/main/scripts/host-setup.sh
chmod +x host-setup.sh
./scripts/host-setup.sh 8081
# Or use environment variable
OVERLAY_COMPANION_PORT=8081 ./scripts/host-setup.shIf port 8080 is in use, the script will automatically detect this and offer alternatives.
Do you need this?
- β YES - If you want to control a VM or remote computer
- β NO - If you want to control your local desktop (same computer as Step 1)
If YES: Run this on your VM or remote computer (the desktop you want to control):
curl -fsSL https://raw.githubusercontent.com/RyansOpenSourceRice/overlay-companion-mcp/main/scripts/vm-setup-kasmvnc.sh | bashWhat this installs:
- KasmVNC server (web-based remote desktop, runs on port 6901)
- Desktop environment (Fluxbox - lightweight window manager)
- Basic apps (Firefox, terminal)
- Auto-starts on boot
After installation: The script will show you the connection URL (e.g., http://192.168.1.100:6901)
Open your web browser on your main computer:
http://localhost:8080
You'll see the Overlay Companion web interface with three options:
-
Quick Connect - Connect to your VM (if you did Step 2)
- Click "New Connection"
- Enter VM IP address (shown after Step 2 installation)
- Port:
6901(default for KasmVNC) - Click "Test Connection" then "Save"
-
Configure AI Assistant - Connect Cherry AI or Claude Desktop
- Copy the MCP Server URL:
http://localhost:3000 - In Cherry AI: Settings β MCP Servers β Add Server
- Paste the URL and click "Connect"
- Copy the MCP Server URL:
-
Test It - Ask your AI to interact with the desktop
- "Take a screenshot"
- "Create a red circle overlay at position 500, 300"
- "Click the Firefox icon"
Once connected, ask your AI assistant to:
Visual Overlays:
"Draw a red circle at coordinates 500, 300"
"Show a text overlay saying 'Click here' at the top left"
"Highlight the Save button with a yellow box"
Screen Capture:
"Take a screenshot of the current desktop"
"Capture the screen and tell me what you see"
"Show me what's on monitor 2"
Mouse & Keyboard:
"Click the Firefox icon"
"Type 'Hello World' into the text field"
"Press Enter"
"Right-click at position 800, 400"
Clipboard:
"Copy this text to the clipboard: [text]"
"What's currently in the clipboard?"
"Paste the clipboard contents"
Access the management interface at http://localhost:8080:
- Home - System status, quick connect
- Connections - Manage VM connections (add/edit/delete)
- Settings - Configure MCP server, clipboard bridge, ports
Can't access http://localhost:8080
Check if containers are running:
podman psYou should see 4 containers:
overlay-companion-mcp(MCP server)overlay-companion-web(Web interface)overlay-companion-kasmvnc(KasmVNC client)overlay-companion-proxy(Caddy proxy)
If containers aren't running:
cd ~/.config/overlay-companion-mcp
podman-compose up -dCheck VM IP address:
# On the VM, run:
hostname -ITest connectivity from host:
# Replace VM_IP with your VM's IP
curl http://VM_IP:6901Check KasmVNC is running on VM:
# On the VM:
systemctl status kasmvncVerify MCP server is running:
curl http://localhost:3000/healthCheck Cherry AI configuration:
- MCP Server URL should be:
http://localhost:3000 - NOT
http://localhost:8080(that's the web interface)
Check you're connected to the VM:
- Open
http://localhost:8080in your browser - You should see the VM desktop
- If not, click "Connect" and select your VM
Verify AI is using the correct MCP server:
- Ask AI: "What MCP servers are you connected to?"
- Should show "Overlay Companion MCP"
π Clipboard Bridge Setup (Optional)
Enable clipboard sync between your computer and the VM.
Install on VM:
./scripts/vm-setup/install-clipboard-bridge.shConfigure in web interface:
- Go to
http://localhost:8080 - Click "Settings" β "Clipboard"
- Enable clipboard bridge
- Enter VM IP and port (default: 8765)
- Click "Test Connection"
See docs/CLIPBOARD_BRIDGE.md for details.
π₯οΈ Multi-Monitor Setup
In the web interface:
- Connect to your VM
- Click "Add Display" button
- A new browser window opens with the second monitor
- Position windows as needed
Ask AI to use specific monitors:
"Take a screenshot of monitor 2"
"Create an overlay on the left monitor"
See docs/MULTI_MONITOR_SETUP.md for details.
# Check container status
podman ps
# View logs
podman logs overlay-companion
# Restart services
cd ~/.config/overlay-companion-mcp
podman-compose restart
# Stop all services
podman-compose down# Check RDP service in VM
sudo systemctl status xrdp
# Restart RDP service in VM
sudo systemctl restart xrdp
# Check VNC service in VM
sudo systemctl status vncserver@1- Check logs:
podman logs [container-name] - Restart containers:
podman-compose restart - Rebuild containers: Re-run host-setup.sh
- Verify VM IP address
- Check firewall settings in VM
- Test RDP connection directly:
xfreerdp /v:[VM-IP] /u:[username]
- Ensure VM and host can communicate
- Check firewall rules on both systems
- Verify RDP port 3389 is open
git clone https://github.com/RyansOpenSourceRice/overlay-companion-mcp.git
cd overlay-companion-mcp
./scripts/host-setup.sh- KasmVNC container: Web-native VNC with multi-monitor support
- MCP server container: C# overlay functionality
- Web interface container: Management UI
- Caddy proxy container: Unified access point
- Fork the repository
- Create a feature branch
- Make your changes
- Test with both host containers and VM setup
- Submit a pull request
Apache-2.0 - see LICENSE file for details.