Clippy (macOS Clipboard) MCP server

Provides intelligent clipboard operations and recent file discovery for macOS, enabling text and file copying to clipboard, pasting content to directories, and listing recently downloaded files with smart file type detection and automatic unarchiving.
Back to servers
Setup instructions
Provider
Neil Berkman
Release date
Aug 20, 2025
Stats
791 downloads
152 stars

Clippy is a powerful clipboard utility designed specifically for macOS that bridges the gap between terminal operations and GUI applications. It solves the problem that pbcopy only copies file contents, while GUI apps expect file references, allowing you to stay productive in your terminal workflow.

Installation

You can install Clippy using Homebrew:

brew install clippy

Or build from source:

git clone https://github.com/neilberkman/clippy.git
cd clippy
go build -o clippy ./cmd/clippy
go build -o pasty ./cmd/pasty
sudo mv clippy pasty /usr/local/bin/

Basic Usage

Smart File Copying

Clippy intelligently handles file references so you can paste them into any GUI application:

# Copy files as references (paste into any GUI app)
clippy report.pdf         # Paste into Slack/email to upload the file
clippy *.jpg              # Copy multiple files at once

# Use -t flag to copy text content instead of file reference
clippy -t notes.txt

Copy Recent Downloads

Quickly access your downloaded files without switching to Finder:

# Immediate copy (no UI)
clippy -r                 # Copy your most recent download
clippy -r 3               # Copy 3 most recent downloads
clippy -r 5m              # Copy all downloads from last 5 minutes

# Interactive picker
clippy -i                 # Choose from list of recent downloads
clippy -i 3               # Show picker with 3 most recent files
clippy -i 5m              # Show picker for last 5 minutes only

Find Files with Spotlight

Search for files directly from your terminal:

clippy -f invoice         # Search for files matching "invoice"
clippy -f screenshot      # Find screenshots
clippy -f .pdf            # Find all PDF files (by extension)
clippy -f report.xlsx     # Find specific file "report.xlsx"

Pipe Data as Files

Create and copy files directly from piped data:

curl -sL https://example.com/image.jpg | clippy
cat archive.tar.gz | clippy

Copy and Paste Together

Streamline your workflow with single-command operations:

clippy ~/Downloads/report.pdf --paste  # Copy to clipboard AND paste here
clippy -r --paste          # Copy recent download and paste here
clippy -i --paste          # Pick file, copy it, and paste here

Clear Clipboard

Empty your clipboard when needed:

clippy --clear             # Empty the clipboard
echo -n | clippy           # Also clears the clipboard

Content Type Detection

Clippy automatically detects content types for proper handling by receiving applications:

echo '{"key": "value"}' | clippy          # Recognized as JSON
clippy -t page.html                       # Recognized as HTML
clippy -t file.txt --mime application/json  # Manual override when needed

MCP Server

Clippy includes a built-in MCP (Model Context Protocol) server that lets AI assistants like Claude copy generated content directly to your clipboard.

Setup for Claude Code

# Install for all your projects (recommended)
claude mcp add --scope user clippy $(which clippy) mcp-server

# Or for current project only
claude mcp add clippy $(which clippy) mcp-server

Setup for Claude Desktop

Add to your config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "clippy": {
      "command": "clippy",
      "args": ["mcp-server"]
    }
  }
}

Available Tools

The MCP server provides several tools:

System Clipboard Tools

  • clipboard_copy - Copy text or files to system clipboard
  • clipboard_paste - Paste clipboard content to files/directories
  • get_recent_downloads - List recently downloaded files

Agent Buffer Tools

  • buffer_copy - Copy file bytes to agent's private buffer
  • buffer_cut - Cut lines from file to buffer
  • buffer_paste - Paste bytes to file with append/insert/replace modes
  • buffer_list - Show buffer metadata

Pasty - Intelligent Clipboard Pasting

Pasty complements Clippy by enabling intelligent pasting operations in the terminal.

Core Use Cases

Copy file in Finder → Paste actual file in terminal

# 1. Copy any file in Finder (⌘C)
# 2. Switch to terminal and run:
pasty
# File gets copied to your current directory

Smart text file handling

# Copy a text file in Finder (⌘C), then:
pasty                    # Outputs the file's text content to stdout
pasty notes.txt          # Saves the file's text content to notes.txt

Save browser images

# Right-click "Copy Image" in any browser, then:
pasty photo.png          # Saves the image (auto-converts TIFF to PNG)
pasty --preserve-format  # Keep original format if needed

Debugging and plain text extraction

pasty --inspect          # Show what's on clipboard and what pasty will use
pasty --plain notes.txt  # Force plain text, strip all formatting

Draggy - Visual Clipboard Companion

Draggy is an optional menu bar app that provides a visual interface for clipboard operations.

Installation

# Separate brew install (not included with clippy)
brew install --cask neilberkman/clippy/draggy

Basic Usage

  1. Copy files using Clippy in the terminal
  2. Click the Draggy icon in the menu bar
  3. Drag files to browser upload fields, Slack, etc.
  4. Toggle to Recent Downloads view with the clock icon
  5. Hold ⌥ Option to preview files
  6. Double-click to open files

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "clippy" '{"command":"clippy","args":["mcp-server"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "clippy": {
            "command": "clippy",
            "args": [
                "mcp-server"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "clippy": {
            "command": "clippy",
            "args": [
                "mcp-server"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later