npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tsavo/mcp-control

v0.4.0

Published

Cross-platform desktop automation server for the Model Context Protocol (MCP)

Readme

MCPControl

Cross-platform desktop automation server for the Model Context Protocol, providing programmatic control over mouse, keyboard, screen capture, and clipboard operations.

This is the actively maintained fork at github.com/TSavo/MCPControl. The original project at claude-did-this/MCPControl is no longer actively developed.

Cross-Platform Support: Uses @jitsi/robotjs with prebuilt binaries for Windows, macOS, and Linux. No compilation required!

🔥 Why MCPControl?

MCPControl bridges the gap between AI models and your desktop, enabling secure, programmatic control of:

  • 🖱️ Mouse movements and clicks
  • ⌨️ Keyboard input and shortcuts
  • 📸 Screen capture with coordinate grid overlay
  • 📋 Clipboard operations

🔌 Quick Start

Prerequisites

  • Node.js 20+ (LTS version recommended)
  • npm package manager

That's it! The @jitsi/robotjs library includes prebuilt binaries for all major platforms.

Platform-Specific Notes

Linux: You may need to install X11 development libraries:

# Ubuntu/Debian
sudo apt-get install -y libx11-dev libxkbfile-dev libxtst-dev libpng++-dev

# Fedora/RHEL
sudo dnf install -y libX11-devel libxkbfile-devel libXtst-devel libpng-devel

Linux Permissions: You may need to add your user to the input group:

sudo usermod -a -G input $USER
# Logout and login again for changes to take effect

Installation

# Clone the repository
git clone https://github.com/TSavo/MCPControl.git
cd MCPControl

# Install dependencies
npm install

# Build the TypeScript project
npm run build

# Run the server
node build/index.js --sse

Configuration

MCPControl works best at 1280x720 resolution for optimal click accuracy.

Configure your Claude client to connect via SSE transport:

Option 1: Direct SSE Connection

For connecting to MCPControl running on a VM or remote machine:

{
  "mcpServers": {
    "MCPControl": {
      "transport": "sse",
      "url": "http://192.168.1.100:3232/mcp"
    }
  }
}

Option 2: Local Launch with SSE

{
  "mcpServers": {
    "MCPControl": {
      "command": "node",
      "args": ["/path/to/MCPControl/build/index.js", "--sse"]
    }
  }
}

🔧 CLI Options

# Run with SSE transport on default port (3232)
node build/index.js --sse

# Run with SSE on custom port
node build/index.js --sse --port 3000

# Run with HTTPS/TLS
node build/index.js --sse --https --cert /path/to/cert.pem --key /path/to/key.pem

Command Line Arguments

  • --sse - Enable SSE (Server-Sent Events) transport
  • --port [number] - Specify custom port (default: 3232)
  • --https - Enable HTTPS/TLS
  • --cert [path] - Path to TLS certificate (required with --https)
  • --key [path] - Path to TLS private key (required with --https)

🌟 Features

Screenshot with Coordinate Grid

MCPControl includes a coordinate grid overlay feature for precise clicking:

// Take screenshot with grid overlay
await provider.screen.getScreenshot({
  grid: true,           // Enable 100px grid
  gridTransparency: 70  // 0-100 opacity
});

// Custom grid spacing
await provider.screen.getScreenshot({
  grid: 50  // 50px grid spacing
});

The grid shows true screen coordinates, making it easy to identify click targets.

Core Capabilities

| Feature | Description | |---------|-------------| | Mouse Control | Move, click, double-click, drag, scroll | | Keyboard Input | Type text, key combinations, key hold | | Screen Capture | Screenshots with optional grid overlay | | Clipboard | Read and write clipboard content |

🔧 Automation Providers

MCPControl supports multiple automation providers:

  • robotjs (default) - Cross-platform via @jitsi/robotjs (Windows, macOS, Linux)
  • autohotkey - AutoHotkey v2 scripting (Windows only)
  • powershell - PowerShell clipboard provider (Windows only)

Provider Configuration

# Use a specific provider
export AUTOMATION_PROVIDER=robotjs

# Mix providers for different operations
export AUTOMATION_KEYBOARD_PROVIDER=autohotkey
export AUTOMATION_CLIPBOARD_PROVIDER=powershell

⚠️ IMPORTANT DISCLAIMER

THIS SOFTWARE IS EXPERIMENTAL AND POTENTIALLY DANGEROUS

  • Giving AI models direct control over your computer is inherently risky
  • This software can control your mouse, keyboard, and system functions
  • Use only in controlled environments with appropriate safety measures
  • The creators accept NO responsibility for any damage or consequences

USE AT YOUR OWN RISK

🚧 Known Limitations

  • Window management operations return "not supported" (robotjs limitation)
  • Works best at 1280x720 resolution, single screen
  • Some operations may require elevated permissions
  • AutoHotkey provider only works on Windows

📚 Dependencies

🛠️ Development

# Run tests
npm test

# Run with coverage
npm run test:coverage

# Lint code
npm run lint

# Format code
npm run format

See CONTRIBUTING.md for development guidelines.

👥 Contributing

Pull requests welcome! See CONTRIBUTING.md for guidelines.

⚖️ License

MIT License - see LICENSE file for details.

📖 References