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 screencapture 捕获屏幕截图。
参数:
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: "What's your name?",
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: "Select images",
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 物联网平台连接起来,使人工智能助手能够通过自然语言与物联网设备交互,以进行设备控制、数据检索和管理操作。
mcp-installer
这个服务器可以帮你安装其他的 MCP 服务器。安装好它之后,你可以让 Claude 为你安装托管在 npm 或 PyPi 上的 MCP 服务器。需要分别安装 npx 和 uv 来支持 Node 和 Python 服务器。
MCP-IDB
模型上下文协议 (MCP) 与 Facebook 的 iOS 开发桥 (idb) 集成,通过自然语言实现自动化的 iOS 设备管理和测试执行。
Harvest Natural Language Time Entry MCP Server
为 Harvest 启用自然语言时间跟踪和报告,包括自动请假申请、项目/任务匹配和日期解析。
Babashka MCP Server
启用使用模型上下文协议执行和管理 Babashka 脚本的功能,提供诸如缓存、命令历史记录访问和可配置超时等功能,以增强脚本编写工作流程。
mcp-shell-server
一个实现了模型上下文协议(MCP)的安全 shell 命令执行服务器。该服务器允许远程执行白名单中的 shell 命令,并支持标准输入(stdin)。
aws-mcp
一个模型上下文协议(MCP)服务器,使像 Claude 这样的 AI 助手能够与您的 AWS 环境交互。 这允许在对话期间使用自然语言查询和管理您的 AWS 资源。 可以把它想象成一个更好的 Amazon Q 替代方案。