Clipboard//Sync

Real-time sync // Cross-device

What is this?

Clipboard//Sync is a real-time shared clipboard application that enables instant synchronization of text and screenshots across devices on the same network.

Built with WebSockets for instant updates, it also includes an MCP (Model Context Protocol) server that allows AI assistants like Claude Code to directly access shared clipboard content and screenshots.

Why I Built This

It started with a problem: I was working on a system where I couldn't install Claude directly, but I still wanted its help troubleshooting issues. The logs contained information I didn't want to share (IP addresses, hostnames, and other sensitive data) so I built the PII filter to automatically redact that stuff before sending it anywhere.

I restricted it to my local network because that's all I needed at the time. Then I discovered I could use Tailscale (seriously, how good is Tailscale?) and suddenly I had secure access from anywhere.

Later, I was working on a new server where I could install Claude Code. But here's the thing: when you're SSH'd into a remote server, you can't just screenshot something and drag it into your terminal like you can locally. I'd already built this clipboard tool with an MCP server, so I thought: why not extend it to handle screenshots too?

That got me most of the way there, but I still needed a way to get screenshots from my local machine to the server seamlessly. So I built a macOS menu bar app that monitors my screenshots folder and automatically uploads them to the clipboard server. Now when I'm working on a remote server and need Claude to see something, I just take a screenshot and run /ss. Done.

Features

  • Real-time sync — Changes propagate instantly via WebSockets
  • Screenshot sharing — Upload and share screenshots across devices
  • MCP integration — AI assistants can fetch clipboard content and screenshots
  • PII redaction — Optional automatic detection and redaction of sensitive data
  • No account required — Works on your local network with no sign-up
  • Cyberpunk aesthetic — Because why not?

How It Works

    [ Device A ]          [ Device B ]
         |                      |
         v                      v
    +---------------------------------+
    |      Clipboard//Sync Server    |
    |    (WebSocket + MCP endpoint)  |
    +---------------------------------+
                   |
                   v
           [ Claude Code ]
           (via MCP tools)
                    

All devices connect to the same server. When content is added on one device, it's broadcast to all connected clients in real-time. The MCP server allows AI assistants to query the clipboard programmatically.

Network Access

Access Restricted

This service is only accessible from authorized networks including Tailscale VPN, localhost, and local private networks (192.168.x.x, 10.x.x.x).

If you're seeing the "Access Denied" screen, you're connecting from an unauthorized network. To use this service:

  • Connect via Tailscale VPN
  • Access from your local network
  • Run your own instance locally

Run Your Own

Clipboard//Sync is open source. Clone the repository and run it on your own machine or server:

# Clone and install git clone https://github.com/h-gilbert/clipboard.git cd clipboard npm install # Start the server npm start # Server runs on http://localhost:3070