apple-notifier-mcp
一个简单的 MCP 服务器,可以在 Mac 设备上发送通知。
Tools
send_notification
Send a notification on macOS using osascript
prompt_user
Display a dialog prompt to get user input
speak
Speak text using macOS text-to-speech
take_screenshot
Take a screenshot using macOS screencapture
select_file
Open native file picker dialog
README
Apple Notifier MCP 服务器
通过任何 MCP 兼容的客户端(如 Claude Desktop 或 Cline)发送原生 macOS 通知并与系统对话框交互。
<a href="https://glama.ai/mcp/servers/t1w1dq4wy4"><img width="380" height="200" src="https://glama.ai/mcp/servers/t1w1dq4wy4/badge" alt="apple-notifier-mcp MCP server" /></a>
前提条件
- macOS
- Node.js >= 18
- 一个 MCP 兼容的客户端 (Claude Desktop, Cline)
安装
通过 Smithery 安装
要通过 Smithery 自动为 Claude Desktop 安装 Apple Notifier:
npx -y @smithery/cli install apple-notifier-mcp --client claude
手动安装
- 全局安装包:
npm install -g apple-notifier-mcp
- 添加到您的 MCP 配置文件:
对于 Cline (cline_mcp_settings.json
):
{
"mcpServers": {
"apple-notifier": {
"command": "apple-notifier-mcp"
}
}
}
对于 Claude Desktop (claude_desktop_config.json
):
{
"mcpServers": {
"apple-notifier": {
"command": "apple-notifier-mcp"
}
}
}
功能
发送通知
显示具有可自定义内容的本机 macOS 通知。
参数:
title
(必需): string - 通知的标题message
(必需): string - 主要消息内容subtitle
(可选): string - 要显示的副标题sound
(可选): boolean - 是否播放默认通知声音(默认:true)
显示提示
显示交互式对话框提示以获取用户输入。
参数:
message
(必需): string - 要在提示对话框中显示的文本defaultAnswer
(可选): string - 要预填充的默认文本buttons
(可选): string[] - 自定义按钮标签(最多 3 个)icon
(可选): 'note' | 'stop' | 'caution' - 要显示的图标
文本转语音
使用 macOS 文本转语音功能。
参数:
text
(必需): string - 要说的文本voice
(可选): string - 要使用的声音(默认为系统声音)rate
(可选): number - 语速(-50 到 50,默认为 0)
截取屏幕截图
使用 macOS 屏幕截图功能捕获屏幕截图。
参数:
path
(必需): string - 保存屏幕截图的路径type
(必需): 'fullscreen' | 'window' | 'selection' - 屏幕截图的类型format
(可选): 'png' | 'jpg' | 'pdf' | 'tiff' - 图像格式hideCursor
(可选): boolean - 是否隐藏光标shadow
(可选): boolean - 是否包含窗口阴影(仅适用于窗口类型)timestamp
(可选): boolean - 将时间戳添加到文件名
文件选择
打开本机 macOS 文件选择器对话框。
参数:
prompt
(可选): string - 提示消息defaultLocation
(可选): string - 默认目录路径fileTypes
(可选): object - 文件类型过滤器(例如,{"public.image": ["png", "jpg"]})multiple
(可选): boolean - 允许选择多个文件
使用示例
// 发送通知
await client.use_mcp_tool("apple-notifier", "send_notification", {
title: "Hello",
message: "World",
sound: true
});
// 显示提示
const result = await client.use_mcp_tool("apple-notifier", "prompt_user", {
message: "你的名字是什么?",
defaultAnswer: "John Doe",
buttons: ["OK", "Cancel"]
});
// 语音朗读文本
await client.use_mcp_tool("apple-notifier", "speak", {
text: "Hello, world!",
voice: "Samantha",
rate: -20
});
// 截取屏幕截图
await client.use_mcp_tool("apple-notifier", "take_screenshot", {
path: "screenshot.png",
type: "window",
format: "png"
});
// 选择文件
const files = await client.use_mcp_tool("apple-notifier", "select_file", {
prompt: "选择图片",
fileTypes: {
"public.image": ["png", "jpg", "jpeg"]
},
multiple: true
});
贡献
请参阅 CONTRIBUTING.md 了解开发设置和指南。
许可证
MIT 许可证 - 有关详细信息,请参阅 LICENSE 文件。
推荐服务器
Claude Code MCP
一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。
@kazuph/mcp-taskmanager
用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。
Beamlit MCP Server
一个 MCP 服务器实现,它支持 Beamlit CLI 和 AI 模型之间的无缝集成,并使用模型上下文协议标准。
ThingsPanel MCP
一个集成服务器,将人工智能模型与 ThingsPanel 物联网平台连接起来,使人工智能助手能够通过自然语言与物联网设备交互,以进行设备控制、数据检索和管理操作。

systemd-coredump MCP Server
启用支持 MCP 的应用程序,通过与 systemd-coredump 功能集成,来访问、管理和分析系统核心转储。
Terminal Controller for MCP
一个 MCP 服务器,它通过一个标准化的接口,使 LLM 能够安全地执行终端命令、进行目录导航和进行文件系统操作。

mac-apps-launcher
一个 MCP 服务器,用于在 MacOS 上列出和启动应用程序。 (Yī gè MCP fúwùqì, yòng yú zài MacOS shàng lièchū hé qǐdòng yìngyòng chéngxù.)
applescript-mcp
使LLM应用程序能够通过AppleScript与macOS交互。
Google Tasks MCP Server
与 Google Tasks 集成,允许列出、读取、搜索、创建、更新和删除任务。
MCP 3D Printer Server
通过 MCP 服务器实现与 3D 打印机管理系统的交互,支持 STL 文件操作、切片以及对 OctoPrint、Klipper、Duet 等打印机的控制。