Clipboard MCP
Clipboard MCP
=============
An [MCP] server that provides tools for reading and writing system clipboard
data. Works on Linux, macOS, Windows, and WSL.
[MCP]: https://modelcontextprotocol.io/
Installation
------------
The easiest way to use this server is with [uvx]:
~~~~ bash
uvx clipboard-mcp
~~~~
Or install it globally:
~~~~ bash
uv tool install clipboard-mcp
~~~~
[uvx]: https://docs.astral.sh/uv/guides/tools/
Configuration
-------------
### Claude Desktop
Add the following to your Claude Desktop configuration file:
- *macOS*: *~/Library/Application Support/Claude/claude_desktop_config.json*
- *Windows*: *%APPDATA%\Claude\claude_desktop_config.json*
~~~~ json
{
"mcpServers": {
"clipboard": {
"command": "uvx",
"args": ["clipboard-mcp"]
}
}
}
~~~~
### Claude Code
Add the following to your Claude Code settings:
~~~~ json
{
"mcpServers": {
"clipboard": {
"command": "uvx",
"args": ["clipboard-mcp"]
}
}
}
~~~~
Available tools
---------------
### `read_clipboard`
Read the current text content from the system clipboard.
### `write_clipboard`
Write text content to the system clipboard.
| Parameter | Type | Description |
| --------- | ------ | ------------------------------------------ |
| `text` | string | The text content to write to the clipboard |
Platform support
----------------
This server uses [pyperclip] for clipboard access, which requires different
backends depending on your platform:
- *macOS*: Uses `pbcopy`/`pbpaste` (built-in)
- *Windows*: Uses native Windows clipboard APIs (built-in)
- *Linux/WSL*: Requires `xclip` or `xsel` to be installed
On Linux, install the required dependency:
~~~~ bash
# Debian/Ubuntu
sudo apt install xclip
# Fedora
sudo dnf install xclip
# Arch Linux
sudo pacman -S xclip
~~~~
[pyperclip]: https://pypi.org/project/pyperclip/
License
-------
Distributed under the [AGPL-3.0].
[AGPL-3.0]: https://www.gnu.org/licenses/agpl-3.0.html
TDQS
Scored across 2 tools
The two tools have perfectly distinct purposes: one reads from the clipboard and the other writes to it. There is no overlap or ambiguity in their functions, making it impossible for an agent to confuse them.
Both tools follow a consistent verb_noun pattern (read_clipboard, write_clipboard) with clear action-object naming. The snake_case style is uniform throughout, making the tools predictable and easy to understand.
With only two tools, the server feels minimal but functional for basic clipboard operations. While it covers the essential read/write actions, it might be considered thin for a broader utility scope, though appropriate for its focused purpose.
The tools provide complete CRUD-like coverage for clipboard text operations (read and write), with no dead ends. A minor gap exists in handling non-text data or advanced features like clipboard history, but core functionality is well-covered.