Give Claude Code, Codex and Cursor your Apple Calendar
To give Claude Code, Codex or Cursor your Apple Calendar, install Duly, a Mac menu bar app that lets AI assistants read and add Apple Calendar events and Reminders, and register its MCP bridge with each tool: claude mcp add, codex mcp add, or one entry in ~/.cursor/mcp.json. The bridge connects to the Duly menu bar app, which holds the Calendar and Reminders permission, so you never grant it to your terminal app. After that, an agent can check your week, block time for a task and leave you reminders from inside a coding session.
Why not just run a calendar server from the terminal?
You can, and it works in Claude Code: macOS charges the Calendar request to the app that launched it, so the dialog asks for Terminal (or iTerm, or Ghostty). From then on every script, package install and agent you run in that terminal can read your calendar. Anthropic's MCP issue tracker has an open report (October 2026) describing exactly this, and the silent refusal the same server meets in Claude Desktop.
Duly keeps the grant in one signed app. The bridge each tool starts is a pipe to that app, so macOS sees Duly asking, once, and you can revoke it in System Settings without touching your terminal. It is not a sandbox: any program running as you can reach Duly the same way an agent does. What Duly adds is control over what that reaches: the calendars and lists you share in its Settings, read only when Allow changes is off, and a Recent list of the latest calls, so you can see what an AI assistant read or changed in your calendar. If you also use the Claude app, connecting Claude Desktop takes the same two minutes, and Apple Reminders MCP lists what agents can do with your to-dos.
Claude Code
In Duly's menu, under AI apps, click Set up next to Claude Code, or run:
claude mcp add --scope user duly -- /Applications/Duly.app/Contents/MacOS/duly-mcp
--scope user makes it available in every project; leave it out to add it to the current project only. Check with claude mcp list, then start a session and ask "what is on my calendar tomorrow?".

Codex
Click Set up next to Codex (then start a new Codex session), or run:
codex mcp add duly -- /Applications/Duly.app/Contents/MacOS/duly-mcp
That writes a [mcp_servers.duly] table with the command into ~/.codex/config.toml. If you prefer to edit the file, the entry is:
[mcp_servers.duly]
command = "/Applications/Duly.app/Contents/MacOS/duly-mcp"
Cursor
Click Set up next to Cursor, or add Duly to ~/.cursor/mcp.json for every project (a .cursor/mcp.json in a project works for that project only):
{
"mcpServers": {
"duly": {
"type": "stdio",
"command": "/Applications/Duly.app/Contents/MacOS/duly-mcp"
}
}
}
Keep any servers already in the file; Duly's own setup merges its entry and backs up the file first.
How can Codex or Cursor add events to my Apple Calendar on Mac?
Through Duly's create_event tool, once Duly is set up for that tool as above and Allow changes is on in Duly's menu. Ask in plain words ("add a code review to my Work calendar tomorrow at 10") and the agent sends a title and a start; the rest is optional. In Duly's code, a time with no time zone is local to your Mac, an event without an end lasts 60 minutes unless the agent gives duration_minutes, a date with no time becomes an all-day event, and an event without a calendar goes to your Mac's default calendar, unless you turned that calendar off in Duly's Settings: then Duly refuses it and the agent has to name another calendar. The agent can also attach a location, notes and a link. A calendar you turn off in Duly's Settings is left out of what the agent sees, and Duly will not add to it, whether the agent names it or it is your Mac's default; with Allow changes off the call is refused with a message telling you where to turn it on. The same works in Claude Code, and the event lands in Apple Calendar itself, so an iCloud calendar shows it on your iPhone once iCloud syncs.
Things worth asking from a coding session
Agents are good at turning the end of a task into the next step, and a calendar makes that stick:
- "Block 90 minutes tomorrow morning to finish this refactor, in my Work calendar."
- "Remind me Thursday at 10 to check the migration on staging."
- "When is my next free hour today? Schedule the code review there."
- "Look at my week and tell me which day has room for the release."
- "List the reminders in my Side project list that are still open."
The agent calls get_today first, so relative dates use your Mac's date and time zone, then reads or writes through get_events, create_event, update_event, get_reminders, create_reminder and complete_reminder. There is no delete tool, so an agent in a hurry can add a wrong event but never remove one of yours.
A worked example: closing a task
Say you finish a pull request late on a Tuesday and ask Claude Code: "wrap up: block time to review feedback when it comes, and remind me to deploy." A good session goes like this:
get_todayreturns Tuesday evening, Europe/Paris.get_eventsfor Wednesday shows a stand-up at 09:30 and meetings from 14:00, andlist_calendarsgives the ids of the Work calendar and the Work list.create_eventputs "Review PR feedback" in your Work calendar from 10:00 to 11:00, between the two.create_reminderadds "Deploy the billing fix" to your Work list, due Wednesday at 16:00.
The agent then tells you what it added, and if those are iCloud calendars you see both on your iPhone once iCloud syncs, as with anything you add by hand. Nothing in that loop needed you to open Calendar or Reminders.
One project or every project
User-wide settings (--scope user in Claude Code, ~/.codex/config.toml, ~/.cursor/mcp.json) are the simple choice: your calendar is not a project detail. If you share a repository with others, keep Duly out of the project's own files such as .mcp.json or .cursor/mcp.json, since they get committed and the path would mean nothing on a teammate's Mac.
If the tools do not show up
- Start a new session after adding the server; running sessions do not reload MCP settings.
- Check that Duly is in the menu bar and that its switches are on in System Settings, Privacy & Security, Calendars and Reminders.
- Ask the tool itself:
claude mcp listshows whether each server connects,codex mcp listshows what Codex has configured, and Cursor lists its servers on its Customize page, with errors under Output, MCP Logs. - If writes are refused with a message about changes, Allow changes is off in Duly's menu.
Questions
Can I add it to one project only?
Yes. Use Claude Code's default local scope, or a project's .cursor/mcp.json, instead of the user-wide settings.
Does the bridge keep running in the background?
Each assistant starts it with its session and stops it when the session ends. Duly itself stays in the menu bar.
Which macOS do I need?
macOS 14 Sonoma or later.