apple-calendar-mcp
MCP server for Apple Calendar via native EventKit API with proper recurring event support.
README
apple-calendar-mcp
MCP server for Apple Calendar via native EventKit API with proper recurring event support.
Why This Exists
AppleScript-based calendar integrations fail to correctly expand recurring events — they return the master event instead of individual occurrences. This project uses Apple's native EventKit framework with predicateForEvents, which properly expands recurring events into their individual occurrences within a date range.
Architecture
Claude Code ──stdio JSON-RPC──▶ TypeScript MCP Server ──execa──▶ Swift CLI (apple-bridge) ──EventKit──▶ macOS Calendar
- TypeScript layer — MCP server with 6 tools, Zod validation, JSON-RPC over stdio
- Swift layer — CLI binary using EventKit, returns JSON envelope
{status, data, error}
Prerequisites
- macOS 13+ (Ventura or later)
- Swift 5.9+ (included with Xcode 15+)
- Node.js 20+
Installation
Option 1: npm (recommended)
claude mcp add --scope user apple-calendar -- npx apple-calendar-mcp
This will automatically download the package, compile the Swift bridge, and register the MCP server. Requires macOS with Xcode or Swift toolchain installed.
After installation, grant calendar access:
npx apple-calendar-mcp doctor
Grant Full Access when prompted. If access was previously denied:
tccutil reset Calendar
npx apple-calendar-mcp doctor
Option 2: From source
git clone https://github.com/EgorKurito/apple-calendar-mcp.git
cd apple-calendar-mcp
./scripts/build.sh
Grant calendar access:
swift/.build/release/apple-bridge doctor
Connect to Claude Code using one of these methods:
Project-level .mcp.json
Copy .mcp.json.example to .mcp.json in your project and update paths:
{
"mcpServers": {
"apple-calendar": {
"command": "node",
"args": ["/path/to/apple-calendar-mcp/build/index.js"],
"env": {
"APPLE_BRIDGE_BIN": "/path/to/apple-calendar-mcp/swift/.build/release/apple-bridge"
}
}
}
}
User-level CLI registration
claude mcp add --scope user apple-calendar \
node /path/to/apple-calendar-mcp/build/index.js \
-e APPLE_BRIDGE_BIN=/path/to/apple-calendar-mcp/swift/.build/release/apple-bridge
MCP Tools
| Tool | Description |
|---|---|
get_calendars |
List all calendars with their IDs and colors |
get_events |
Get events in a date range (properly expands recurring events) |
get_today_events |
Get all of today's events |
search_events |
Search events by title, location, or notes |
create_event |
Create a new calendar event |
delete_event |
Delete an event (single occurrence or all future occurrences) |
Verification
# Check system diagnostics
swift/.build/release/apple-bridge doctor
# List calendars
swift/.build/release/apple-bridge calendars
# Today's events
swift/.build/release/apple-bridge today
# Events in a date range (recurring events expanded)
swift/.build/release/apple-bridge events --start "2026-02-01T00:00:00Z" --end "2026-02-28T23:59:59Z"
Troubleshooting
Calendar access denied Reset TCC permissions and re-run:
tccutil reset Calendar
swift/.build/release/apple-bridge doctor
Recurring events not expanding
This is the exact problem this project solves. Ensure you're using the MCP tools (which use predicateForEvents) rather than AppleScript-based alternatives.
ISO 8601 parse error
The Swift binary expects dates in format 2026-02-07T10:00:00Z or 2026-02-07T10:00:00.000Z.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run
./scripts/build.shto verify the build - Submit a pull request
License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.