CM

cursortouch/macos-mcp

开发工具

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

253 stars 38 forks 质量 87 趋势 16MIT

CursorTouch/macOS-MCP 是从 https://github.com/cursortouch/macos-mcp. 导入的 MCP 服务器候选

概览

CursorTouch/macOS-MCP 是从 https://github.com/cursortouch/macos-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

🍎 macOS-MCP

概述

macOS-MCP 是一款轻量级、开源的模型上下文协议服务器,连接了 AI 代理与 macOS 操作系统。它通过 LLM 实现 macOS 的无缝自动化,包括文件导航、应用控制、界面交互、浏览器自动化**和系统操作等任务。

支持的操作系统

  • macOS 12(蒙特雷)
  • macOS 13(Ventura)
  • macOS 14(索诺玛)
  • macOS 15(红杉)
  • macOS 26(太浩湖)

主要特色

  • 适用于任何LLM(愿景可选) 与传统自动化工具不同,macOS-MCP 不需要计算机视觉、微调模型或专业设置。可无缝兼容任何大型语言模型——Claude、GPT、Gemini 或其他。

  • 原生macOS集成 通过 Accessibility API 原生与 macOS UI 元素交互。可以打开应用、控制窗口、模拟用户输入,并无需任何变通方法即可捕捉桌面状态。

  • 自动化丰富工具集 完整的工具包,涵盖键盘/鼠标操作、窗口管理、UI状态捕捉、从无障碍树中提取交互元素以及AppleScript执行。

  • 轻量级且开源

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

README

以下为原文 README 节选,完整内容请查看原文。

Overview

macOS-MCP is a lightweight, open-source Model Context Protocol server that bridges AI agents and the macOS operating system. It enables seamless automation of macOS through LLMs via tasks such as file navigation, application control, UI interaction, browser automation, and system operations.

Supported Operating Systems

  • macOS 12 (Monterey)
  • macOS 13 (Ventura)
  • macOS 14 (Sonoma)
  • macOS 15 (Sequoia)
  • macOS 26 (Tahoe)

Key Features

  • Works with Any LLM (Vision Optional)
    Unlike traditional automation tools, macOS-MCP doesn’t require computer vision, fine-tuned models, or specialized setup. Works seamlessly with any LLM—Claude, GPT, Gemini, or others.

  • Native macOS Integration
    Interacts natively with macOS UI elements using the Accessibility API. Opens apps, controls windows, simulates user input, and captures desktop state without workarounds.

  • Rich Toolset for Automation
    Complete toolkit for keyboard/mouse operations, window management, UI state capture, interactive element extraction from the accessibility tree, and AppleScript execution.

  • Lightweight and Open-Source
    Minimal dependencies with full source code available under MIT license. Easy setup and deployment.

  • Smart Context Awareness
    Automatically detects application state (Launchpad, Control Center, Spotlight). Scans menu bar, dock, desktop, and system UI elements intelligently.

  • Customizable and Extensible
    Easily extend with custom tools or modify behavior to suit your specific automation needs.

Installation

Prerequisites

  • Python: 3.11 or later
  • UV Package Manager: Install with pip install uv or curl -LsSf https://astral.sh/uv/install.sh | sh
  • macOS: 12 (Monterey) or later
  • Accessibility Permissions: Required for UI element interaction

Quick Start

Run the server directly:

uvx macos-mcp serve

# Or with SSE/Streamable HTTP for network access
uvx macos-mcp serve --transport sse --host localhost --port 8000
uvx macos-mcp serve --transport streamable-http --host localhost --port 8000

Run it as a background service that starts now and at every login:

macos-mcp install

# Or choose the HTTP transport and bind address explicitly
macos-mcp install --transport sse --host 127.0.0.1 --port 8000
在 GitHub 查看完整 README

安装

uvx macos-mcp serve
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "macos-mcp": { "command": "uvx", "args": ["macos-mcp", "serve"] } } }