MCP Server Clipboard
@modelcontextprotocol-ce
A MCP server to interact with Server Clipboard, research purpose only!
Overview
What is MCP Server Clipboard?
MCP Server Clipboard is a lightweight, MCP-compliant server that provides tools for reading and writing clipboard content. It uses HTTP transport with token-based authentication and is built with the Go MCP SDK.
How to use MCP Server Clipboard?
Clone the repository, install dependencies with go mod download, then run go run *.go (default port 9001) or specify a port with -port. Use the clipboard_update tool to set clipboard content and clipboard_get to retrieve it, authenticating with a Bearer token.
Key features of MCP Server Clipboard
- Simple, lightweight MCP-compliant clipboard server
- Secure API token authentication
- Configurable clipboard size limits (default 10,000 bytes)
- Tools:
clipboard_updateandclipboard_get - Configurable port via command-line arguments
Use cases of MCP Server Clipboard
- Programmatically updating clipboard content from an AI assistant or tool
- Retrieving the current clipboard value for automation workflows
- Integrating clipboard operations into MCP-based applications
FAQ from MCP Server Clipboard
What MCP tools does the server provide?
It provides two tools: clipboard_update (takes a string content) and clipboard_get (no input, returns the current clipboard text).
How is the server authenticated?
All requests must include an Authorization: Bearer <token> header. The default token shown in the README is 328db9d4ab39ec9a2eceb2f702f42744.
What transport protocol does the server use?
The server uses HTTP transport for MCP communication, implemented with the github.com/modelcontextprotocol-ce/go-sdk library.
Can I change the port and clipboard size?
Yes. Specify a port with the -port flag (default 9001). The clipboard size limit is configurable (default 10,000 bytes), but details on how to set it are not provided in the README.
What runtime or dependencies are required?
The server is written in Go. You need Go installed to build and run it, and must run go mod download to fetch dependencies.