Skip to main content
Glama

MCP 苹果日历

用于与 macOS 上的 Apple 日历交互的模型上下文协议 (MCP) 服务器。该模块允许 AI 模型通过标准化接口访问和操作日历数据。

先决条件

  • macOS 12.0 或更高版本

  • Node.js 16.0 或更高版本

  • 本地运行的日历 API Bridge

Related MCP server: Google Workspace MCP Server

安装

  1. 克隆此存储库

  2. 安装依赖项:

    npm install
  3. 构建 TypeScript 代码:

    npm run build

用法

  1. 确保日历 API Bridge 在端口 8080 上运行

  2. 启动 MCP 服务器:

    npm start

可用工具

MCP服务器为AI模型提供以下工具:

  • getCalendars :列出所有可用的日历

  • getCalendarEvents :从特定日历获取事件

  • createCalendarEvent :在日历中创建新事件

  • updateCalendarEvent :更新现有事件

  • deleteCalendarEvent :从日历中删除事件

日期格式

创建或更新事件时,您可以使用以下任意日期格式:

  1. 带有毫秒和 Z 时区的 ISO8601(推荐):

    2025-03-09T10:00:00.000Z
  2. 不带毫秒的 ISO8601:

    2025-03-09T10:00:00
  3. ISO8601 用空格代替 T:

    2025-03-09 10:00:00
  4. 带有正斜杠的 ISO8601:

    2025/03/09 10:00:00

日历 API Bridge 已更新,可以自动处理这些日期格式。

发展

要在开发模式下运行服务器并自动重新加载:

npm run dev

执照

麻省理工学院

Latest Blog Posts

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/shadowfax92/apple-calendar-mcp'

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