Skip to main content
Glama

icskit-mcp

Let your AI work with the .ics calendar files on your own disk: agenda, search, free time, conflicts and safe edits. No account, no OAuth, no network.

icskit-mcp is an MCP server for local iCalendar files: the .ics export from Google Calendar, Apple Calendar or Outlook, or a folder of them.

What is different about it. Other .ics MCP servers lean on a calendar library or only read published feeds. This one ships its own RFC 5545 parser and recurrence engine, and the part that is usually wrong in calendar tools is the part that is tested hardest:

  • Daylight saving is exact. A 09:00 Berlin meeting stays at 09:00 Berlin across the clock change; a time that falls in the spring-forward gap or the fall-back overlap is resolved the way RFC 5545 says; DTEND lengths are real elapsed time; free-time search keeps your wall-clock working hours on 23 and 25 hour days. Tested against America/New_York, Europe/Berlin and Europe/Istanbul (which has no DST), for IANA zones and for custom VTIMEZONE blocks such as Outlook's W. Europe Standard Time.

  • Recurrence is checked against the spec. 30 worked examples from RFC 5545 section 3.8.5.3 (the ones that use supported parts) are test cases, and about a thousand randomized rules are compared against python-dateutil as an independent oracle.

  • Writes are safe by construction. Editing works by line surgery: everything you did not ask to change (other events, VTIMEZONE, VALARM, unknown X- properties, folding, line endings, a BOM) stays byte for byte. By default the original is never touched; you get an edited copy or a patch.

  • Local only. Nothing is sent anywhere. Attendee email addresses are just text in the file.

  • Several calendars at once: free time and conflicts work across all of them.

It is free and MIT licensed, with no paid tier.

Install

You need uv. Pick the folder that holds your .ics files; the server can see only that folder (searched recursively).

Claude Code

claude mcp add icskit -- uvx icskit-mcp --dir "/path/to/calendars"

Claude Desktop - add this to claude_desktop_config.json (Settings, Developer, Edit config):

{
  "mcpServers": {
    "icskit": {
      "command": "uvx",
      "args": ["icskit-mcp", "--dir", "C:\\Users\\you\\Calendars"]
    }
  }
}

(--dir can also be given as the ICSKIT_MCP_DIR environment variable.)

Getting your calendars out

  • Google: Settings, Import & export, Export. You get a zip of one .ics per calendar.

  • Apple Calendar: File, Export, Export...

  • Outlook: File, Save Calendar (or "Export" in the new Outlook), choose iCalendar format.

Related MCP server: MCP Calendar Tools

Try asking

  • "What does my week of 2026-03-02 look like? Use Europe/Istanbul."

  • "When am I free for 90 minutes next Tuesday and Wednesday, between 10:00 and 16:00, with 15 minutes of buffer around meetings?"

  • "Do any of my calendars have meetings that overlap this month?"

  • "What are the next 6 times my 'Board sync' happens?"

  • "Find every event with anna@example.com that is not cancelled."

  • "Add a dentist appointment on 2026-03-10 at 15:00 for 45 minutes (Europe/Istanbul). Show me the patch first."

  • "Cancel just the 2026-03-11 occurrence of the Monday/Wednesday/Friday standup."

  • "Write my week as Markdown notes."

Tools

Tool

What it does

calendar_overview

Files, calendar names, event and recurring-series counts, date span, time zones used, and every problem found (files that failed to load, events skipped and why). Call first.

agenda

Every occurrence in a window, sorted and grouped by day, recurring events expanded (RRULE, EXDATE, RDATE, modified instances), recurrence marked.

search_events

Text, attendee, location or regex search; lists events/series, or expanded occurrences when you give a window.

find_free_time

Free blocks of at least N minutes inside working hours and working days, across one or several calendars, with buffers.

find_conflicts

Overlapping events, including across calendars. All-day and "free" (TRANSPARENT) events are ignored unless you ask.

next_occurrences

The next N occurrences of one event by UID.

export_agenda_markdown

A seven day agenda as Markdown, optionally saved to a new .md file.

create_event / update_event / delete_event

Safe writes (below). delete_event can remove a single occurrence of a recurring event (adds an EXDATE).

Time zones. Every tool takes tz (an IANA name such as Europe/Istanbul; default UTC) and every time in every answer is printed with its zone, never silently local. Floating times (no zone in the file) are read in the tz you pass. All-day events are dates and are not shifted by tz. A date-only end such as 2026-03-08 includes that whole day.

Safe writing

create_event, update_event and delete_event never modify your calendar unless you say so:

You pass

What happens

nothing

The edited calendar is written next to the original as <file>.new. The original is untouched. An existing .new file is never overwritten.

dry_run=true

Nothing is written; you get the patch (a unified diff).

output_file="x.ics"

The edited copy goes to that new file (it must not exist).

in_place=true

The original is replaced atomically (and refused if the file changed on disk since it was read).

Every result shows the patch. Edited files are parsed again before they are written, and a create-then-delete round trip is tested to reproduce the original file byte for byte. update_event bumps SEQUENCE and refreshes DTSTAMP; new events get a generated UID.

Limits (read these)

  • Recurrence supports DAILY, WEEKLY, MONTHLY, YEARLY with INTERVAL, COUNT, UNTIL, BYDAY (with ordinals like 2MO, -1FR), BYMONTHDAY, BYMONTH, BYSETPOS, WKST, plus EXDATE, RDATE and RECURRENCE-ID overrides. HOURLY and finer, BYWEEKNO, BYYEARDAY and BYHOUR-style parts are rejected with a message (the event is skipped and listed under problems), never silently mis-expanded.

  • DTSTART is always treated as the first instance, as RFC 5545 defines it, even if the rule would not generate it.

  • RECURRENCE-ID;RANGE=THISANDFUTURE is reported and applied to one instance only.

  • Only VEVENT is read (not VTODO/VJOURNAL). Updates change the whole series; editing a single instance is not supported (delete one occurrence is).

  • New events reference an IANA TZID without embedding a VTIMEZONE; Google and Apple accept that, some Outlook versions may not.

  • A TZID that is neither an IANA name nor defined by a VTIMEZONE in the same file (for example a bare Windows name without its definition) skips that event with an explanation.

  • Files must be UTF-8. Attendee changes are recorded in the file only; no invitation is sent.

Security

  • The server reads and writes only .ics files under --dir. Paths that escape it (.., absolute paths elsewhere, symlinks pointing outside) are refused.

  • It makes no network connections and needs no credentials.

  • Text you pass to write tools is escaped; newlines cannot inject extra properties, and control characters are refused.

  • The only file other than .ics it can create is the Markdown export, and only as a new file.

  • Calendar contents (titles, descriptions) come from your files and may contain text written by other people. Treat them as data, not instructions.

Development

uv sync --extra test
uv run pytest
uv run ruff check src tests && uv run mypy --strict src

A companion tutorial that builds a minimal version from scratch is in icskit-mcp-the-hard-way.

MIT licensed.

Available Tools

10 tools
agendaA

Show every event occurrence between start and end, sorted, grouped by day, with recurring events already expanded (RRULE, EXDATE, RDATE and modified instances applied).

start/end: '2026-03-02' or '2026-03-02T09:30' (optionally with Z or an offset). A date-only end includes that whole day. tz: IANA zone name used to read start/end and to show every time; the zone is printed in the header and next to each time. Floating times (no zone in the file) are read in tz. All-day events show as 'all day' and are not shifted by tz. calendars: file names from calendar_overview (default: all). Cancelled events are hidden unless include_cancelled=true.

Inputs: end (required), start (required), tz, limit, +2 more. Returns: result

calendar_overviewA

List the calendar files the server can see: for each file its name, how many events and recurring series it holds, the date span of its events (as written in the file) and the time zones its events use. Also lists files that failed to load and any events that were skipped, with the reason. Call this first; the file names it prints are what the calendars and calendar parameters of the other tools accept.

Inputs: no named parameters. Returns: result

create_eventA

Add an event to a calendar file. A UID and DTSTAMP are generated.

calendar: file name from calendar_overview (a name that does not exist yet creates a new file; it must end in .ics). start: '2026-03-02' makes an ALL-DAY event (end, if given, is the LAST day, inclusive); '2026-03-02T09:30' makes a timed event, which needs end or duration_minutes. The times are read in tz and stored with that zone (a TZID reference; no VTIMEZONE block is added). rrule: e.g. 'FREQ=WEEKLY;BYDAY=MO,WE'. attendees: email addresses (recorded only; nothing is ever sent). status: TENTATIVE/CONFIRMED/CANCELLED. transp: OPAQUE (busy) or TRANSPARENT (free).

SAFETY: the original file is never modified unless in_place=true. By default the edited copy is written next to it as '.new' (or output_file, which must not exist yet). dry_run=true writes nothing and just shows the patch. Everything else in the file - other events, VTIMEZONE blocks, unknown properties - is kept byte for byte.

Inputs: start (required), summary (required), calendar (required), tz, +11 more. Returns: result

delete_eventA

Delete an event by UID (a recurring event with all its modified instances), or just one occurrence of a recurring event: pass occurrence='2026-03-09T09:00' (its start, read in tz; or a date for all-day) and an EXDATE is added instead.

SAFETY: the original file is never modified unless in_place=true. By default the edited copy is written next to it as '.new' (or output_file, which must not exist yet). dry_run=true writes nothing and just shows the patch. Everything else in the file - other events, VTIMEZONE blocks, unknown properties - is kept byte for byte.

Inputs: event_uid (required), tz, dry_run, calendar, +3 more. Returns: result

export_agenda_markdownA

Render seven days starting at week_start (a date such as 2026-03-02) as Markdown: one heading per day with a bullet per event, times labelled with the zone. Returns the Markdown. With output_file (a new .md file name under the server directory) it is also saved; an existing file is never overwritten.

Inputs: week_start (required), tz, calendars, output_file. Returns: result

find_conflictsA

List pairs of events whose times overlap in the range, including across different calendars. Back-to-back events (one ends exactly when the next starts) are not conflicts. Cancelled events are ignored. All-day events and events marked TRANSP:TRANSPARENT ('free') are ignored unless include_all_day / include_transparent is true. start/end/tz as in agenda.

Inputs: end (required), start (required), tz, limit, +3 more. Returns: result

find_free_timeA

Find free slots of at least duration_minutes inside working hours, across one or several calendars at once. Returns every maximal free block (not chopped into duration-sized pieces), so a 3h gap is reported as one 3h block.

start/end/tz: as in agenda (date-only end includes the whole day). working_hours: local wall-clock ranges in tz, e.g. '09:00-17:00' or '09:00-12:00,13:00-17:00' (so DST days keep their wall hours). days: working weekdays, e.g. 'Mon-Fri' or 'Mon,Wed,Fri'. buffer_minutes: padding kept clear before AND after every busy event. Busy means an uncancelled event; all-day events and events marked TRANSP:TRANSPARENT ('free') do not block unless include_all_day / include_transparent is true.

Inputs: end (required), start (required), duration_minutes (required), tz, +7 more. Returns: result

next_occurrencesA

The next n occurrences of one event (by UID) at or after after (default: now), with modified instances and removed dates applied. Use it to check what a recurrence rule really produces, e.g. 'last Friday of the month'. UIDs come from agenda and search_events. calendar: file name, only needed if the UID exists in several files.

Inputs: event_uid (required), n, tz, after, +1 more. Returns: result

search_eventsA

Find events by text. All the filters you give must match (AND).

query: case-insensitive text found in the title, description, location, categories or attendees. attendee: part of an attendee/organizer email or name. location: part of the location. regex: a Python regular expression (case-insensitive; ^ and $ match at the start and end of each field) searched in the same fields. Without start/end this lists each matching event or recurring series once (first start, recurrence rule, UID). With start AND end it lists the matching OCCURRENCES in that range, expanded, like agenda. tz sets the zone used to show times.

Inputs: tz, end, limit, query, +5 more. Returns: result

update_eventA

Change fields of one event (the whole series if it recurs). Only the fields you pass change; an empty string removes summary-like fields (location, description, status, transp, rrule). attendees=[...] makes the attendee list exactly that (existing entries keep their details). start without end keeps the event's length. start/end are read in tz (default: the event's own zone); all-day rules as in create_event. DTSTAMP is refreshed and SEQUENCE incremented. Modifying single instances of a series is not supported. calendar: only needed if the UID is in several files.

SAFETY: the original file is never modified unless in_place=true. By default the edited copy is written next to it as '.new' (or output_file, which must not exist yet). dry_run=true writes nothing and just shows the patch. Everything else in the file - other events, VTIMEZONE blocks, unknown properties - is kept byte for byte.

Inputs: event_uid (required), tz, end, rrule, +12 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 10 tools

    Disambiguation4/5

    The three read tools (agenda, next_occurrences, search_events) overlap somewhat since all can expand recurring events over a range, but the descriptions draw clear boundaries: agenda is a range dump, next_occurrences targets one UID, search_events filters by text/attendee/location. The remaining tools (find_free_time, find_conflicts, export_agenda_markdown, create/update/delete_event, calendar_overview) each have an unmistakable purpose.

    Naming Consistency4/5

    All names are snake_case and readable, with mutations consistently using verb_noun (create_event, update_event, delete_event) and searches using verb_noun (search_events, find_free_time, find_conflicts). The read tools agenda, calendar_overview and next_occurrences break the pattern by being noun- or prefix-style, but the convention still reads predictably.

    Tool Count5/5

    Ten tools is a well-scoped surface for an iCalendar server: six query/analysis tools, one export, and exactly the three mutation tools needed. Nothing feels redundant or padded.

    Completeness4/5

    Full lifecycle is covered: discovery (calendar_overview), range/text lookup, free-busy and conflict analysis, export, plus create/update/delete with series-level EXDATE handling. Gaps remain: no way to read a single event's full record by UID, no per-instance modification of a series, and no tool to move/copy events between calendar files.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Enables reading and managing calendar events from local .ics files offline, without OAuth.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A local-first MCP server for macOS that enables AI assistants to read and manage Apple Calendar events via EventKit, with configurable permissions, audit logging, and a native setup app.
      MIT