mcp-ical-swift
Provides tools to manage Apple Calendar events, including listing calendars, searching and creating events, updating and deleting events.
mcp-ical-swift
Connect an MCP client to Apple Calendar on your Mac. The Bun server talks over stdio and uses a signed Swift helper to query EventKit. The server has no network listener or API keys.
Install
Use macOS 14 or later, Bun 1.3.3 or later, and the Xcode Command Line Tools (xcode-select --install).
git clone https://github.com/Sealjay/mcp-ical-swift.git
cd mcp-ical-swift
bun install --frozen-lockfile
bun run build
bun run grant
bin/calendar-reader list-calendarsWhen macOS prompts, approve Full Access for calendar-reader. The last command prints your calendars as JSON, or [] if Calendar returns none.
Related MCP server: apple-calendar-mcp
Configure your client
Start with this read-only configuration. Substitute the path printed by command -v bun and the absolute path to your checkout.
{
"mcpServers": {
"ical": {
"command": "/absolute/path/to/bun",
"args": ["run", "--no-env-file", "/absolute/path/to/mcp-ical-swift/src/index.ts"]
}
}
}Client | Configuration |
Claude Code |
|
Claude Desktop |
|
Cursor |
|
Restart the client and ask it to list today's Apple Calendar events. The query uses your Mac's local day and returns UTC timestamps in start-time order.
To enable write tools, add "env": { "ICAL_ALLOW_WRITE": "true" } to the ical entry and restart the client. Already set it? Writes are still enabled. Review the event and calendar before approving a change in your client, since the server has no confirmation step of its own.
Tools
Tool | Use |
| List calendars with their names, UIDs, source labels and writable status. |
| Read an inclusive date range of up to 90 local days. Omit the end date to read one day. |
| Match titles and locations over the next 30 days by default, up to 365 days. |
| Read one event by UID. |
| Add an event to the selected or default calendar. Requires write access. |
| Change supplied fields. An empty location or notes field clears it. Requires write access. |
| Delete the selected event. Changes can sync to the calendar account. Requires write access. |
Use calendar_uid from ical__list_calendars when names are shared across accounts. List and search query all calendars if you omit the calendar. To get, update or delete a recurring event, pass its UID and the occurrence object from the same list or search result. Updates and deletes affect the selected occurrence. All-day creation uses the dates you supply as local days. Use the next date as the exclusive end for a one-day event.
Privacy and permissions
EventKit requires macOS Full Access to read calendars. The read-only configuration limits what the MCP client can call. Your client receives the fields returned by the tools and may send them to its model provider. Notes are searched and returned only when a request sets include_notes: true. Treat shared event text and links as untrusted.
The helper embeds its Calendar usage description and uses a private macOS spawn attribute to request its own permission identity when available. Grant access from a terminal before starting the client. Both the MCP server and the Swift helper run locally, and tool arguments travel over a pipe.
Troubleshooting
If the client cannot find Bun, use the absolute path printed by
command -v bun.If the helper is missing or you have pulled an update, run
bun run buildand restart the client.If Calendar access is denied, check
calendar-readerunder System Settings → Privacy & Security → Calendars. Select Full Access and runbun run grantagain. To clear a stale grant for this helper, runtccutil reset Calendar com.sealjay.mcp-ical-swift.calendar-readerbefore granting again.If a query returns too much data, shorten the range or select one calendar. If the helper stops during a write, check Apple Calendar before retrying.
Run bun test before contributing. Report vulnerabilities privately using the instructions in SECURITY.md.
Available Tools
4 toolsical__get_eventGet Calendar EventARead-only
Get details of one calendar event by UID. Recurring events require the matching occurrence object from list or search. Returns {uid, title, start, end, allDay, calendar, location?, notes?, url?, occurrence?, hasRecurrence?}; use ical__list_events or ical__search_events for bulk queries. Read-only; requires macOS Calendar access.
Inputs: event_id (required), occurrence, include_notes.
ical__list_calendarsList CalendarsARead-only
List calendars available to the local Calendar helper. Returns a JSON array of {name, uid, type, source, writable} objects. Use uid to select a calendar when names are shared across accounts. Read-only. Requires macOS Calendar access.
Inputs: no named parameters.
ical__list_eventsList Calendar EventsARead-only
List calendar events in start-time order within an inclusive date range of up to 90 local days. Returns a JSON array of {title, start, end, allDay, calendar, uid, location?, notes?, occurrence?, hasRecurrence?}; use ical__search_events for keyword queries and ical__get_event for full details on one event. Read-only; requires macOS Calendar access.
Inputs: start_date (required), calendar, end_date, calendar_uid, +1 more.
ical__search_eventsSearch Calendar EventsARead-only
Find upcoming calendar events whose title or location contains the query. With include_notes, also match and return notes. Returns events in start-time order. Use ical__list_events for a specific date range. Read-only. Requires macOS Calendar access.
Inputs: query (required), calendar, days_ahead, calendar_uid, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct query shape: enumerate calendars, enumerate events in a date range, keyword search, or fetch one event by UID. Descriptions explicitly cross-reference the correct alternative ('use list_events for a specific date range'), eliminating misselection risk.
Uniform namespace prefix plus consistent verb_noun snake_case (list_calendars, list_events, search_events, get_event). The two list_* tools differ by resource, which is a predictable and readable pattern.
Four tools is on the lean side but each covers a genuinely different access pattern (enumerate calendars, enumerate by range, search by keyword, fetch by ID), so nothing feels redundant. Slightly thin for a full calendar domain, but well-scoped for a read-only helper.
Read coverage is solid (discovery, range listing, search, detail retrieval with recurrence handling), but the surface is entirely read-only: no create, update, or delete event, and no calendar creation. Agents asked to modify calendars will hit a hard dead end.
Maintenance
Related MCP Connectors
MCP connector for iMessage & Contacts via a local Mac agent + Vercel relay
A butler for your AI agent: iCloud Calendar, Mail and Contacts, and your Mac.
Connects ChatGPT to your Apple Calendar via a local Mac agent + Vercel relay
MCP server for Cronofy — read calendars, events and free/busy, and create, update or delete events.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for accessing macOS Calendar events2MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Apple Calendar via native EventKit API with proper recurring event support.20 npm10MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Apple Calendar, Mail, Reminders, and Files on macOS using native frameworks.35 npm22MIT
- AlicenseNot gradedqualityNot gradedmaintenanceA lightweight MCP server for Apple Calendar on macOS that uses a Swift helper to access EventKit directly, enabling event queries without AppleScript or Calendar.app dependency.MIT