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 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09f761ce09a5e7a63354240987e22b44a6119336f21b579624b77c10ed9111c2
|
|
| MD5 |
835bcfd82415372dadd9dcf937593063
|
|
| BLAKE2b-256 |
b043a86924556804687bc7d07208853e9740f13acbf88baff5fdb23c22424acd
|
File details
Details for the file macos_clipboard_mcp-1.0.2-py3-none-any.whl.
File metadata
- Download URL: macos_clipboard_mcp-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b80b4d6a5cd3145fc949ea38ff7345dea30df56e680d446cb94e4018a70cfef5
|
|
| MD5 |
adbc99227cd8f6d9e78d7732ce445fd6
|
|
| BLAKE2b-256 |
c883dd22ee439e2152555619da18602c939e38aff485010b3428ab927e446a30
|