Skip to main content
Glama

mcp-ical-swift

Glama MCP listing MIT licence

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-calendars

When 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 mcp add --transport stdio ical --scope user -- /absolute/path/to/bun run --no-env-file /absolute/path/to/mcp-ical-swift/src/index.ts

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json

Cursor

~/.cursor/mcp.json

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

ical__list_calendars

List calendars with their names, UIDs, source labels and writable status.

ical__list_events

Read an inclusive date range of up to 90 local days. Omit the end date to read one day.

ical__search_events

Match titles and locations over the next 30 days by default, up to 365 days.

ical__get_event

Read one event by UID.

ical__create_event

Add an event to the selected or default calendar. Requires write access.

ical__update_event

Change supplied fields. An empty location or notes field clears it. Requires write access.

ical__delete_event

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 build and restart the client.

  • If Calendar access is denied, check calendar-reader under System Settings → Privacy & Security → Calendars. Select Full Access and run bun run grant again. To clear a stale grant for this helper, run tccutil reset Calendar com.sealjay.mcp-ical-swift.calendar-reader before 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 tools
ical__get_eventGet Calendar EventA
Read-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 CalendarsA
Read-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 EventsA
Read-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 EventsA
Read-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

    A4.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers