Apple Calendar MCP
🍎 Apple Calendar MCP — macOS Calendar for Claude
Apple Calendar MCP is a Model Context Protocol server that hands Claude (and any other MCP client) the keys to the macOS Calendar.app that's already on your Mac. It speaks AppleScript under the hood — no cloud API, no CalDAV account setup, no telemetry — and exposes six focused tools for listing, searching, creating, updating, and deleting events.
If you want Claude to actually do things on your calendar instead of pasting iCal blobs at you, this is it.
GitHub · Issues · Changelog · Security · Contributing · Vision
Install
Runtime: Node 22.14+, macOS (Calendar.app required).
claude mcp add apple-calendar -- npx -y apple-calendar-mcpOr use the npx one-liner directly — no install step — and let your MCP client spawn it on demand (see Quick start below).
Related MCP server: Apple Calendar MCP Server
Quick start
Add this to your Claude Code MCP config (~/.claude.json or a project-local .mcp.json):
{
"mcpServers": {
"apple-calendar": {
"command": "npx",
"args": ["-y", "apple-calendar-mcp"]
}
}
}Then ask Claude things like:
"What's on my calendar this week? Summarize anything that overlaps."
"Create a 30-minute focus block tomorrow at 9am titled 'Deep work — refactor.'"
"Find every event mentioning '1:1' in the last month and list the attendees."
"Move my Friday 3pm dentist appointment to next Tuesday at 10am."
Default: the server runs over stdio only. Your calendar never leaves your Mac.
macOS permissions
The first time a tool runs, macOS will prompt you to grant Calendar access to the controlling process (the terminal or IDE that spawned npx). Approve it.
If you see "not authorized" or error -1743 / -1744 later:
Open System Settings → Privacy & Security → Automation.
Find your terminal / IDE (Terminal.app, iTerm, VS Code, Cursor, Claude Code…).
Enable the Calendar toggle underneath it.
You may also need Privacy & Security → Calendars enabled for the same app. If you launched via npx, the controlling process is whichever app spawned it — not npx itself.
Tools
Tool | Description | Key args |
| All calendars with | — |
| Events in a date range |
|
| Substring match across title, location, notes |
|
| Create a new event on any writable calendar |
|
| Update any subset of fields |
|
| Delete by id |
|
All dates are ISO 8601 (2026-04-21T14:30:00Z or 2026-04-21T10:30:00-07:00). Event id values are Calendar.app uid strings — stable across calls, safe to stash and reuse.
Security defaults
Apple Calendar MCP treats every string arriving from an MCP tool call as untrusted. That matters because AppleScript has no prepared-statement equivalent.
AppleScript string escaping. Every user-supplied string (event titles, notes, calendar names, event ids, etc.) passes through
escapeAppleScriptString, which escapes\and"before wrapping in quotes. This is the only user-input path intoosascript, and the function is unit-tested against injection payloads like"; do shell script "rm -rf /"; --.stdio is the transport. Everything human-readable goes to stderr. Stdout is reserved for the MCP protocol. Don't
console.login tool code — that corrupts the transport.Stable event ids.
idis the Calendar.appuid, not a list-index or hash. It survives restarts, moves between calendars, and edits.What this server does NOT do: no network listener, no HTTP endpoint, no CalDAV/iCloud/Google sync, no telemetry, no background processes. Your MCP client spawns
osascript, gets a reply, and that's the end of it.
See SECURITY.md for the full threat model.
Highlights
Zero-config from Claude Code — one
claude mcp addline and you're done.Local-only — no cloud, no CalDAV client, no background daemon.
Six tools, nothing hidden — list calendars, list events, search, create, update, delete.
AppleScript-injection hardened — every string is escaped, every escape is unit tested.
Stable event ids across calls and sessions.
ISO 8601 everywhere — timezone-aware inputs, deterministic outputs.
Unicode-clean — emoji, CJK, and newlines round-trip through
osascriptwithout mangling.
Development
git clone https://github.com/yongzhe-wang/apple-calendar-mcp.git
cd apple-calendar-mcp
pnpm install
pnpm test
pnpm build
pnpm checkpnpm dev— rebuild on changepnpm test— run the unit suite (pure helpers only, no Calendar.app required)pnpm lint/pnpm lint:fix— oxlintpnpm format/pnpm format:check— oxfmtpnpm typecheck—tsc --noEmitpnpm knip— unused code/depspnpm check— typecheck + lint + format:check + knip (same gate as CI)
Project layout:
src/
index.ts # MCP server bootstrap (stdio transport)
applescript.ts # osascript bridge + string/date escaping helpers
errors.ts # user-facing error formatting
types.ts # zod schemas for tool inputs
tools/ # one file per MCP tool
test/ # unit tests for pure helpers (no Calendar.app required)How it works
Apple Calendar MCP runs osascript -e <script> for each tool call. It builds the AppleScript source in TypeScript, escapes every untrusted field through escapeAppleScriptString, and reads back a single string result.
To survive arbitrary user text inside that result (commas, newlines, quotes, emoji), the scripts emit fields joined by ASCII control bytes — record separator 0x1E between rows and unit separator 0x1F between fields. These bytes virtually never appear in real calendar data, so parsing becomes a dumb split — no CSV/JSON quoting gymnastics, no ambiguity.
Why not a Swift/EventKit helper binary? EventKit is cleaner, but shipping a signed native binary through npm is a packaging nightmare, and AppleScript + osascript is already on every Mac. The trade-off is verbose scripts; the win is zero-dependency distribution.
Why another Apple Calendar MCP?
There are a handful of existing MCP servers that try to reach macOS Calendar.app. Most of them fall over in at least one of the same ways. This table is the landscape as of April 2026:
Repo | Approach | Status | Where it breaks |
AppleScript (TS) | archived Aug 2025 | locale-dependent | |
EventKit (Python) | active, 24 open issues | timezone bugs on list/create/delete (issues #17, #20, #25, #18); requires launching Claude from terminal for the permission prompt | |
AppleScript (TS) | stale since Apr 2025 | zero escaping on event title — direct interpolation into AppleScript source | |
Generic AppleScript runner (TS) | active | not calendar-specific; escaping responsibility pushed entirely to the LLM caller | |
Native Swift EventKit | active | feature-rich but requires downloading a signed binary and a |
Systemic problems across the category
AppleScript injection. Most AppleScript-based servers either don't escape user input at all, or escape in the wrong order (quotes before backslashes, which is broken). A malicious event title can exit the AppleScript string and run arbitrary shell.
Locale-sensitive date literals. AppleScript's
date "Monday, April 21, 2026 at 10:00:00 AM"parses differently in non-US locales. Several servers ship this bug.Timezone handling in EventKit servers. Moving off AppleScript doesn't fix timezone correctness — the Python EventKit option has open bugs on all-day events, recurring deletions, and ISO 8601 parsing.
Permission UX is uniformly painful. Servers variously require
codesigninvocations, running Claude from a terminal, or a special launch path to trigger the TCC prompt.stdout-vs-stderrdiscipline is undocumented. MCP speaks JSON-RPC on stdout; a strayconsole.login server code silently corrupts the transport. No competitor README flags this.No published threat model. None of the above ship a
SECURITY.mdthat names AppleScript injection, permission scope, or the stdout invariant.
What this server does differently
escapeAppleScriptStringescapes\before", tested with adversarial payloads including"; do shell script "rm -rf /"; --in every string field.isoToAppleScriptDateis built from epoch seconds against a fixed 1970 anchor so it parses identically on every macOS locale.Event
idis Calendar.app's ownuidproperty — stable across app restarts and (with the copy-then-delete update path) survives calendar moves cleanly.console.logis banned in server code paths. All diagnostics go tostderr.stdoutis reserved for the MCP transport.Every tool argument is validated by
zodat the boundary.osascriptruns with a 16 MiB output cap to bound memory on runaway scripts.SECURITY.mddocuments the threat model — AppleScript injection, permission scope, stdout transport.
Honest gaps
We're not feature-complete. Today this server does not cover:
Reminders.app (separate AppleScript target — tracked for v0.2).
Recurring-event expansion UI — RRULE strings are returned raw; client-side filtering only. Cross-calendar moves of recurring events are explicitly blocked with a clear error (tracked for v0.2) rather than silently flattening the series.
Attendee management, conflict detection, batch operations — che-ical-mcp has these if you need them.
Sequoia TCC parent-process permission attribution is not documented in the install section yet.
If you need any of the above today, che-ical-mcp or mcp-ical are your better options. If you want a small, correctness-first calendar bridge that won't eat your events, this is it.
FAQ
Does this need iCloud? No. It talks to whatever calendars are configured in Calendar.app — iCloud, Google (via Calendar.app), local "On My Mac", CalDAV, whatever. If Calendar.app can see it, this server can.
Does it need Full Disk Access? No. Only Automation access to Calendar (and, on some macOS versions, Privacy & Security → Calendars).
Linux / Windows support? No. This server is Mac-only by design — it uses osascript and Calendar.app. The package.json declares "os": ["darwin"] so npm install on other platforms is a fast fail.
How are event ids stable? The id is the Calendar.app uid, a UUID-ish string that persists across edits, calendar moves, and Calendar.app restarts. It's the same value Calendar.app uses in CalDAV sync.
Recurring events? The current tools read each occurrence as Calendar.app presents it. You can update or delete a specific occurrence by its uid, but this server does not (yet) expose recurrence-rule editing. See VISION.md for the roadmap.
Does anything get sent over the network? No. Zero network listeners, zero outbound calls. The server reads stdin, writes stdout, and shells out to osascript — that's it.
Contributing
Bug reports and PRs welcome. See CONTRIBUTING.md for setup, review, and scope guidelines.
License
MIT © Yongzhe Wang 2026
Available Tools
22 toolsapply_character_remindersApply character remindersB
Mutate calendar event titles using Claude-composed new_title strings. Stores the original title/notes/location inside the event's notes (backup block) and writes a snapshot file for batch revert. Supports dry_run.
Inputs: events_with_reminders (required), dry_run.
cache_research_factsCache research factsC
Stage 2 follow-up. Persists Claude's web-research findings into ~/.apple-calendar-mcp/memory.json's external_facts map (7-day TTL).
Inputs: facts (required).
create_eventCreate eventC
Create a new calendar event. calendar_name defaults to the first writable calendar.
Inputs: title (required), end_date (required), start_date (required), url, +4 more.
delete_eventDelete eventB
Delete an event by its event_id (uid).
Inputs: event_id (required).
distill_voice_from_textDistill voice from textB
Take a corpus of someone's public writing/talks/tweets and return a draft Distiller object plus instructions for the calling LLM to fill in the voice directive and signature phrases. Output voices are synthetic; not endorsed.
Inputs: name (required), corpus_text (required), short_label (required), triggers, +2 more.
enrich_with_character_remindersEnrich with character remindersC
List events in a window and attach a relational character (Mom, Friend, Coach, Past-you, etc.) plus per-event memory_context drawn from seeded memory, so Claude can compose one-sentence reminders that reference real prior events.
Inputs: end_date (required), start_date (required), seed, calendars, +7 more.
extract_entities_from_inputExtract entities from inputB
Stage 1 of YAPPING pipeline. Returns a structured extraction schema instructing Claude to parse a screenshot/message into events, people, topics, statements, intent.
Inputs: input_description (required), intent_hint.
list_calendarsList calendarsA
List all calendars available in macOS Calendar.app, including whether each is writable.
Inputs: no named parameters.
list_distillersList distillersB
List built-in distillers (synthetic voices distilled from public material — Garry Tan, PG, Naval, Karpathy, Steve Jobs, Munger, Bezos, etc.) plus user-defined ones. Voices are synthetic; not endorsed.
Inputs: name_filter, worldview_filter, use_persistent_config.
list_eventsList eventsB
List events in Calendar.app between start_date and end_date (ISO 8601). Optionally filter by calendar.
Inputs: end_date (required), start_date (required), limit, calendar_name.
list_events_in_mixed_personasList events in mixed personasC
Wraps list_events and assigns a distinct voice from a 30+ pool to each event (no two events share a voice). Optional thematic mapping (DMV->Kafka, exam->Plath, etc.). Distinct-voice mortality calendar.
Inputs: end_date (required), start_date (required), seed, calendars, +3 more.
list_events_in_personaList events in personaB
List events between start_date and end_date and return them alongside a persona directive that tells the calling LLM how to rewrite each event. Built-in personas: werner_herzog, hemingway, four_year_old, asian_mom, marcus_aurelius, anxious_golden_retriever. Use persona='custom' with custom_directive for a freeform style.
Inputs: persona (required), end_date (required), start_date (required), calendars, +1 more.
mortality_overlayMortality overlayB
Wraps list_events and attaches a per-event life_percent_consumed (and cumulative running total) so callers can frame each event as a fraction of an expected lifetime. Memento mori overlay.
Inputs: end_date (required), start_date (required), calendars, birth_date, +2 more.
query_calendar_memoryQuery calendar memoryB
Read seeded calendar memory by person, topic, date range, calendar, similarity to a synthetic event, or all. Returns matches plus total_in_memory.
Inputs: query_type (required), event, limit, end_date, +3 more.
query_full_context_for_eventQuery full context for eventC
Stage 6. Returns the full context bundle (memory + people + topics + external facts + user notes) for one event so Claude can compose substantive voice commentary.
Inputs: event_uid, event_inline, top_n_memory, top_n_people, +3 more.
research_entitiesResearch entitiesC
Stage 2. Returns cached external_facts plus a research directive for entities not yet known. Claude does web search at its layer and calls cache_research_facts.
Inputs: entities (required), force_refresh.
revert_character_remindersRevert character remindersB
Find every event in the window whose notes contain the backup sentinel, restore the original title/notes/location, and remove the backup block. If no window is given, scans -5y..+1y across writable calendars.
Inputs: end_date, calendars, start_date.
search_eventsSearch eventsA
Search events by substring match against title, location, and notes (case-insensitive). Defaults to 30 days ago through 90 days from now.
Inputs: query (required), limit, end_date, start_date.
seed_calendar_memorySeed calendar memoryB
Snapshot past events from writable calendars into ~/.apple-calendar-mcp/memory.json so character reminders can reference real prior events. Defaults to the last 5 years.
Inputs: end_date, calendars, start_date.
time_per_calendarTime per calendarB
Aggregate event durations per calendar within a time window. Returns timed seconds, event counts, all-day counts, and percentage of the window each calendar consumed. Common read-only calendars (US/CN holidays, birthdays, Siri Suggestions, Scheduled Reminders) are excluded by default.
Inputs: end_date (required), start_date (required), skip_allday, exclude_calendars.
update_eventUpdate eventA
Update fields of an existing event identified by event_id (its uid). Only provided fields are changed. When calendar_name changes to a different calendar, the event is copied to the target and the source is deleted, so the returned id will be a NEW uid (cache it). Target calendar names are matched case-insensitively and with trimmed whitespace against list_calendars. Recurring events cannot be moved across calendars (returns an error) until v0.2 — edit the series in Calendar.app directly.
Inputs: event_id (required), url, notes, title, +5 more.
update_memory_from_inputUpdate memory from inputC
Stage 3. Bulk-merges extraction results + research into memory's events / people / topics / user_notes maps.
Inputs: source_label (required), events, people, topics, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Core CRUD is distinct, but five tools (list_events, list_events_in_persona, list_events_in_mixed_personas, mortality_overlay, enrich_with_character_reminders) all return events in a window with different 'styling' layers, making misselection likely. Memory/context tools (query_calendar_memory, query_full_context_for_event) and the multi-stage YAPPING tools also blur together.
The vast majority follow a clear snake_case verb_noun pattern (list_events, create_event, update_event, delete_event, seed_calendar_memory, cache_research_facts). A couple of noun-phrase outliers (time_per_calendar, mortality_overlay) are minor deviations that remain readable.
22 tools is heavy for a calendar server; roughly seven handle core calendar operations while the rest are an elaborate persona/memory/YAPPING research layer. Each has a rationale but the surface feels feature-bloated rather than tightly scoped.
Core CRUD, calendar listing, search, and aggregation are covered, but there is no standalone get_event-by-id, no attendee/invite or reminder handling, and recurring-event modification is explicitly deferred to v0.2. The pipeline references Stages 1-3 and 6 with no Stage 4/5 tools, indicating workflow gaps.
Maintenance
Related MCP Connectors
Connects ChatGPT to your Apple Calendar via a local Mac agent + Vercel relay
Claude and ChatGPT, connected to your iCloud Calendar, Mail, Contacts and Reminders.
Calendar API for AI agents: events, availability, Google/Microsoft setup, scheduling, and iCal.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTransforms macOS calendar management into a conversational experience using natural language, allowing users to create, manage, and update calendar events seamlessly through an MCP-compatible client.335MIT
- AlicenseNot gradedqualityDmaintenanceProvides Claude with full access to Apple Calendar on macOS for event management, smart scheduling, and schedule analytics. It enables natural language event creation, conflict detection, and template-based scheduling through AppleScript integration.1MIT
- AlicenseAqualityDmaintenanceMCP server that gives Claude and other MCP hosts full access to Calendar.app on macOS — list, search, create, update, and delete events across all configured accounts.71MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to interact with Apple Calendar locally on macOS through EventKit, including listing calendars and events, creating events, and updating events with privacy-conscious safeguards.MIT