Skip to main content
Glama
MacOS Clipboard MCP Server

MacOS Clipboard MCP Server

by brian-ln

MacOS 剪贴板 MCP 服务器

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

特征

  • 从 macOS 剪贴板检索内容

  • 支持多种内容类型:

    • 文本

    • 图片 (PNG)

    • 原始二进制数据

Related MCP server: mcp-clipboardify

安装

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 运行时

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Gives AI assistants direct access to macOS clipboard - letting Claude copy generated code, text, or files straight to your clipboard for pasting anywhere on Mac.
    251
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides clipboard access tools (get and set) for AI assistants via the Model Context Protocol, enabling seamless clipboard operations across platforms.
    1
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Provides MCP tools to copy text to and paste text or images from the macOS clipboard using AppleScript.
    3
    1
    -