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

@web4w3/nut-js-mcp-server

v1.0.4

Published

MCP server for desktop automation via @nut-tree-fork/nut-js

Readme

nut-js MCP Server

MCP server for desktop automation via @nut-tree-fork/nut-js. Exposes mouse, keyboard, screen capture, clipboard, and YAML-based scenario execution.

Setup

npx -y @web4w3/nut-js-mcp-server

No cloning or build step needed. The package is pre-compiled and available on npm as @web4w3/nut-js-mcp-server.

macOS Permissions

Grant your terminal Accessibility and Screen Recording permissions in System Settings > Privacy & Security.

MCP Configuration

{
  "mcpServers": {
    "nut-js": {
      "command": "npx",
      "args": ["-y", "@web4w3/nut-js-mcp-server"]
    }
  }
}

Tools

Mouse

  • mouse_move — Move cursor to (x, y) with animation
  • mouse_set_position — Instant cursor placement
  • mouse_get_position — Get cursor coordinates
  • mouse_click — Click (left/right/middle, single/double)
  • mouse_press / mouse_release — Hold/release buttons
  • mouse_scroll — Scroll in any direction
  • mouse_drag — Drag to coordinates

Keyboard

  • keyboard_type — Type a text string
  • keyboard_press_key — Press key combination (e.g., Ctrl+C)
  • keyboard_hold_key / keyboard_release_key — Hold/release keys
  • list_keys — List all available key names

Screen

  • screen_size — Get screen dimensions
  • screen_capture — Save screenshot to file
  • screen_capture_base64 — Get screenshot as base64
  • screen_color_at — Get pixel color at point

Clipboard

  • clipboard_get / clipboard_set — Read/write clipboard

Configuration

  • configure_mouse_speed — Set movement speed (px/s)
  • configure_mouse_delay — Set inter-action delay
  • configure_keyboard_delay — Set typing delay

Utility

  • wait — Pause execution
  • run_scenario — Execute YAML scenario from string
  • run_scenario_file — Execute YAML scenario from file

YAML Scenario Format

name: "My Automation"
config:
  mouseSpeed: 1000
  mouseDelay: 100
  keyboardDelay: 50
steps:
  - action: move
    x: 100
    y: 200
  - action: click
    button: left
    double: false
  - action: type
    text: "Hello world"
  - action: hotkey
    keys: [LeftControl, S]
  - action: screenshot
    filename: "result"
  - action: wait
    ms: 1000
  - action: scroll
    direction: down
    amount: 5
  - action: drag
    x: 400
    y: 300
  - action: clipboard_set
    text: "copied text"
  - action: repeat
    count: 3
    steps:
      - action: key
        keys: [Tab]

Available Actions

| Action | Parameters | |--------|-----------| | move | x, y | | click | button (left/right/middle), double (bool) | | press | button | | release | button | | scroll | direction (up/down/left/right), amount | | drag | x, y | | type | text | | key | keys (array of Key names) | | hotkey | keys (array of Key names) | | screenshot | filename, format (png/jpg), directory, region ({x,y,width,height}) | | clipboard_set | text | | clipboard_get | — | | wait | ms | | repeat | count, steps (nested array) |