cliplens
Reads Figma selection metadata from the clipboard, providing structured data about copied design elements to the agent.
Reads and writes Mural's native clipboard format (mly:// base64 JSON), enabling creation of Mural stickies and diagrams via clipboard paste.
Writes clipboard content in Slack's native rich text format (Quill Delta), allowing pasted messages to include bold, italic, lists, links, and code as if typed by a human.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Drop ClipLens into any agent — Claude Code, Kiro, Copilot, Gemini, Cursor, your own — and it can read and write the system clipboard in the native formats real apps use: generate a Slack message with real bold/links, a Mural sticky note, an Outlook-ready HTML email, or read back what you copied from Figma/Mural or a console — with no API keys, no OAuth, no marketplace approval. It's provider-agnostic (an MCP server
a plain
SKILL.md) and it just works. Just:
generate → clipboard → paste.
Most integrations die on auth, rate limits, and approval queues. The clipboard doesn't. Every app already speaks it. ClipLens turns that into a universal adapter layer.
Drive it in plain English
No flags to memorize. ClipLens ships as a provider-agnostic agent skill (SKILL.md) — drop
it into any agent (Claude Code, Kiro, Copilot, Gemini, Cursor…) and just say what you want:
"paste this as a Slack message" · "read the Mural I just copied" · "put this table on my clipboard for Outlook" · "clean up this console dump"
Your agent picks the right lens or pen, writes the native format, and tells you to hit Ctrl+V.
A tiny background clip daemon flashes a popup so you see it land. Prefer the CLI? That works too.
Related MCP server: clippy
The idea: Lenses & Pens
Direction | What it does | |
Lens | READ | Decodes a clipboard payload (Mural |
Pen | WRITE | Encodes structured input into a real app's clipboard format (Slack rich text, Outlook HTML, Mural widgets, images). |
You paste. The app thinks a human did it.
copy / paste
│
ClipLens ──► Lens (read) ──► structured data for your agent
◄── Pen (write) ◄── your agent's content
│
native clipboard format ──► Ctrl+V into Slack / Mural / Outlook / …Proven adapters
App | Lens(read) | Pen(write) | Format & notes |
Slack | ☐ | ✅ | Quill Delta in a Chromium custom-MIME blob — bold / italic / lists / links / code |
Mural | ✅ | ✅ |
|
Figma | ✅ | ☐ | selection metadata |
Outlook / Teams / Docs | ☐ | ✅ | HTML-Format clipboard |
DevTools console | ✅ | ☐ | plain text — 99%+ noise reduction |
Install
git clone https://github.com/TheJesper/cliplens
cd cliplens
# One command — installs deps, links the global CLI, and wires ClipLens into
# EVERY AI client it detects (Claude Code, Claude Desktop, Gemini, Codex,
# Cursor, Windsurf, VS Code Copilot, Kiro). Re-run after every `git pull`.
./install.sh # macOS / Linux
.\install.ps1 # Windows (PowerShell)Prefer to do it by hand, or only wire some clients?
npm install && npm link # global CLI aliases only
node tools/install.mjs --list # show detected AI clients
node tools/install.mjs # wire them all (MCP + skill)
node tools/install.mjs --only claude-code,gemini,codex
node tools/install.mjs --dry-run # preview, write nothingThe installer merges into each client's own config format (JSON mcpServers /
servers, or Codex TOML [mcp_servers]) and drops a SKILL.md where the client
looks for one. It backs up every file it touches and never removes other servers.
CLI
Command | What |
| Capture & explore raw clipboard formats |
| Read clipboard plaintext / write plaintext to it (UTF-8, pipe-friendly) |
| Markdown → Slack rich text on the clipboard |
| Markdown → HTML (Outlook / Teams / Docs) |
| Read a pasted DevTools console dump, strip the noise (keep CORS / HTTP / |
| Write native Mural stickies / diagrams |
| Re-put the LAST clip on the clipboard, exactly (no regeneration). Needs cache ON. |
💡 Give your agent DevTools eyes. In Chrome, right-click inside the console → Copy console, then run
clipconsole(or thecliplens_analyzetool). ClipLens strips 99%+ of the noise — keeping the signal (CORS, HTTP statuses,net::ERR_, failed requests) — so your agent reads only what matters. No screenshots, no copy-paste-scroll.
MCP server (agents)
ClipLens ships an MCP server so agents (Claude Code, Kiro, …) can read/write the clipboard as tools.
{
"mcpServers": {
"cliplens": { "command": "node", "args": ["<path-to>/cliplens/src/mcp-server.js"] }
}
}Tools: cliplens_analyze · _text · _capture · _formats · _inspect · _save_image · _write_slack
· _write_plaintext · _lens. Generated text runs through humanize() (strips em-dashes, curly quotes,
zero-width spaces, BOM — the tells that a machine wrote it).
Clip daemon & popup
cliplens-daemon (in cliplens-toast/, cross-platform Rust via wry) is an optional
lightweight background service that makes the clipboard visible:
Popup toast — when a clip is written, a warm rounded overlay flashes with a per-type pixel-perfect icon (Slack / Mural / Image / Prompt / clipboard), the clip type as a chip (
Slack·Mural·Image·Prompt·Normal…) and the sender (which agent made it) as a badge — so you get confirmation without switching windows. Click the card to dismiss it; otherwise it fades on its own, and multiple clips stack.Clip-history picker — a configurable global hotkey (default
Shift+Alt+V, cross-platform, macOS + Windows) opens the last N clips to re-paste any of them.
One binary, one identical design on Windows/macOS/Linux (HTML/CSS in the webview — no per-OS fallback). Fire one manually:
cliplens-daemon --notify --title "ClipLens" --subtitle "Ctrl+V" --type Slack --agent my-agent --kind clip
cliplens-daemon --watch # run persistently (enables the history picker)Install: download a prebuilt binary from Releases
(built by CI for every OS — no Rust needed), or build once with cargo build --release in
cliplens-toast/. If the daemon isn't present, writes still work and a plain native OS toast fires instead.
Private adapters (keep company stuff out of the public repo)
ClipLens ships only generic, public lenses & pens. Anything org-specific — an internal tool's format, a proprietary board, a company log filter — goes in gitignored folders so it can never leak upstream:
private-lenses/ ← your read adapters (gitignored)
private-pens/ ← your write adapters (gitignored)Drop a .js file exporting the lens/pen shape (see examples/); it's auto-discovered by
src/private.js. Nothing in those folders is ever committed. Fork the core freely; keep your adapters private.
Platform
Plaintext read/write works everywhere; rich native formats are Windows-first.
Capability | Windows | macOS | Linux |
Install + wire AI clients | ✅ | ✅ | ✅ |
Plaintext read / write ( | ✅ | ✅ | ✅ |
Clip daemon toast (Rust) | ✅ | ✅ | ✅ |
Rich native formats (Slack / Mural / Outlook-HTML / all-format capture) | ✅ | ☐ | ☐ |
On Linux, install a clipboard tool so read/write works: sudo apt install wl-clipboard
(Wayland) or xclip / xsel (X11). macOS needs nothing extra.
Developed on Kiro; works with Claude Code, Gemini, Codex and any MCP agent. The rich-format pens/lenses still lean on the .NET clipboard API — a macOS/Linux port of those (via
osascript/ native clipboard formats) would be a hugely welcome PR. 🙏
Roadmap — being worked on as we speak
macOS / Linux clipboard shims (the daemon is built cross-platform; the Node clipboard bridge needs porting)
More lenses & pens (Notion, Miro, Confluence, Jira…)
Multiclip ring buffer — recall the last 10 clips by timestamp
Contributing
You can fork — but I'd genuinely rather build this with you. Open an issue or a PR and I'll happily review it. See CONTRIBUTING.md. This is open source (MIT) and meant to stay that way.
License & credits
MIT © Jesper Wilfing
Icons: FatCow Farm-Fresh Web Icons — licensed under CC BY 3.0.
Reminders (checkbox + schedule + snooze)
A card with a checkbox and snooze buttons, shown now or at a chosen time. The daemon owns the
schedule in ~/.cliplens/reminders.json (survives restart/hibernate; started automatically).
Only the checkbox completes a reminder. Clicking anywhere else (outside the card) snoozes it 30 min - it never vanishes silently.
Buttons: 5 min, 30 min, Imorgon (08:00 next workday; Fri/Sat/Sun -> Monday).
Position:
top-left | top | top-right | center | bottom-left | bottom | bottom-right(default bottom-right; set per reminder orCLIPLENS_REMINDER_POSITION).MCP:
cliplens_remind(title, at "HH:MM"/ISO/epoch, inSeconds, id, position),cliplens_reminders(list, incl. done in the last 7 days),cliplens_remind_cancel.CLI:
cliplens-daemon --remind --title "..." [--at HH:MM-as-epoch-ms | --in SECONDS] [--position top] [--id x],--remind-cancel <id>,--reminders.Outside-click detection is Windows-only for now; elsewhere the card stays until acted on.
Security notes
Text that reaches PowerShell is quoted with
src/ps.js(psq), which also covers the smart quotes PowerShell treats as quote characters. Do not interpolate untrusted text into script text any other way.The installer only auto-approves
cliplens_ping. Clipboard reads stay behind your client's approval prompt.The daemon limits message size, concurrent connections, visible cards and durations, accepts only hex accent colours, and plays only bundled named sounds or local absolute
.wavfiles (no network paths).A full review lives in the maintainer's notes; known open items: pipe identity check, WebView CSP, release artefact signing.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A personal clipboard for your AI apps. Copy text in one and paste it in another.
Mac & Windows: let ChatGPT, Claude & Cursor use your email, calendar, iMessage, Teams, files.
PDF, image, video, OCR, screenshot, SQL, QR and text tools for agents. No API key, no signup.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants access to the macOS clipboard content, supporting text, images, and binary data via OSAScript.8MIT
- AlicenseNot gradedqualityBmaintenanceGives AI assistants direct access to macOS clipboard - letting Claude copy generated code, text, or files straight to your clipboard for pasting anywhere on Mac.253MIT
- AlicenseNot gradedqualityDmaintenanceProvides clipboard access tools (get and set) for AI assistants via the Model Context Protocol, enabling seamless clipboard operations across platforms.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to directly read, write, watch, clear, and probe the system clipboard across platforms.10MIT