home / mcp / computer use mcp server
Controls virtual computers via MCP to manage cloud desktops for Computer Use Agents
Configuration
View docs{
"mcpServers": {
"spencerkinney-computer-use-mcp": {
"command": "python",
"args": [
"computer_mcp_server.py"
],
"env": {
"ORG O?": "PLACEHOLDER_ORGO_KEY",
"ANTHROPIC_API_KEY": "PLACEHOLDER_ANTHROPIC_KEY"
}
}
}
}You can manage virtual computers and cloud desktop environments through the MCP (Model Context Protocol) using a local Python-based MCP server. This setup lets you initialize a virtual computer, capture screenshots, simulate mouse and keyboard actions, run commands, and manage the computer’s lifecycle from your code or a client that supports MCP.
Connect with an MCP client and perform common actions to control a virtual computer. You can initialize the computer, take screenshots for visual feedback, simulate mouse clicks and keyboard input, wait for operations, run terminal commands, and manage the computer’s lifecycle. If you integrate Claude AI, you can provide natural language instructions to automate tasks on the computer.
Prerequisites: ensure you have Python 3.8 or higher installed on your system.
1) Create a virtual environment and activate it.
python3 -m venv mcp-env
source mcp-env/bin/activate2) Install the required Python packages.
pip install fastmcp pydantic orgo3) Set up your API keys for Orgo and Claude (Anthropic). You will provide these keys as environment variables when running the server.
export ORGO_API_KEY="your_orgo_key"
export ANTHROPIC_API_KEY="your_anthropic_key"4) Run the MCP server locally. The server starts with the Python command shown here.
python computer_mcp_server.pyThe server is intended for local development and experimentation. It exposes capabilities to initialize a computer, capture screenshots, simulate many input events, run shell commands, and manage the computer lifecycle. Ensure your environment variables are kept secure and do not expose API keys in public code.
- Keep API keys secure. Do not hard-code keys in public repositories. Use environment variables or secret management for production use.
- If the server fails to start, verify that Python 3.8+ is installed, the virtual environment is activated, and the environment variables ORGO_API_KEY and ANTHROPIC_API_KEY are set before launching the server.
Start virtual computer and prepare the environment for use.
Capture the current screen image of the virtual computer.
Simulate a left mouse click at given coordinates.
Simulate a right mouse click at given coordinates.
Simulate a double-click at given coordinates.
Scroll the virtual screen up or down.
Type text into the active input field on the computer.
Simulate a single key press on the keyboard.
Pause execution for a specified number of seconds.
Run terminal commands on the virtual computer.
Restart the virtual computer.
Shut down the virtual computer.
Query current status of the computer and sessions.
List active sessions on the virtual computer.
Claude AI Computer Use: provide natural language instructions for automation.