Note: This MCP server requires macOS with Apple Calendar.
A Model Context Protocol (MCP) server that provides Claude with full access to Apple Calendar for smart scheduling, calendar management, and time management assistance.
- list_calendars - List all available calendars
- create_calendar - Create new calendars
- delete_calendar - Delete calendars
- rename_calendar - Rename existing calendars
- create_event - Create events with natural language date parsing
- Supports "tomorrow at 3pm", "next Friday", "in 2 hours", etc.
- list_events - List events in a specific calendar
- list_all_events - List events across all calendars
- search_events - Search for events by keyword (searches title, location, description)
- update_event - Update event properties
- delete_event - Delete events
- move_event - Move events between calendars
- find_free_time - Find available time slots
- Optional business hours filter (9am-5pm)
- check_conflicts - Check for scheduling conflicts
- suggest_optimal_time - AI-powered time suggestions with preferences
- create_template - Save event configurations as reusable templates
- use_template - Create events from templates
- list_templates - View all saved templates
- delete_template - Remove templates
- analyze_schedule - Get insights on:
- Meeting density (meetings per day)
- Total time spent in meetings
- Daily breakdown of schedule
- macOS (required for Apple Calendar)
- Node.js 20+ and npm
- Apple Calendar app
- Claude Code CLI
-
Clone/Install the server:
cd ~/mcp-servers/calendar npm install npm run build
-
Grant Calendar Access:
- System Preferences > Security & Privacy > Privacy > Automation
- Enable Terminal (or your terminal app) to control Calendar
-
Configure Claude Code:
The server is already configured in:
~/Library/Application Support/Claude/claude_desktop_config.json{ "mcpServers": { "apple-calendar": { "command": "node", "args": [ "/path/to/apple-calendar-mcp/dist/index.js" ] } } } -
Restart Claude Code:
The server will auto-start when Claude Code launches.
"List my calendars"
"Create a calendar called Work"
"Rename the Work calendar to Office"
"Delete the Test calendar"
"Create an event 'Team Meeting' tomorrow at 2pm in the life calendar"
"Schedule 'Dentist Appointment' next Tuesday at 10am with 1 hour duration"
"Add 'Coffee with Sarah' at 3pm today at Starbucks"
The server understands:
- "tomorrow at 3pm"
- "next Friday"
- "in 2 hours"
- "Jan 15 at 10:30am"
- "this weekend"
"Find free time tomorrow for a 1 hour meeting"
"Check if I'm free Friday at 3pm"
"Suggest the best time for a meeting next week, I prefer mornings"
"Find free time during business hours only"
"Search for 'dentist' events this month"
"Find all events with 'meeting' in the title from last week"
"Search for events at 'Starbucks' this year"
"Create a template called 'standup' with 15 minute duration"
"Schedule a standup meeting from template tomorrow at 9am"
"List all my templates"
"Analyze my schedule for this week"
"Show insights for next week"
"How busy am I this month?"
~/mcp-servers/calendar/
├── src/
│ ├── index.ts # Entry point
│ ├── server.ts # MCP server with all tools
│ ├── applescript/
│ │ ├── bridge.ts # AppleScript execution wrapper
│ │ ├── calendar-ops.ts # Calendar CRUD operations
│ │ └── event-ops.ts # Event CRUD operations
│ ├── utils/
│ │ ├── date-parser.ts # Natural language date parsing (chrono-node)
│ │ └── conflict-detector.ts # Conflict detection & free time finding
│ └── storage/
│ └── database.ts # SQLite for templates & history
├── storage/
│ └── calendar.db # SQLite database (auto-created)
└── dist/ # Compiled JavaScript
- Uses
chrono-nodefor parsing natural language dates - Supports relative dates, absolute dates, and common phrases
- Automatically handles time zones and ambiguity
- Direct
osascriptcalls for reliable Calendar access - Proper date formatting for AppleScript
- String escaping to prevent injection attacks
- Error handling for Calendar API failures
- SQLite database for templates and history
- Settings for default preferences
- Undo history (last 100 operations)
- Efficient time slot overlap checking
- Free time finding with configurable intervals
- Business hours filtering
- Optimal time suggestions based on preferences
Default settings (stored in SQLite):
default_calendar: "life"default_event_duration: 1 hour (3600000 ms)business_hours_start: 9 (9am)business_hours_end: 17 (5pm)
npm run buildnpm run devnpx @modelcontextprotocol/inspector npx tsx src/index.tsSolution: Grant automation permissions in System Preferences > Security & Privacy > Privacy > Automation
- Check logs in
~/Library/Logs/Claude/ - Verify build succeeded:
npm run build - Test directly:
npx tsx src/index.ts - Ensure Calendar.app is not in a broken state
- chrono-node handles most common formats
- For edge cases, use explicit formats like "2024-01-15 10:30am"
- Check the input format in the error message
- Verify calendar name matches exactly (case-sensitive)
- Check if Calendar.app is running
- Refresh Calendar.app view
Potential features for v2:
- Recurring events with RRULE support
- Attendee management
- Location autocomplete
- Video conferencing link generation
- iCal import/export
- Proactive schedule optimization
- ML-based event categorization
MIT
Built by Null-Phnix