Skip to main content
Glama

MacOS Clipboard MCP Server

by newbeb

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
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

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

Provides AI assistants access to the macOS clipboard content, supporting text, images, and binary data via OSAScript.

  1. Features
    1. Installation
      1. Usage
        1. Implementation Notes
          1. Requirements

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              Provides screenshot and OCR capabilities for macOS.
              Last updated 7 months ago
              1
              577
              20
              JavaScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Cursor-compatible toolkit that provides intelligent coding assistance through custom AI tools for code architecture planning, screenshot analysis, code review, and file reading capabilities.
              Last updated 5 months ago
              738
              10
              TypeScript
              MIT License
            • A
              security
              F
              license
              A
              quality
              A collection of tools that enable AI assistants to interact with Apple applications and services including Contacts, Notes, Messages, Mail, Reminders, Calendar, Maps, and Web Search through the Model Context Protocol.
              Last updated 3 months ago
              8
              TypeScript
              • Apple
            • -
              security
              A
              license
              -
              quality
              An MCP server that enables AI assistants like Claude to access and manipulate Apple Notes on macOS, allowing for retrieving, creating, and managing notes through natural language interactions.
              Last updated 2 months ago
              70
              TypeScript
              MIT License
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/newbeb/clipboard-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server