MacOS Clipboard MCP Server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Provides access to the macOS clipboard via OSAScript, allowing retrieval of clipboard content including text, images, and binary data

MacOS 剪贴板 MCP 服务器

一个 MCP 服务器,可通过 OSAScript 访问 macOS 剪贴板。此工具允许 AI 助手查看用户剪贴板上的内容,包括文本、图像和二进制数据。

特征

  • 从 macOS 剪贴板检索内容
  • 支持多种内容类型:
    • 文本
    • 图片 (PNG)
    • 原始二进制数据

安装

bun install

用法

要启动服务器:

bun run start

对于使用热重载进行开发:

bun run dev

替代开发模式:

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

实施说明

  • 通过osascript命令使用 AppleScript 与 macOS 剪贴板进行交互
  • 处理各种剪贴板内容类型
  • 内容以适当的 MIME 类型返回
  • 剪贴板应始终按需检查(不缓存),因为内容可能会在请求之间发生变化

要求

  • macOS 操作系统
  • Bun 运行时

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

让 AI 助手能够通过 OSAScript 访问 macOS 剪贴板内容,支持文本、图像和二进制数据。

  1. Features
    1. Installation
      1. Usage
        1. Implementation Notes
          1. Requirements
            ID: t0r959dh66