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 clipboardpaste_from_clipboard(): Returns text from the clipboardpaste_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
Metadata
Release files for macos-clipboard-mcp 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| macos_clipboard_mcp-1.0.2.tar.gz | 2.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| macos_clipboard_mcp-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / macos_clipboard_mcp-1.0.2.tar.gz
| Download URL | macos_clipboard_mcp-1.0.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09f761ce09a5e7a63354240987e22b44a6119336f21b579624b77c10ed9111c2
|
|
BLAKE2b-256 checksum How to use checksums |
b043a86924556804687bc7d07208853e9740f13acbf88baff5fdb23c22424acd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / macos_clipboard_mcp-1.0.2-py3-none-any.whl
| Download URL | macos_clipboard_mcp-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b80b4d6a5cd3145fc949ea38ff7345dea30df56e680d446cb94e4018a70cfef5
|
|
BLAKE2b-256 checksum How to use checksums |
c883dd22ee439e2152555619da18602c939e38aff485010b3428ab927e446a30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for macos-clipboard-mcp 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.