
Clipboard MCP
io.github.mnardit由 GitHub 帳號 mnardit 發布v0.1.0更新於 Oct 24, 2026
Cross-platform MCP server for system clipboard access (read, write, watch)
概覽
本機 MCP 伺服器,讓 AI 助理讀取、寫入系統剪貼簿,並可監看新的複製內容。
- 可以做什麼
- 讀取剪貼簿目前的文字,或讀取其中的 HTML 內容(例如從瀏覽器複製的富文字)
- 將文字寫入剪貼簿,或清空全部剪貼簿內容
- 等待剪貼簿變更並回傳下一次複製的文字,逾時時間可設定
- 偵測剪貼簿目前可用的格式(文字、HTML、圖片、檔案)
- 適用情境
- 適合在助理與桌面應用程式之間傳遞文字而不必手動貼進對話:複製錯誤訊息或程式碼片段請助理修正、轉換剪貼簿內容後寫回,或讓助理對你接下來複製的內容做出反應。
- 執行需求
- 以本機程序在桌面執行;透過 cargo 安裝或從發行頁下載單一執行檔,不需 Python 或 Node.js 執行環境。Windows 與 macOS 不需額外相依套件;Linux 需要 X11 函式庫或支援 wl-data-control 的 Wayland 合成器,純視窗管理員還需剪貼簿管理程式。macOS 需為終端機授予剪貼簿權限。選用 HTTP 模式預設只綁定本機。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Clipboard MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
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_clipboardlets 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
watch_clipboard parameters
Installation
Or download a binary from GitHub Releases.
Configuration
Claude Desktop (stdio, default)
Add to claude_desktop_config.json:
Claude Code (stdio)
HTTP Transport
Run as an HTTP server for remote or programmatic access:
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_clipboardafter 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-controlprotocol)
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, orcopyq.
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 verbatimset_clipboard— silently overwrites clipboard contents (max 1 MB)watch_clipboard— returns the next thing you copy, verbatimclear_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
來源:README.md,提交 17cfa44
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分