BL

brian-ln/clipboard-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

8 stars 7 forks 质量 36 趋势 16MIT

MacOS Clipboard access via Model Context Protocol

概览

An MCP server that provides access to the macOS clipboard via OSAScript. This tool allows AI assistants to see what content is on the user's clipboard, including text, images, and binary data. - Retrieve content from the macOS clipboard - Supports multiple content types: - Text - Images (PNG) - Raw binary data - Uses AppleScript via the osascript command to interact with the macOS clipboard - Handles various clipboard content types - Content is returned with appropriate MIME types - The clipboard should always be checked on demand (not cached) as content can change between requests

README

MacOS Clipboard MCP Server

An MCP server that provides access to the macOS clipboard via OSAScript. This tool allows AI assistants to see what content is on the user’s clipboard, including text, images, and binary data.

Features

  • Retrieve content from the macOS clipboard
  • Supports multiple content types:
    • Text
    • Images (PNG)
    • Raw binary data

Installation

bun install

Usage

To start the server:

bun run start

For development with hot reloading:

bun run dev

Alternative development modes:

bun run dev2      # Run with fastmcp dev
bun run inspect   # Run with fastmcp inspector
bun run mcp-cli   # Run with mcp-cli tool

Implementation Notes

  • Uses AppleScript via the osascript command to interact with the macOS clipboard
  • Handles various clipboard content types
  • Content is returned with appropriate MIME types
  • The clipboard should always be checked on demand (not cached) as content can change between requests

Requirements

  • macOS operating system
  • Bun runtime
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →