MCP 苹果日历
用于与 macOS 上的 Apple 日历交互的模型上下文协议 (MCP) 服务器。该模块允许 AI 模型通过标准化接口访问和操作日历数据。
先决条件
macOS 12.0 或更高版本
Node.js 16.0 或更高版本
本地运行的日历 API Bridge
安装
克隆此存储库
安装依赖项:
npm install构建 TypeScript 代码:
npm run build
用法
确保日历 API Bridge 在端口 8080 上运行
启动 MCP 服务器:
npm start
可用工具
MCP服务器为AI模型提供以下工具:
getCalendars
:列出所有可用的日历getCalendarEvents
:从特定日历获取事件createCalendarEvent
:在日历中创建新事件updateCalendarEvent
:更新现有事件deleteCalendarEvent
:从日历中删除事件
日期格式
创建或更新事件时,您可以使用以下任意日期格式:
带有毫秒和 Z 时区的 ISO8601(推荐):
2025-03-09T10:00:00.000Z不带毫秒的 ISO8601:
2025-03-09T10:00:00ISO8601 用空格代替 T:
2025-03-09 10:00:00带有正斜杠的 ISO8601:
2025/03/09 10:00:00
日历 API Bridge 已更新,可以自动处理这些日期格式。
发展
要在开发模式下运行服务器并自动重新加载:
执照
麻省理工学院
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
模型上下文协议服务器,用于 AI 模型通过标准化接口访问和操作 macOS 上的 Apple 日历数据。
Related MCP Servers
- -securityFlicense-qualityModel Context Protocol server that provides seamless access to Google Calendar API with asynchronous operation support, enabling efficient calendar management through a standardized interface.Last updated -1
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for interacting with Gmail and Calendar APIs, enabling programmatic management of emails and calendar events.Last updated -825MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI assistants to interact with Apple Reminders on macOS, allowing users to view lists, retrieve, create, complete, and delete reminders through natural language.Last updated -56
- AsecurityAlicenseAqualityA Model Context Protocol server that enables running AppleScript code to interact with Mac applications and system features including Notes, Calendar, Contacts, Messages, file management, and more.Last updated -1141362MIT License