-
-
Notifications
You must be signed in to change notification settings - Fork 6
Protocol Mcp
coe0718 edited this page May 23, 2026
·
2 revisions
Use Deskbrid with AI coding tools via the Model Context Protocol.
The Model Context Protocol (MCP) is a standard for AI agents to interact with external tools and services. Deskbrid provides an MCP server that exposes desktop control capabilities to AI agents.
When MCP is enabled, Deskbrid exposes 50+ tools:
-
deskbrid_list_windows- List all windows -
deskbrid_focus_window- Focus a window -
deskbrid_close_window- Close a window -
deskbrid_tile_window- Tile window to preset -
deskbrid_activate_or_launch- Launch or focus app
-
deskbrid_type_text- Type text -
deskbrid_send_keys- Send key combination -
deskbrid_mouse_click- Click mouse -
deskbrid_mouse_move- Move mouse cursor -
deskbrid_mouse_scroll- Scroll mouse wheel
-
deskbrid_clipboard_read- Read clipboard -
deskbrid_clipboard_write- Write clipboard
-
deskbrid_screenshot- Capture screen -
deskbrid_screenshot_ocr- Capture with OCR
-
deskbrid_notify- Send notification
-
deskbrid_system_info- Get system info -
deskbrid_system_battery- Get battery status -
deskbrid_system_power- Power actions
-
deskbrid_mpris_list- List media players -
deskbrid_mpris_control- Control playback
-
deskbrid_service_list- List services -
deskbrid_service_start- Start service -
deskbrid_service_stop- Stop service
-
deskbrid_terminal_create- Create PTY -
deskbrid_terminal_write- Write to terminal -
deskbrid_terminal_read- Read from terminal
-
deskbrid_list_displays- List monitors -
deskbrid_set_monitor_resolution- Set resolution
-
deskbrid_save_layout_profile- Save layout -
deskbrid_restore_layout_profile- Restore layout
deskbrid mcpThis starts the MCP server on stdin/stdout for communication with AI agents.
deskbrid daemon --mcp-port 18796Connect at tcp://localhost:18796.
~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"deskbrid": {
"command": "/usr/local/bin/deskbrid",
"args": ["mcp"]
}
}
}.cursor/mcp.json:
{
"mcpServers": {
"deskbrid": {
"command": "deskbrid",
"args": ["mcp"]
}
}
}~/.codeium/windsurf/mcp.json:
{
"mcpServers": {
"deskbrid": {
"command": "deskbrid",
"args": ["mcp"]
}
}
}An AI agent can:
- List windows to understand the current state
- Focus a specific application
- Type input into a window
- Handle multiple windows in sequence
Example interaction:
AI: Let me check what windows are open.
→ deskbrid_list_windows()
← [{"id": "abc", "title": "VS Code", ...}]
AI: Let me focus VS Code and run a test.
→ deskbrid_focus_window(app_id="code")
→ deskbrid_type_text("npm test\n")
An AI agent can:
- Take screenshots to see error messages
- Run OCR to extract text
- Fix issues based on what it reads
AI: Let me see what the error says.
→ deskbrid_screenshot_ocr()
← {"text": "Error: Cannot find module 'lodash'"}
Each tool has a JSON schema for parameters:
{
"name": "deskbrid_focus_window",
"description": "Focus a window by app ID or title",
"parameters": {
"type": "object",
"properties": {
"app_id": {"type": "string", "description": "Application ID"},
"title": {"type": "string", "description": "Window title substring"},
"exact": {"type": "boolean", "description": "Exact title match"}
}
},
"required": ["app_id", "title"]
}When using MCP with AI agents:
- The daemon runs with the user's permissions
- AI agents can type and click anywhere
- Review AI-generated actions before they execute
- Use
deskbrid system check_authfor sensitive actions
For development, you may want to:
- Run Deskbrid with verbose logging
- Review actions in the audit log
- Use
deskbrid audit_logto see what actions were taken
- Accessibility
- Apps
- Audio
- Backlight (LED driver)
- Bluetooth
- Clipboard
- Color Picker
- Desktop Portal
- Desktop Settings
- Files
- Hotkeys
- Input
- Keyboard Layouts
- Media (MPRIS)
- Monitors
- Network
- Notifications
- Print (CUPS)
- Screenshots
- Screen Recording
- Screencast
- Self-Update
- System
- System Tray
- Systemd Units & Timers
- Terminals (PTY)
- Windows & Workspaces