Tmp.GgDaR2JWMg
Latest: v2.11.0
- Calendar list/search now default to compact JSON with pagination metadata, local-time fields, filtering, duplicate merging, and optional recurring-series collapse; use
view: "full"for the previous text output. - Recurrence details are now documented for
calendar_readgetandview: "full". - Removed
skill-card.md.
apple-swift-mcp
Native Swift MCP server for Apple apps. Compiled binary with embedded TCC usage descriptions — Calendar, Reminders, Contacts, and Maps talk to EventKit / Contacts / MapKit directly. Mail, Messages, Notes still go through AppleScript (no public framework exists) but run in-process via NSAppleScript instead of spawning osascript. Photos combines PhotoKit (structured search, albums, favorites, export/import) with the same in-process AppleScript for titles and free-text search; descriptions and keywords are read and written through PhotoKit. Music playlists go through Music.app's scripting dictionary in an osascript subprocess (MusicKit cannot edit playlists on macOS).
Install
Download the latest .mcpb from GitHub Releases and double-click to install in Claude Desktop. First run prompts for TCC permissions (Calendar, Reminders, Contacts, full disk if reading chat.db, Automation for Music on the first music call).
Requires macOS 27.2+ on Apple Silicon. Intel users can build from source (swift build -c release).
Tools
Reads and writes are separate tools, so a client can allow the read-only
*_read tools without also allowing sends, edits or deletes. Each *_read
tool takes an operation; every write tool does exactly one thing and takes
no operation.
Calendar / Reminders
calendar_read—calendars,list,search,get.list/searchonly ever look inside one window:fromDate+toDate, orfromDate+daysAhead(pass one, not both; default 7 days forlist, 30 forsearch, maximum 366). Every response names the window it searched and, when more matched thanlimitheld, the total and theoffsetfor the next page — so an empty answer means nothing was scheduled in that window, never that the calendar is clear beyond it. A window longer than the maximum is refused rather than quietly shortened. Each occurrence of a recurring event gets its own id (<series id>#occ=<original start>);getand the write tools act on exactly that occurrence, and a bare series id is refused for a recurring event rather than applied to its first occurrence.calendar_readlist/searchdefault toview: "compact": JSON withtotal/returned/hasMore/nextOffsetbeforeevents, each event{id, calendar, title, start, end, display, startUtc, endUtc, location, recurring}.start/endare local with their offset intz(IANA, default the Mac's) — use them, not the UTC ones, for "what time is it on Monday", anddisplay("Mon 11/9, 3:10–5:00 PM") to show it. No notes or recurrence objects unlessincludeNotes: true(shortened URLs,notesMaxCharsdefault 300). For a routine-heavy window, passexcludeCalendars(names or*globs, e.g."*(mirror)","Holidays in United States"),excludeTitles(substrings or globs) andcollapseRecurring: true(one row per series:occurrences,firstStart,nextStart,rule).calendarNametakes a list. Duplicates across calendars are merged by default (calendars: [...]). Totals count what the filters left; checkleftOutandunmatchedPatternsbefore saying an event isn't there.view: "full"is the old text output.calendar_readfreeTime— open slots within working hours across every calendar on the Mac (work Exchange/Google accounts included), or one withcalendarName.workdayStart/workdayEnd(default09:00–17:00),weekdaysOnly(default true),minDurationMinutes(default 30); window default today plus 7 days, maximum 31. A day the window cuts short says so. Busy means not marked free, not cancelled and not declined by you; all-day events block only withincludeAllDay: true. Nothing before now is offered. Times are wall-clock times in the Mac's zone, which is howcalendar_createreads an offset-less time, so a slot can be booked by passing its date and time straight back.calendar_create,calendar_update(passingcalendarNamemoves the event),calendar_delete—update/deletetakespan: "futureEvents"to change that occurrence and every later one.- Repeating events:
calendar_createtakesrecurrence(an object) orrrule(one RFC 5545 RRULE line) — not both — plus an optional IANAtimeZone(default the Mac's; offset-less times are read in it). A weekly practice every Monday through May 3:{"title": "Percussion Ensemble practice", "startDate": "2026-11-09T15:30", "endDate": "2026-11-09T17:00", "recurrence": {"frequency": "weekly", "daysOfWeek": ["MO"], "until": "2027-05-03"}}— or the same rule as"rrule": "FREQ=WEEKLY;BYDAY=MO;UNTIL=20270503".recurrencefields:frequency(daily/weekly/monthly/yearly, required),interval,daysOfWeek("MO","2TU","-1FR"),daysOfMonth,monthsOfYear,weeksOfYear,daysOfYear,setPositions,weekStart, anduntil(local, inclusive, no offset) orcount. The preview showsRepeats: Weekly on Monday, until May 3, 2027 (26 occurrences)and the first occurrences.calendar_updatetakesrecurrence/rruleto replace the rule andrecurrence: nullto remove it; on an occurrence id of a series that needsspan: "futureEvents", and a one-off event becomes a series.calendar_readget(andview: "full") shows a series' rule asrecurrence: {"rule": {…}, "summary": "…", "rrule": "FREQ=…"}, whereruleis in the shaperecurrencetakes. reminders_read—lists,list,search,get(paged, soonest due first)reminders_create,reminders_update,reminders_complete,reminders_reopen,reminders_delete
Contacts / Maps
contacts_read—search(default) andget.contacts_create,contacts_update,contacts_delete. Emails, phones and addresses are edited one entry at a time (add/remove/replace), so an edit never rewrites the whole list. Writes need full Contacts access. A card with anything in its Notes field cannot be written through the Contacts framework at all — not just its note, every field — without thecom.apple.developer.contacts.notesentitlement. An update or delete on such a card is replayed automatically through Contacts.app, which does hold the entitlement; it needs Automation access to Contacts.app, and the reply says so when it happens. The replay covers name, organization, job title and note, and declines an edit touching emails/phones/addresses or a birthday (contacts_createwith a note is still refused outright) — those cannot be expressed faithfully in AppleScript, so a declined edit writes nothing rather than part of itself.contacts_deletetakescontactIdonly, never a name.maps— place search (default),directions,geocode_batchandroute_day. Read-only, no permission prompt.geocode_batch— 1–50places(strings or{name, address?, near_lat?, near_lon?}, optional batchnear_lat/near_lon). Each comes backok,ambiguous(with up to 3 alternates),not_foundorerror, withplace_idand a single-place Apple Maps pin link. Cached 30 days;refresh: truebypasses.route_day— 2–25stops({name?, lat, lon}) in visiting order: travel time and distance per leg formodes(default walking + automobile; cycling, transit). A timing check only — no steps, no route links. Flags walks overwalk_warn_minutes(default 25).
maps_trip_export— pins a trip itinerary (title+dayswithstops, or a flatstopslist withday, gogcli-mcp-mapsgog_trip_map's shape): one Apple Maps pin link per stop,<slug>.gpx(waypoints only) and<slug>.kmlfiles indirectory(default~/Documents/Trips/<title>/), the"<title> map"Apple Note (updated if it exists; if more than one note has that title, none is changed and the duplicates are named), and optional calendar events (create_events: true+calendar; the whole export then asks first). Dots on a map, not a route.- Typical flow:
geocode_batchthe stops and fix anyambiguous/not_foundones (add an address or lat/lon),route_dayeach day to catch long walks, thenmaps_trip_export. - Apple Maps has no Guides API and no multi-pin link, and can't open GPX or KML — the files are for Google My Maps or a GPX viewer. Don't promise a saved Apple Maps list.
- Typical flow:
Mail / Messages / Notes
mail_read—accounts,mailboxes,unread,search,get. Search reads Mail's Envelope Index directly (needs Full Disk Access), so it is fast on large accounts and returns results newest first.mail_send— send an email. Confirmation-gated (see below).messages_read—chats(recent chats with theirchatIDand unread count;limit,unreadOnlyto list only chats with unread messages — refused, not answered empty, whenchat.dbrecords no read state),chat(one chat's name, identifier, GUID, service and participants;chatID),read(history fromchat.db, newest first;chatID,limit, plus optionalfromDate(inclusive) /toDate(exclusive) — ISO-8601, offset-less is local time — andparticipant, a handle matched exactly against each message's handle, ignoring case but with no phone normalization; withoutchatIDthe filters apply across every chat, and a filtered answer states its window and handle), andsearch(message text across all chats, newest first, each hit tagged with itschatID;query,match=contains(default) orexact,limit— the header says when more matched thanlimit), andstats(message counts over all ofchat.db, or one chat withchatID: total / sent / received, per-service counts, top 10 chats and top 10 senders of received messages — each list says how many more were not shown — and a by-date summary stating its first and last day, per-year totals and busiest days;timeZone, an IANA id, sets the zone days are bucketed in (default this Mac's), andincludeMedia: trueadds attachment totals and the top types by count and size; a badchatIDortimeZoneis refused by name). Eachread/searchrow also shows detail lines around the text (the text itself sits one level deeper, every line of it, so message content can't pose as a detail line): the message it replies to (↪ replying to …, or↪ in reply to …when chat.db names no sender — an unnamed parent isn't assumed to be yours; quoted text cut at 80 characters), each attachment's name, MIME type, size and local path (marked when the file is not on this Mac; nothing is copied), tapbacks folded under the message they target (reactions: ❤️ Jane, 👍 you— never as rows of their own), a poll's question and options (with vote counts when the row carries them), and a link preview's URL. A handle that is in Contacts prints asName (handle)in every operation — pass the handle in parentheses, not the name, toparticipantormessages_sendto. Names appear only once Contacts access has been granted (e.g. by acontacts_readcall);messages_readnever asks for it.messages_send— send an iMessage / SMS, optionally with an attachment, to exactly one ofto(a phone or email) orchatID(an existing chat, e.g. a group — the preview lists everyone in it; omitservice). The answer is checked againstchat.dbfor up to ~5 seconds: it names the service the message actually went out on (including an SMS fallback from iMessage, or Messages downgrading it), and saysdelivered <time>(plusread <time>; local ISO-8601 with UTC offset, e.g.2026-10-20T14:05:00-04:00),sent, delivery not yet confirmed(usual for SMS, which often never gets a delivery receipt — reported about 1.5 seconds after the row appears rather than after the full wait),queued, not yet confirmed delivered, or — as an error — that Messages reports it failed with an error code. Only a row written after the send counts, so an identical message sent a moment earlier is never taken for this one. With both text and an attachment only the text's row is checked; the answer says(attachment delivery not checked).not yet visible in chat.dbis a warning, not a failure: the send left, it just isn't verified yet. A send is never retried; checkmessages_readbefore sending again. Confirmation-gated (see below). Attachments inside hidden directories or dotfiles,~/Libraryand system locations are refused.notes_read—list,search(optionally with bodies inline),get(a full note, pageable),folders.notes_create,notes_update,notes_delete
Photos (PhotoKit + AppleScript)
photos_read—albums,list,search,searchText(free text),asset(detail),imageData(a JPEG rendition)photos_export(originals to a directory),photos_import,photos_create_album,photos_add_to_album,photos_remove_from_album,photos_update(setFavorite/setTitle/setDescription/setKeywords/setRating/setLivePhotoPlayback)photos_copy_album— start a background copy of an album (shared-stream items are imported as local copies, library items added by reference;dryRunpreviews counts, rerunning the same source/target resumes) into a regular local album; returns ajobIdat once.photos_copy_album_status— poll ajobIdfor done / remaining / failed counts. Read-only.
Music (playlists in the local Music.app library)
music_read—playlists(default; every playlist and folder with its kind, track count and folder; filter withqueryorfolderId,"root"for the top level),playlist(one playlist's tracks in order, with positions, ids and arevision),search(library tracks matchingquery— find the ids to add). Ids are Music persistent IDs (16 hex characters, shown as[id …]).music_create_playlist(optionally in a folder and already holdingtrackIds),music_create_folder,music_add_tracks(appends; skips tracks already there unlessskipDuplicates: false),music_update_playlist(rename, description, move into a folder).music_remove_tracks(trackIdsremoves every copy;positionsremoves exactly those rows),music_reorder_playlist(mode:move,sort,reverse,dedupe,replace),music_delete_playlist(a playlist, or an empty folder). All three are confirmation-gated.- Local library only: a song that is only in the Apple Music catalog cannot be added (add it to the library in Music first). Only plain playlists have editable tracks — smart playlists and ones Music manages are read-only.
- Reordering rebuilds the playlist in place (Music has no reorder command): it keeps its id, name and folder, but each track's "date added" resets.
- Pass the
revisionfrommusic_readasexpectedRevisionto have an edit refused if the playlist changed in between. Every write reports whether a re-read confirmed it; with iCloud Music Library on, Music can revert edits to synced playlists, so "not verified yet" means check again, not retry. - The first call asks to let the app running the server control Music (Automation).
With apple-icloud-mcp
When both servers are connected, prefer this one for Calendar, Contacts and
Mail on the Mac (it sees every account, not only iCloud) and for Reminders,
Notes, Messages, Photos and Music.app playlist edits. Use apple-icloud-mcp for
the Apple Music catalog, Apple Maps and WeatherKit. Change one thing through
one server at a time: both can edit the same iCloud event, contact or synced
playlist. To put a catalog song in a local playlist, add it with
apple_music_add_to_library first, wait for Music.app to sync it, then
music_read search and music_add_tracks. If the search is empty, wait
rather than adding the song again. The reorder tools name their arguments
differently: mode/sortBy here, operation/by there.
Confirmation (sends, deletes, calendar writes and playlist rewrites)
mail_send, messages_send, calendar_create, calendar_update,
calendar_delete, contacts_delete,
reminders_delete, notes_delete, music_remove_tracks,
music_reorder_playlist and music_delete_playlist.
None acts on its first call. A client with MCP
elicitation prompts the user. Otherwise the first call returns
status: "confirmation-required" with a preview and a confirmToken: show
the preview to the user, and only after they approve call again with the same
arguments plus confirmToken. The token is single-use and bound to exactly
those arguments. MCP_CONFIRM_MODE (ask-user default / auto / refuse)
sets the fallback.
Upgrading from the multiplexed tools (2.0)
The old calendar, reminders, contacts, mail, messages, notes and
photos tools are gone. Calling one returns an error naming its
replacements. The same operation values carry over to the *_read tools;
each write operation became its own tool (messages send →
messages_send, contacts delete → contacts_delete, reminders
complete → reminders_complete, photos setTitle → photos_update
with operation: "setTitle", and so on).
Environment
Optional user config (set in Claude Desktop → Settings → MCP):
APPLE_MCP_DEFAULT_CALENDAR— default calendar name for event creationAPPLE_MCP_DEFAULT_REMINDER_LIST— default list name for reminder creation
Notes
- Binary is arm64-only because some transitive MCP SDK deps (swift-collections, swift-service-lifecycle) don't declare x86_64.
- EventKit / Contacts / MapKit-backed tools are orders of magnitude faster than the equivalent AppleScript path.
messages_readreadschat.dbdirectly for history;messages_senduses AppleScript.mail_readsearchtakes multiple terms in one call — prefer that over one call per term:invoice overdue— both (implicit AND)invoice OR receipt— either (ORmust be uppercase)"past due"— quoted phrasefrom:/to:/subject:— field scoping, combinable with AND
- A
mail_readtimeout comes back as an explicit error, never as an empty result list. If you see "the search completed and matched no messages", the search really did finish and find nothing. If you see "Timed out", nothing was retrieved and the query needs narrowing — do not report it as "no mail found".
