ydrgzm/Clipboard-Server
If you are the rightful owner of Clipboard-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A minimal MCP server to access and update your system clipboard programmatically.
Clipboard-Server
A minimal MCP server to access and update your system clipboard programmatically.
Features
- Get the current clipboard content via an MCP resource.
- Set clipboard content remotely using an MCP tool.
Requirements
Installation
pip install pyperclip fastmcp
Running the Server
python clipboard_server.py
The server will start and expose clipboard operations via MCP.
Usage
-
Get clipboard:
Access the resourceclipboard://currentto fetch the current clipboard content. -
Set clipboard:
Use theset_clipboardtool with your desired content.
Example
import requests
# Example: Fetch clipboard content (replace with your actual MCP client code)
response = requests.get("http://localhost:8000/clipboard://current")
print(response.text)
Integrating with Claude Desktop or VS Code Agent Mode
You can add this MCP server as a custom context provider in Claude Desktop or in VS Code agent mode:
Claude Desktop
- Open Claude Desktop settings.
- Go to the "Context Providers" section.
- Click "Add Provider" and enter the MCP server URL (e.g.,
http://localhost:8000). - Save and enable the provider. You can now use clipboard resources and tools from Claude Desktop.
VS Code Agent Mode
- Open the VS Code agent extension settings.
- Locate the section for custom MCP servers or context providers.
- Add the server URL:
http://localhost:8000. - Save your settings. The clipboard server will now be available as a context provider in agent mode.
Refer to the documentation for your tool for more details on adding custom MCP servers.