Agentic Mode

Your calendar with a local model


Ask about your Apple Calendar with a model running in Ollama. The model, the server and your calendar all stay on your Mac.

This guide uses the open-source Apple Calendar MCP↗ server with any Ollama model that supports tools. You can ask "What's free tomorrow afternoon?", or open an email in Mail and ask Kerlig to draft a reply that suggests open times.

Before you start

  • Ollama, updated to the latest version, with a model whose Capabilities in ollama show include tools. See Using tools and MCP servers.
  • uv, which provides the uvx command. Follow the uv installation guide↗.
  • Xcode Command Line Tools. The server builds a small helper app the first time it reads your calendar. If you don't have them, run xcode-select --install in Terminal.

Add the server

  1. Open Settings → MCP, click + and choose Local.
  2. Set Command to uvx and Arguments to apple-calendar-mcp.
  3. Save and confirm the trust prompt. The status dot turns green once the server is running.

Keep it lean and read-only

Local models work best with a short list of tools. In the server's tool list:

  • Turn off search_tools, get_tool_info, calendar_list_prompts and calendar_get_prompt. Kerlig doesn't need them.
  • Set calendar_create_event, calendar_update_event and calendar_delete_event to Deny if Kerlig should only read your calendar.
  • Set calendar_list_events to Allow so it runs without asking. Other tools ask for approval the first time.

Give Kerlig full calendar access

The server reads your calendar with the permissions macOS gives Kerlig, so Kerlig needs Full Access to your calendars.

  1. Pick your Ollama model and ask something like "What's on my calendar tomorrow?". The first time, the server builds its helper app, which takes a moment.
  2. macOS asks whether Kerlig may control Calendar and whether it may add events to your calendar. Allow both.
  3. Open System Settings → Privacy & Security → Calendars and set Kerlig to Full Access. The prompt only allows adding events, and with that the server can't read anything.
  4. Ask again. Answers now come from your real events, including all-day and multi-day ones, and arrive in about a second.

If calendar answers are empty or the tool times out, check this setting first.

Drafting a reply from Mail

Open the email in Mail, press your hotkey, and type your request in Ask, for example "Draft a reply suggesting two times I'm free next week". Kerlig reads the email, checks your calendar, and writes the reply. Insert it into Mail when it's ready.

The model works out free time from your events, so check the suggested dates and times before you send. Small local models sometimes pick the wrong day or finish without an answer. A larger model, or naming the day and date in your request, helps. Only Ask and typed follow-ups use tools by default. To use the calendar from your own reply action, turn on Use Tools in its action preferences.

© 2026 Kerlig™. All rights reserved.