Clipboard MCP

io.github.mnarditPublished by GitHub account mnarditv0.1.0Updated Oct 24, 2026

Cross-platform MCP server for system clipboard access (read, write, watch)

Overview

AI-generated overview

Local MCP server that gives an AI assistant read and write access to the system clipboard, including watching for new copies.

What you can do
  • Read the current clipboard text, or HTML content such as rich text copied from a browser
  • Write text to the clipboard, or clear all clipboard content
  • Wait for the clipboard to change and return the next copied text, with a configurable timeout
  • Probe which formats the clipboard currently holds (text, HTML, image, files)
When to use it
Useful when you want to move text between an assistant and other desktop apps without pasting into chat: copy an error or code snippet and ask for a fix, transform clipboard content and put the result back, or have the assistant react to what you copy next.
Requirements
Runs as a local process on the desktop; a single binary installed via cargo or downloaded from releases, with no Python or Node.js runtime. Windows and macOS need no extra dependencies; Linux needs X11 libraries or a Wayland compositor supporting wl-data-control, and a clipboard manager on bare window managers. macOS requires clipboard permission for the terminal. Optional HTTP mode binds to localhost by default.
Before you install
Connected clients get full read/write clipboard access: reads return content verbatim, writes silently overwrite it, and watch mode returns whatever you copy next, so avoid using it where passwords or tokens may be on the clipboard. Clearing wipes content without confirmation. HTTP mode has no authentication, and binding to 0.0.0.0 exposes the clipboard to the network; SSH tunneling is safer.

Installation

In SourceWeft

  1. Open Clipboard MCP in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

clipboard-mcp

[CI] [Crates.io] [License: MIT]

Cross-platform Model Context Protocol (MCP) server that gives AI assistants direct read/write access to your system clipboard. Website

Copy an error → ask Claude to fix it → the fix lands in your clipboard. No manual paste into chat, no manual copy from response.

bash
cargo install clipboard-mcp

Why clipboard-mcp?

  • Single binary — no Python, no Node.js, no runtime to install
  • Native clipboard — uses arboard by 1Password, not shell commands like pbcopy/xclip
  • Watch mode — watch_clipboard lets agents react to what you copy in real-time
  • HTML + format detection — read HTML content, probe available clipboard formats
  • Cross-platform — Windows, macOS (Intel + Apple Silicon), Linux (X11 + Wayland)
  • HTTP transport — run as a local HTTP server for remote agent access

Tools

ToolDescription
get_clipboardRead current text from the clipboard. Content over 100 KB is truncated.
get_clipboard_htmlRead HTML content from the clipboard (e.g., rich text from browsers).
set_clipboardWrite text to the clipboard (max 1 MB).
watch_clipboardWait for clipboard text to change (default 30s, max 300s). Max 5 concurrent.
list_clipboard_formatsProbe which formats are available (text, HTML, image, files).
clear_clipboardClear all clipboard content.

watch_clipboard parameters

ParameterTypeDefaultDescription
timeout_secsinteger (optional)30Seconds to wait for a change (max 300)

Installation

bash
cargo install clipboard-mcp

Or download a binary from GitHub Releases.

Configuration

Claude Desktop (stdio, default)

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "clipboard": {      "command": "clipboard-mcp"    }  }}

Claude Code (stdio)

bash
# Add for current projectclaude mcp add clipboard clipboard-mcp
# Or add globallyclaude mcp add --scope user clipboard clipboard-mcp

HTTP Transport

Run as an HTTP server for remote or programmatic access:

bash
clipboard-mcp --http                          # 127.0.0.1:3100clipboard-mcp --http --port 8080              # custom portclipboard-mcp --http --host 0.0.0.0           # expose to network (see Security)

MCP endpoint: http://HOST:PORT/mcp

Usage Examples

Read and transform:

"Take whatever is on my clipboard and rewrite it in a more formal tone, then put the result back."

Watch for changes:

"Watch my clipboard for 60 seconds. When I copy something, summarize it in one sentence."

Round-trip:

"Get my clipboard, translate it to German, and set the translation back."

Data transform:

Copy a CSV table → "Convert what's on my clipboard to JSON" → paste formatted JSON into your editor.

Code from clipboard:

Copy a code snippet from a browser → "Review the code on my clipboard for bugs" → Claude reads it directly, no pasting into chat.

Step-by-step agent output via clipboard history:

Run a multi-step task and set_clipboard after each step. With any clipboard manager (Paste, CopyQ, Klipper), you get a chronological log of every result — browse, search, and review the agent's work without switching windows.

Platform Support

  • Windows (x86_64) — clipboard persists via OS pasteboard
  • macOS (x86_64, aarch64) — clipboard persists via OS pasteboard
  • Linux (x86_64, aarch64) — X11 and Wayland (via wl-data-control protocol)

Linux note: On Linux, clipboard content set by the server is kept alive by a background thread. If no clipboard manager is running (bare WMs like i3/dwm), install clipman, parcellite, or copyq.

How It Works

Single binary. Uses arboard (by 1Password) for native clipboard access. Communicates via MCP protocol over stdio (default) or HTTP (--http flag, Streamable HTTP transport). No runtime dependencies on Windows and macOS; Linux requires X11 libs or a Wayland compositor with wl-data-control support.

Troubleshooting

Linux: clipboard content disappears Ensure a clipboard manager is running. On bare window managers (i3, dwm), install clipman, parcellite, or copyq.

Wayland: "clipboard is empty or contains non-text content" Your compositor must support the wl-data-control protocol. Sway, Hyprland, GNOME, and KDE all do. Older compositors may not.

macOS: clipboard access denied Ensure the terminal running the MCP server has clipboard permissions in System Settings > Privacy & Security.

Security

This server gives connected MCP clients full read/write access to your system clipboard:

  • get_clipboard / get_clipboard_html — return clipboard content verbatim
  • set_clipboard — silently overwrites clipboard contents (max 1 MB)
  • watch_clipboard — returns the next thing you copy, verbatim
  • clear_clipboard — wipes clipboard without confirmation

Only connect this server to AI sessions you trust. Do not use it in environments where sensitive data (passwords, tokens) may be on the clipboard.

HTTP mode: Default bind is 127.0.0.1 (localhost only). Binding to 0.0.0.0 with --host exposes clipboard to all reachable network interfaces. Browser-initiated requests (with Origin header) are rejected with 403. There is no authentication — non-browser HTTP clients are not restricted. For remote access, prefer SSH tunneling over exposing to the network.

Contributing

Bug reports and pull requests are welcome. For major changes, please open an issue first.

License

MIT

Source: README.md at commit 17cfa44

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts