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

@rebind.gg/mcp-server

v0.1.6

Published

MCP server exposing Rebind as computer-use tools: screenshot, verified click, type, key, scroll, and window control over the Remote Access protocol.

Downloads

142

Readme

@rebind.gg/mcp-server

Stdio MCP server that turns Rebind into a computer-use toolkit: screenshots, verified clicks, keyboard input, window control, and direct Luau scripting on the connected machine — driven over real HID, not synthetic OS events.

Requirements

  • Bun >= 1.1 (the server runs via bunx)
  • The Rebind app running its Remote Access relay: remote.luau (recommended) or remote_access.lua (protocol >= 1.1.0)

Older copies of remote_access.lua called hid.press outside a coroutine, so clicks silently failed. Use remote.luau or a current remote_access.lua.

Install

One command writes the correct config for whichever clients you name — Claude Code, Cursor, Codex, OpenCode, VS Code, Windsurf, Zed, and more — via add-mcp:

npx add-mcp "bunx @rebind.gg/mcp-server" --name rebind \
  --env REBIND_URL=ws://127.0.0.1:19561 \
  -g -a claude-code -a cursor -a codex -a opencode

Drop -a <agent> for the clients you want, or pass --all. -g installs globally; omit it for project-local config. Restart the client afterward.

Manual configuration

Any MCP client takes the stdio block directly:

{
  "mcpServers": {
    "rebind": {
      "command": "bunx",
      "args": ["@rebind.gg/mcp-server"],
      "env": { "REBIND_URL": "ws://127.0.0.1:19561" }
    }
  }
}

Verify the relay is reachable

bunx @rebind.gg/mcp-server --selftest

Connects, takes a capture, and reports the display — the fastest way to catch the #1 first-run failure (relay not loaded).

Tools

| Tool | What it does | | --- | --- | | screenshot | Capture a display (cursor marked with a crosshair). All coordinates the model emits are pixels in the most recent screenshot. | | screenshot_window | Capture one window by title substring (or the active window) — smaller, cheaper, monitor-proof. | | zoom | Re-capture a region of the last screenshot at native resolution, for small text. Read-only. | | click | Move to a point and click (left/right/middle, optional double). Landing position is verified and corrected before pressing. | | move_mouse | Move without clicking, with the same verification. | | type | Type text into the focused element. | | key | Press a key or combo, e.g. Enter, LCtrl+L, LAlt+Tab. | | scroll | Scroll the wheel at the cursor (positive = up). | | run_lua | Run a Luau script on the connected machine and return its return value as JSON — the fast path for any deterministic sequence (launch apps, place windows, shell commands, pixel search). | | lua_docs | Full Luau SDK type definitions for run_lua. | | list_displays / list_windows / focus_window / active_window | Display and window enumeration and control. | | get_cursor / wait / calibrate | Cursor readback, pauses, and the mouse scale probe. |

Configuration

| Env var | Default | Purpose | | --- | --- | --- | | REBIND_URL | ws://127.0.0.1:19561 | Relay WebSocket URL. | | REBIND_TOKEN | — | Required when the relay has an auth token set (the Auth token panel field on remote.luau, or AUTH_TOKEN on remote_access.lua). | | REBIND_AGENT_LOG | off | Path to append one JSONL line per tool call ({ts, tool, ok, latency_ms, note}). No screenshot bytes, no user content. |

How it works

Verified clicks. click and move_mouse reach an absolute screen point by reading the real OS cursor and sending relative HID deltas (which map 1:1 to pixels), correcting against the true cursor until it lands. This sidesteps the relay's own absolute move, whose delta comes from a cached cursor position that goes stale and flings the pointer to a screen edge.

Calibration. A mouse scale probe runs on the first click/move_mouse. If pointer ballistics are detected (enhance pointer precision, DPI mismatch), the probe reports it, since acceleration would break the 1:1 assumption. Re-run it any time with calibrate.

One queue. There is one physical cursor and keyboard, so tool calls are serialized: parallel calls from the model run one after another instead of interleaving HID input.

One coordinate space. All results are reported in the pixel space of the last screenshot — the same space the model emits — so no rescaling math ever falls on the model.

Develop

bun test packages/mcp-server/tests/
bun run --cwd packages/mcp-server typecheck

License

MIT © US Input Company