Skip to main content
Glama

Main CI Test Build Release Dependabot Compose-Multiplatform Sqlite Kotlin OS Download AGPL-3.0 Listed on mcpservers.org Ask DeepWiki

✨ Features

  • 🔄 Real-time Sharing: Instantly share pasteboard content across devices, seamlessly.

  • 🖥️ Unified Cross-platform: Consistent interface on Mac, Windows, and Linux. No need to change habits.

  • 📋 Rich Type Support: Handle various pasteboard types: Text, Color, URL, HTML, RTF, Image, File.

  • 🔒 End-to-End Encryption: Using asymmetric encryption to fully protect your data security.

  • 🌐 LAN-only Serverless: Local storage, serverless architecture. Privacy protection, in your control.

  • 🧹 Smart Space Management: Auto-cleanup options manage pasteboard storage without manual effort.

  • 🔍 Built-in OCR: Extract text from images locally — no network calls, your screenshots never leave the device.

  • 🤖 MCP Server: Expose your pasteboard history to AI assistants (Claude, etc.) via the Model Context Protocol.

  • 🌍 Chrome Extension: Sync clipboard with the browser — copy on a web page, paste on any device.

  • ⌨️ Command-Line: Copy, paste, and search your history from the terminal and scripts. See the CLI guide.

Related MCP server: Claude Paste MCP

🏗 Getting Started with Development

  1. clone the repository

    git clone https://github.com/CrossPaste/crosspaste-desktop.git
  2. Compile and run the application

    cd crosspaste-desktop
    ./gradlew app:run

First start will download JBR / gradle dependencies.

If you encounter the following error:

FAILURE: Build failed with an exception.

* What went wrong:
java.net.SocketException: Connection reset
> java.net.SocketException: Connection reset

you might need a VPN to download these dependencies.

To configure a proxy for gradle, add the following settings to gradle.properties, and adjust the parameters to match your proxy configuration:

systemProp.https.proxyHost=localhost
systemProp.https.proxyPort=8080
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost

Additionally, a series of technical blogs about CrossPaste is being published (approximately one article per week). If you're interested in developing cross-platform applications, you're welcome to read them.

🌍 Building the Chrome Extension

The Chrome extension lives in web/ and is built via Gradle. Node.js (>= 18) is required — the npmInstall task will fetch dependencies on first build.

  1. Build the extension

    ./gradlew :web:build

    The unpacked extension is emitted to web/dist/.

  2. Load it into Chrome

    • Open chrome://extensions/

    • Enable Developer mode in the top-right corner

    • Click Load unpacked and select the web/dist/ directory

The extension auto-discovers a CrossPaste desktop app running on the same machine and syncs clipboard content with it. To iterate on extension code, run npm run dev inside web/ for a fast Vite dev loop, then reload the extension in Chrome. The extension imports a Kotlin/JS core library produced by ./gradlew :core:jsBrowserProductionLibraryDistribution (also run as part of :web:build) — re-run that task whenever you change core/ sources.

🗺️ Roadmap

CrossPaste is continuously evolving! v2.2 brings a full command-line mode — copy, paste, and search your history straight from the terminal. Here's what we're working on next:

  • Plugin system — let the community extend CrossPaste with custom paste types and integrations

This is just a small part of our plans. Want to learn more details and long-term plans? Check out our full roadmap.

🙋 FAQ

Here are some FAQs that have been collected. If you have other questions, please create an issue to let us know.

🤝 Support the project

  • 🌟 Star this repository: This is the easiest way to support CrossPaste and costs nothing.

  • 🪲 Report bugs: Report any bugs you find on the issue tracker.

  • 📖 Translate: Help translate and polish CrossPaste into your language.

  • 📝 Contribute: Code, comment on issues, and any contributions that can help the project are welcome.

  • 💖 Sponsor: Support financially via GitHub Sponsors to help with ongoing development and maintenance.

📝 Contributors

💖 Sponsors

Available Tools

5 tools
add_to_clipboardA

Create a new item in the local clipboard history. This only appends to CrossPaste's history: it does not change the system clipboard and the item is not sent to other devices. Every call creates a new item, even for duplicate content, recorded with source 'MCP'. 'type' defaults to 'text'; supported types: text, url, html, rtf, color, file, image. For file/image, 'content' must be the absolute path of an existing file on this machine (images: png, jpg, jpeg, gif, bmp, webp, heic, heif, tiff, svg); the file is referenced by path, not copied. For color, 'content' may be #RGB, #RRGGBB, #RRGGBBAA, rgb(), rgba(), hsl(), hsla() or a CSS color name. html must contain extractable text and rtf must start with '{\rtf'. On success returns the new item's ID (usable with get_paste_item); on invalid input returns an error and nothing is stored.

Inputs: content (required), type.

get_clipboard_statsA
Read-onlyIdempotent

Report how much is stored in the local clipboard history. Read-only, no parameters. Returns plain text with the total item count and total size, then the count and size for each type (text, URL, HTML, RTF, image, file, color); sizes are human-readable (e.g. 1.2 MB). Use it for an overview only: use search_clipboard to see the items themselves and list_tags to see tags.

get_paste_itemA
Read-onlyIdempotent

Return the full content and metadata of one clipboard history item by its numeric ID. Read-only. IDs come from search_clipboard results or from add_to_clipboard. Output is plain text: a header (ID, type, source app, favorite flag, size, creation time, whether it came from a remote device) followed by the content: the text of text/html/rtf items, the URL and page title of links, hex and RGBA values of colors, or the file names of file/image items (binary data is not returned). Returns an error if 'id' is missing, not a number, or matches no existing item. Use search_clipboard first when the ID is not known.

Inputs: id (required).

list_tagsA
Read-onlyIdempotent

List every tag defined in the local clipboard history. Read-only, no parameters. Tags are user-created labels (e.g. 'Favorite') attached to clipboard items. Returns plain text with the tag count followed by one line per tag, in the user's configured order, showing its numeric ID and name, or 'No tags found.' when there are none. Pass a tag name to the 'tag' parameter of search_clipboard to find the items carrying it. This tool cannot create, rename or delete tags.

search_clipboardA
Read-onlyIdempotent

Search or browse the local clipboard history. Read-only. Returns up to 'limit' items (default 20, max 100), newest first, each with its numeric ID, type, source app, favorite flag, size, creation time and a one-line summary; pass an ID to get_paste_item for the full content. Omit 'query' to list the most recent items; otherwise every keyword must match as a prefix of a word in the item's searchable text. 'type' and 'tag' narrow the results and can be combined; tag names come from list_tags. An unknown 'type' or 'tag' returns an error rather than an empty list. Use get_clipboard_stats for counts only and add_to_clipboard to create items.

Inputs: tag, type, limit, query.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.6/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a clearly distinct action: full-content retrieval (get_paste_item), summary browsing (search_clipboard), aggregate counts (get_clipboard_stats), tag enumeration (list_tags), and creation (add_to_clipboard). The descriptions explicitly cross-reference each other to steer agents correctly, e.g. 'Use search_clipboard first when the ID is not known' and 'Use get_clipboard_stats for counts only.' No two tools overlap in purpose.

    Naming Consistency5/5

    All five names follow a strict verb_noun snake_case pattern: get_paste_item, get_clipboard_stats, list_tags, search_clipboard, add_to_clipboard. Verb style is uniform and the object/resource is always explicit, making the surface highly predictable.

    Tool Count5/5

    Five tools is well-scoped for a clipboard history server, covering the read paths (search, get, stats, tags) and the write path (add) without redundancy. Every tool earns its place and nothing feels padded or missing at the count level.

    Completeness3/5

    The read surface is thorough, but the write surface is thin: items can only be added, with no delete, update, or clear-history operation. The 'favorite' flag is surfaced in outputs but no tool can set it, and tags can be listed but never created or removed — notable gaps for a clipboard manager.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that gives Claude and other AI assistants access to your Maccy clipboard history, allowing search, retrieval, and management of copied content through natural conversation.
      9
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      A Windows-native MCP server that enables users to paste images, Excel tables, rich text, and plain text directly into Claude via a dedicated popup interface. It supports multi-item management and format conversion to streamline sharing complex clipboard data with the model.
      1
      -
    • A
      license
      A
      quality
      B
      maintenance
      MCP server that reads and writes the system clipboard — tables, text, code, JSON, URLs, images, and more. Preserves spreadsheet structure (rows/columns) that is lost when pasting into Claude directly.
      7
      44 PyPI
      4
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A standalone clipboard history MCP server for macOS that monitors clipboard in real-time, stores history locally in SQLite, and exposes it to any MCP-compatible AI assistant.
      5
      MIT