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

@funly/macpilot

v0.3.0

Published

MCP server for MacPilot — gives AI agents mouse, keyboard, screenshot, and accessibility control of macOS via a local HTTP API

Downloads

388

Readme

@funly/macpilot

MCP (Model Context Protocol) server for MacPilot — gives AI agents mouse, keyboard, screenshot, and accessibility control of macOS desktops.

MacPilot is a local HTTP API that runs as a menu bar app on macOS. This MCP server wraps that API so any MCP-compatible AI agent (Claude, etc.) can control the desktop through standard MCP tool calls instead of raw HTTP.

Quick Start

Install

npm install -g @funly/macpilot

Configure in Claude Code / Claude Desktop

Add to your MCP config:

{
  "mcpServers": {
    "macpilot": {
      "command": "npx",
      "args": ["-y", "@funly/macpilot"],
      "env": {
        "MACPILOT_HOST": "127.0.0.1",
        "MACPILOT_PORT": "49901",
        "MACPILOT_API_KEY": ""
      }
    }
  }
}

Environment Variables

| Variable | Default | Description | |---|---|---| | MACPILOT_HOST | 127.0.0.1 | MacPilot server host | | MACPILOT_PORT | 49901 | MacPilot server port | | MACPILOT_API_KEY | (empty) | API key if MacPilot has auth enabled |

Available Tools

Session Management

  • session_status — Check current status (available/active/user_control/user_finished/paused)
  • session_start — Start a session (required before any actions)
  • session_end — End session (always call when done)

Screenshots

  • capture_window — Screenshot a window (returns image + dimensions)
  • capture_region — Screenshot a screen region

Mouse

  • mouse_click — Click using normalized coords (nx/ny 0.0–1.0)
  • mouse_double_click — Double-click (select word)
  • mouse_scroll — Scroll at position
  • mouse_move — Move cursor
  • mouse_drag — Drag between positions
  • mouse_position — Get current cursor position

Keyboard

  • click_and_type — Click field + type text (most reliable form filling)
  • keyboard_type — Type text via clipboard paste
  • keyboard_key — Press key with modifiers
  • keyboard_shortcut — Named shortcuts (copy, paste, etc.)

Apps & Windows

  • list_apps — All running apps with windowIds
  • focus_app — Bring app to front
  • launch_app — Launch an app
  • focused_app — Get frontmost app

Accessibility

  • accessibility_elements — List UI elements (buttons, fields, labels)

Batch & Debug

  • batch — Multiple actions in one call
  • diagnostics — Recent API call log

Workflow

  1. session_start with your agent name
  2. list_apps to find target window
  3. capture_window to see the screen
  4. Calculate nx = pixelX / imageWidth, ny = pixelY / imageHeight
  5. mouse_click or click_and_type at those coordinates
  6. capture_window again to verify
  7. session_end when done

License

MIT