Skip to main content

A simple utility that provides model context protocol (MCP) tools for interacting with the macOS clipboard.

Project description

MacOS Clipboard MCP

A simple utility that provides model context protocol (MCP) tools for interacting with the macOS clipboard.

Features

  • Copy text to the clipboard
  • Paste text from the clipboard
  • Paste images from the clipboard (supports TIFF, PNG, and JPEG formats)

mcp config

method1(recommended)

{
    "clipboard": {
        "command": "uvx",
        "args": [
            "macos-clipboard-mcp"
        ]
    }
}

method2

{
    "clipboard": {
            "command": "uv",
            "args": [
                "--directory",
                "<your-local-folder>/macos-clipboard-mcp",
                "run",
                "main.py"
            ]
        }
}

Installation

uv sync
python main.py

Requirements

  • Python 3.12+
  • macOS (uses AppleScript for clipboard operations)

Usage

Start the MCP server:

mcp dev main.py

This exposes the following MCP tools:

  • copy_to_clipboard(data: str): Copies text to the clipboard
  • paste_from_clipboard(): Returns text from the clipboard
  • paste_image_from_clipboard(): Returns images from the clipboard as base64-encoded PNG

Development

This project uses modern Python tooling:

  • uv for dependency management

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macos_clipboard_mcp-1.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

macos_clipboard_mcp-1.0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file macos_clipboard_mcp-1.0.2.tar.gz.

File metadata

  • Download URL: macos_clipboard_mcp-1.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for macos_clipboard_mcp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 09f761ce09a5e7a63354240987e22b44a6119336f21b579624b77c10ed9111c2
MD5 835bcfd82415372dadd9dcf937593063
BLAKE2b-256 b043a86924556804687bc7d07208853e9740f13acbf88baff5fdb23c22424acd

See more details on using hashes here.

File details

Details for the file macos_clipboard_mcp-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for macos_clipboard_mcp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b80b4d6a5cd3145fc949ea38ff7345dea30df56e680d446cb94e4018a70cfef5
MD5 adbc99227cd8f6d9e78d7732ce445fd6
BLAKE2b-256 c883dd22ee439e2152555619da18602c939e38aff485010b3428ab927e446a30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page