Skip to main content
Glama
ics-mcp

ics-mcp

by mieweb

ics-mcp

A tiny, read-only Model Context Protocol (MCP) server that exposes an iCalendar (.ics) feed as calendar-query tools.

It is designed for published calendar URLs — for example an Outlook / Exchange Online calendar shared via Publish calendar → ICS link, or any other webcal/https .ics feed. Because it consumes an anonymous published feed, it needs no OAuth, no app registration, and no admin consent — which makes it a practical way to give an AI assistant read access to a Microsoft 365 calendar when Microsoft Graph admin consent is not available.

Recurring events are expanded into individual occurrences on query.

Read-only by design. There are no tools that create, modify, or delete events. The server only ever performs HTTP GETs against the feed URL.

Tools

Tool

Description

list_events(start, end, include_description=False)

Events between two dates/times. Accepts today/tomorrow, ISO dates, or full timestamps.

list_today(include_description=False)

Everything happening today.

list_upcoming(days=7, include_description=False)

Events from now through the next N days (1–90).

search_events(query, start=None, end=None, include_description=False)

Case-insensitive substring match over title, location, organizer, attendees, and description.

get_calendar_info()

Feed name, timezone, master event count, cache TTL.

Related MCP server: ical-mcp

Configuration

All configuration is via environment variables:

Variable

Required

Default

Description

ICS_URL

yes

—

https://…/calendar.ics feed URL (or a file:// path).

ICS_CALENDAR_NAME

no

Calendar

Friendly name reported in tool output.

ICS_TIMEZONE

no

system local

IANA tz (e.g. America/New_York) for queries without an explicit zone.

ICS_CACHE_TTL

no

300

Seconds to cache the fetched feed between refreshes.

ICS_HTTP_TIMEOUT

no

30

Feed fetch timeout, in seconds.

Usage

Run with uvx (no install)

ICS_URL="https://outlook.office365.com/owa/calendar/<id>/calendar.ics" \
  uvx --from git+https://github.com/mieweb/ics-mcp ics-mcp

opencode / Claude Desktop MCP config

{
  "mcp": {
    "ics_calendar": {
      "type": "local",
      "command": [
        "uvx",
        "--from",
        "git+https://github.com/mieweb/ics-mcp",
        "ics-mcp"
      ],
      "environment": {
        "ICS_URL": "https://outlook.office365.com/owa/calendar/<id>/calendar.ics",
        "ICS_CALENDAR_NAME": "My Calendar",
        "ICS_TIMEZONE": "America/New_York"
      }
    }
  }
}

(Claude Desktop uses the same shape under mcpServers with command + args split out.)

Getting a published ICS URL from Outlook / Microsoft 365

  1. Open Outlook on the web → Settings → Calendar → Shared calendars.

  2. Under Publish a calendar, pick the calendar and a permission level (Can view all details for full event info).

  3. Click Publish, then copy the ICS link (not the HTML link).

  4. Use that URL as ICS_URL.

Anyone with the published ICS link can read the calendar, so treat the URL as a secret and keep it out of source control (pass it via environment, as above).

Development

git clone https://github.com/mieweb/ics-mcp
cd ics-mcp
ICS_URL="file:///path/to/calendar.ics" uv run ics-mcp

License

MIT © Medical Informatics Engineering

Available Tools

5 tools
get_calendar_infoB

Report basic information about the configured calendar feed.

Inputs: no named parameters. Returns: object

list_eventsA

List calendar events between two dates/times (inclusive).

Recurring events are expanded into individual occurrences. Accepts natural values like "today"/"tomorrow", ISO dates ("2026-01-15"), or full timestamps. A bare end date covers the entire day.

Args: start: Range start (e.g. "today", "2026-01-15", "2026-01-15T09:00"). end: Range end (e.g. "2026-01-22"). include_description: Include the full event body text. Default False.

Inputs: end (required), start (required), include_description. Returns: object

list_todayB

List all events occurring today (in the calendar's local timezone).

Inputs: include_description. Returns: object

list_upcomingA

List events from now through the next N days.

Args: days: How many days ahead to include (1-90). Default 7. include_description: Include the full event body text. Default False.

Inputs: days, include_description. Returns: object

search_eventsB

Search events whose title, location, organizer, or description matches a case-insensitive substring.

Args: query: Text to look for. start: Optional range start. Defaults to 30 days ago. end: Optional range end. Defaults to 180 days ahead. include_description: Include full body text in results. Default False.

Inputs: query (required), end, start, include_description. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation4/5

    list_events, list_today, and list_upcoming all retrieve events and are essentially conveniences over the same underlying range query, so boundaries overlap slightly. However, each has a clearly documented default range/purpose, making selection reasonably predictable.

    Naming Consistency5/5

    All names follow a consistent snake_case verb_noun pattern: list_events, list_today, list_upcoming, search_events, get_calendar_info. No mixing of conventions.

    Tool Count5/5

    Five tools is well-scoped for a read-only ICS calendar feed, with each tool earning its place and no redundancy beyond the intentional convenience listers.

    Completeness5/5

    The domain is a read-only ICS feed, so no create/update/delete is expected. Listing (by range, today, upcoming), searching, and calendar metadata cover the realistic surface with no dead ends.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers