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

claude-paste-image

v0.1.0

Published

MCP server — paste images from system clipboard into Claude Code for analysis

Readme

claude-paste-image

MCP server that captures images from your system clipboard so Claude Code (or any MCP client) can read and analyze them.

Copy a screenshot or image → call the paste_image tool → get a file path → Claude reads the image.

Features

  • Cross-platform: macOS, Linux (X11 & Wayland), Windows
  • Format detection: PNG, JPEG, GIF, BMP, TIFF (auto-detected from magic bytes)
  • Secure: filename sanitization, restrictive file permissions (0o600), no shell interpolation
  • Auto-cleanup: temporary files are deleted after 30 minutes
  • Zero config: no API keys, no external services, works offline
  • Minimal dependencies: only @modelcontextprotocol/sdk

Prerequisites

| Platform | Requirement | |----------|------------| | macOS | pngpaste (brew install pngpaste) — optional, falls back to built-in osascript | | Linux (X11) | xclip (apt install xclip) | | Linux (Wayland) | wl-clipboard (apt install wl-clipboard) | | Windows | PowerShell (pre-installed) |

Installation

Option 1: npx (no install)

claude mcp add paste-image -- npx -y claude-paste-image

Option 2: Global install

npm install -g claude-paste-image
claude mcp add paste-image -- claude-paste-image

Option 3: From source

git clone https://github.com/jokai-sor/claude-paste-image.git
cd claude-paste-image
npm install && npm run build
claude mcp add paste-image -- node /absolute/path/to/dist/index.js

Usage

  1. Copy an image to your clipboard (screenshot, browser image, etc.)
  2. In Claude Code, the paste_image tool will be available
  3. Claude captures the image, saves it to a temp file, and reads it for analysis

Tool: paste_image

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | filename | string | No | Custom filename (alphanumeric, dashes, underscores). Random UUID if omitted. |

Example output

Image saved from clipboard.
Path: /tmp/claude-paste-images/a1b2c3d4.png
Format: PNG
Size: 142 KB

Use the Read tool to view this image.

How it works

  1. MCP client calls the paste_image tool
  2. Server runs a platform-specific command to read the clipboard:
    • macOS: pngpaste or osascript (AppleScript)
    • Linux: xclip (X11) or wl-paste (Wayland)
    • Windows: PowerShell with System.Windows.Forms.Clipboard
  3. Image format is detected from magic bytes
  4. File is saved to a temp directory with restrictive permissions
  5. File path is returned for the client to read

Security

  • Filenames are sanitized: path separators stripped, only [a-zA-Z0-9_-] allowed
  • Files are written with mode 0o600 (owner-only read/write)
  • Temp directory has mode 0o700 (owner-only access)
  • All external commands use execFileSync (no shell interpretation)
  • Stale files are auto-deleted after 30 minutes

License

MIT