Total PC Control
An MCP server that provides control over screen, mouse, and keyboard using nut.js
jasondsmith72
README
Total PC Control
An MCP (Model Context Protocol) server that provides control over your screen, mouse, and keyboard using nut.js.
⚠️ Warning: Use with Caution
This software enables programmatic control of your mouse, keyboard, and other system operations. By using this software, you acknowledge and accept that:
- Giving AI models direct control over your computer through this tool can lead to unintended consequences
- The software can control your mouse, keyboard, and other system functions
- You are using this software entirely at your own risk
- The creators and contributors of this project accept NO responsibility for any damage, data loss, or other consequences that may arise from using this software
Features
- 📷 Screen Capture: Capture screenshots of your entire screen or specific regions
- 🖱️ Mouse Control: Move the mouse cursor, click, double-click, and scroll
- ⌨️ Keyboard Input: Type text and press keyboard shortcuts
- 🪟 Window Management: Find, focus, and manipulate application windows
- 📋 Clipboard Access: Copy and paste text
Prerequisites
- Node.js 16 or higher
- npm or yarn
- cmake-js (for building native dependencies)
Installation
- Clone the repository:
git clone https://github.com/jasondsmith72/total-pc-control.git
cd total-pc-control
- Install cmake-js globally (required for building native dependencies):
npm install -g cmake-js
- Install the libnut core library (required for nut.js):
git clone https://github.com/nut-tree/libnut.git libnut-core
cd libnut-core
npm install
cmake-js rebuild
cd ..
- Install dependencies and build the project:
npm install
npm run build
Using with Claude for Desktop
- Edit your Claude for Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Add the following to your configuration:
{
"mcpServers": {
"total-pc-control": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/total-pc-control/build/index.js"
]
}
}
}
Replace /ABSOLUTE/PATH/TO/ with the actual path to where you cloned the repository.
-
Restart Claude for Desktop
-
Look for the hammer icon in the Claude interface to indicate available tools.
Available Tools
Screen Capture
capture_screen: Capture the entire screen as an imagecapture_region: Capture a specific region of the screen
Mouse Control
move_mouse: Move the mouse cursor to a specific positionclick_mouse: Click the mouse at the current position or specified coordinatesdouble_click: Double-click at the current position or specified coordinatesright_click: Right-click at the current position or specified coordinatesscroll_mouse: Scroll the mouse wheel up or down
Keyboard Input
type_text: Type text at the current cursor positionpress_key: Press a specific keyboard key or key combinationhold_key: Hold down a keyrelease_key: Release a held key
Window Management
find_window: Find a window by title or application namefocus_window: Bring a window to the foregroundget_active_window: Get information about the currently active window
Clipboard Operations
copy_to_clipboard: Copy text to the clipboardpaste_from_clipboard: Get text from the clipboard
Development
To run the server in development mode:
npm run dev
To run tests:
npm test
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
ThingsPanel MCP
An integration server that connects AI models with ThingsPanel IoT platform, allowing AI assistants to interact with IoT devices through natural language for device control, data retrieval, and management operations.
Beamlit MCP Server
An MCP server implementation that enables seamless integration between Beamlit CLI and AI models using the Model Context Protocol standard.
Cursor MCP Server
Acts as a bridge between Claude's desktop application and the Cursor editor, enabling seamless AI-powered automation and multi-instance management across platforms with standardized communication and secure token-based authentication.
Windows CLI MCP Server
A Model Context Protocol server that provides secure command-line access to Windows systems, allowing MCP clients like Claude Desktop to safely execute commands in PowerShell, CMD, and Git Bash shells with configurable security controls.
Things MCP Server
Enables interaction with the Things app through Claude Desktop, allowing task creation, project analysis, and priority management using natural language commands.
mcp-wcgw
Shell and file edit capabilities tightly coupled to provide a powerful coding experience. You can work with different modes: architect and code-writer for separate plan and implementation phase. You can get it to invoke any cli command, e.g., compiling, type checking, linting, github cli, python
MCP SAP GUI Server
Automates interactions with SAP GUI using the Model Context Protocol, allowing precise control of SAP transactions through tools like clicking, typing, scrolling, and transaction management.
MCP Client Configuration Server
A tool that helps manage and synchronize MCP server configurations across different AI assistant clients (Cline, Roo Code, WindSurf, Claude), automating the process of retrieving, listing, adding, and removing server configurations from client configuration files.