Agents-MCP-Hackathon/computer-use-agent-mcp
0
Computer Use Agent MCP
This project provides a MCP server that allows AI agents to interact with the Windows desktop environment just like a human user would. It provides a suite of tools for:
- Launching applications
- Executing PowerShell commands
- Monitoring desktop state
- Mouse control (clicking, dragging, scrolling)
- Keyboard input
- Clipboard operations
- UI element interaction
Demo with claude
🎥 [Watch it here] (https://drive.google.com/file/d/1XIBzrLeIivDn36MG4Ve4CXRCKHb_Gg66/view?usp=sharing)
<video width="100%" controls> <source src="demo.mp4"> </video>
Features
- Desktop State Monitoring: Get real-time information about:
- Active applications
- Interactive UI elements
- Informative text elements
- Window states and positions
- Input Control:
- Mouse movement and clicking
- Keyboard input and shortcuts
- Drag and drop operations
- Scrolling
- System Integration:
- Application launching
- PowerShell command execution
- Clipboard management
- Window manipulation
Technical Details
- Built with Python 3.13+
- Uses Gradio for the web interface
- Key dependencies:
gradio: Web interface and MCP serverpyautogui: Mouse and keyboard controluiautomation: Windows UI automationpyperclip: Clipboard operations
Installation
- Make sure you have Python 3.13 or higher installed
- Install the required dependencies:
pip install -r requirements.txtUsage
Run the server:
python app.pyThe server will start with both a web interface for manual testing and an MCP endpoint for agent integration.
MCP Tools
The following tools are available via the MCP interface:
launch_tool: Launch Windows applicationspowershell_tool: Execute PowerShell commandsstate_tool: Get desktop state informationclick_tool: Perform mouse clickstype_tool: Input textscroll_tool: Scroll windowsdrag_tool: Perform drag operationsmove_tool: Move mouse cursorshortcut_tool: Execute keyboard shortcutskey_tool: Press individual keyswait_tool: Add delaysclipboard_tool: Manage clipboard content
Acknowledgments
Created for the Hugging Face Agents-MCP-Hackathon 2025.
