mcpField
M
MCP Server Clipboard

MCP Server Clipboard

VerifiedLocal
github.com/modelcontextprotocol-ceProductivity0Updated 79w ago

About MCP Server Clipboard

MCP Server Clipboard is a lightweight MCP server for reading and updating clipboard text. It suits clients that need authenticated clipboard access, with configurable port and content-size limits.

Key features

  1. 01Read clipboard content
  2. 02Update clipboard content
  3. 03API token authentication
  4. 04Configurable port and size limit

Use cases

  1. 01Retrieve clipboard text through an MCP client
  2. 02Write supplied text to the clipboard
  3. 03Restrict requests with token authentication

MCP support

Implements MCP tools for retrieving and updating clipboard content. It communicates over HTTP and requires an API token.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Server Clipboard

A Model Context Protocol (MCP) server that provides clipboard functionality. This implementation follows the MCP specification and offers tools for reading and writing clipboard content.

Features

  • Simple, lightweight MCP-compliant clipboard server
  • Secure API token authentication
  • Configurable clipboard size limits
  • Tools for clipboard content management:
    • clipboard_update: Update clipboard content
    • clipboard_get: Retrieve clipboard content
  • Configurable port via command-line arguments

Installation

# Clone the repository
git clone https://github.com/yourusername/mcp-server-clipboard.git
cd mcp-server-clipboard

# Install dependencies
go mod download

Usage

Running the server
# Run with default port (9001)
go run *.go

# Run with a specific port
go run *.go -port 9000
MCP Tools

The server provides the following MCP tools:

clipboard_update

Updates the clipboard content with user input.

  • Input Schema: {"type":"object","properties":{"content":{"type":"string"}}}
  • Example:
    {
      "content": "Hi, MCP!"
    }
    
clipboard_get

Retrieves the current clipboard content.

  • Input Schema: {}
  • Example Response:
    {
      "type": "text",
      "text": "Hi, MCP!"
    }
    
Authentication

All requests to the MCP server require authentication using the API token:

Authorization: Bearer 328db9d4ab39ec9a2eceb2f702f42744

Configuration

The clipboard server can be configured with the following settings:

  • Port: The port on which the server listens (default: 9001)
  • Clipboard Size: Maximum size of clipboard content in bytes (default: 10,000 bytes)

Implementation Details

This server implements the Model Context Protocol (MCP) specification using the github.com/modelcontextprotocol-ce/go-sdk library. It uses a synchronous server model with HTTP transport for communication.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.