Skip to main content
Glama
earlyon-mcp

earlyon-mcp

by anaqi-blvl

earlyon-mcp

An MCP server that exposes the Family Space Quinte EarlyON program calendar (Belleville / Quinte West / Tweed / Madoc / Marmora, Ontario) as tools an AI assistant can call: "what's on today?", "any evening programs next week?", "when was the last Wildwood at Potters Creek?", "is everything closed on the 20th?".

Unofficial. Not affiliated with or endorsed by Family Space Quinte. It reads the same public data the website's own calendar widget loads, at very low volume (one fetch every few hours by default). Please keep it that way.

What you get

Tool

Purpose

get_events(date, program_type?)

One day: time, type, venue, plus closure notices. date accepts today, tomorrow, friday, next monday, in 3 days, 2026-11-12, Nov 12

get_week(week_of, program_type?)

A Monday-Sunday week grouped by day (this, next, last, or any date in the week)

get_events_range(start, end, ...)

Any span, past or future

search_events(query, since?, until?, newest_first?)

Find programs by name / place / topic; works on history

get_event_details(event_id)

Full description text, links, venue, other upcoming dates

list_program_types()

Morning Indoor, Afternoon Indoor, Wildwood Outdoor, Evening, Morning Outdoor, Special Event, Closure

get_closures(start?, end?)

Stat holidays / program closures

get_registrations()

Pre-registration programs (e.g. Infant Massage, ASQ Connection) and whether registration is open

get_recent_changes(days)

Programs added / removed (usually cancelled) / edited recently

get_status() / refresh_now()

Data freshness, coverage, forced refresh (rate limited)

Every response carries notes that call out the data horizon (the site only publishes as far ahead as the organisation has scheduled) and staleness, so "nothing scheduled yet" is never confused with "nothing on".

Related MCP server: calendar-mcp

How it works

The site's calendar is a Wix widget (Boom Calendar). It loads one JSON document containing event records with recurrence rules, not individual dates. This project:

  1. fetches that document (two plain HTTP GETs, no browser, no login),

  2. expands the rules into concrete occurrences using a re-implementation of the widget's own recurrence logic (weekly multi-weekday series, exclusion dates, nth/last-weekday monthly rules, exclusive end dates, multi-day closures; see src/earlyon_mcp/expand.py),

  3. normalises titles, venues and HTML descriptions,

  4. stores them in SQLite and serves read-only MCP tools over stdio.

The expansion is validated by tests/test_golden.py, which compares it against a snapshot of what the live widget actually rendered for 16 months (1,150 events, exact match).

History is kept. Occurrences that have ended are frozen and never rewritten, so past schedules survive later edits on the site. Today-onward occurrences mirror each fresh snapshot, and differences are logged (that is how cancellations show up in get_recent_changes).

Safety gates. A refresh is rejected (previous data kept) if the calendar name is unexpected, it is empty, or the occurrence total shrinks by more than 30%. Failures never wipe data.

Run it

pip install .
earlyon-mcp refresh      # one-shot fetch into ./earlyon.db
earlyon-mcp serve        # stdio MCP server (also refreshes in the background every 3h)
earlyon-mcp status

Claude Desktop / any stdio client:

{ "mcpServers": { "earlyon": { "command": "earlyon-mcp", "args": ["serve"],
  "env": { "EARLYON_DB_PATH": "/path/to/earlyon.db" } } } }

Docker (streamable HTTP)

The image wraps the stdio server with mcp-proxy and serves http://<host>:3000/mcp:

docker build -t earlyon-mcp .
docker run -d --name earlyon-mcp -p 127.0.0.1:3110:3000 -v earlyon-data:/data earlyon-mcp

There is no authentication in the container. Put it behind your own reverse proxy / auth if you expose it.

Configuration (environment)

Variable

Default

Meaning

EARLYON_DB_PATH

earlyon.db (/data/earlyon.db in Docker)

SQLite file

EARLYON_TZ

America/Toronto

Timezone used for "today" and output times

EARLYON_REFRESH_HOURS

3

Background refresh interval

EARLYON_MIN_MANUAL_REFRESH_MIN

10

Minimum gap for refresh_now

EARLYON_COMP_ID

comp-mg88ldq7

Widget instance id of the calendar on the page

EARLYON_SITE_URL, EARLYON_CALENDAR_PAGE, EARLYON_API_BASE, EARLYON_BOOM_APP_ID, EARLYON_EXPECTED_NAME, EARLYON_USER_AGENT, EARLYON_HTTP_TIMEOUT

see config.py

Source overrides

Development

python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
pytest                        # offline: unit + golden + tool tests
EARLYON_LIVE=1 pytest tests/test_live.py   # also checks the real site still has the expected shape

tests/fixtures/ holds sanitized snapshots (schedule structure only: no descriptions, contact details or site/account identifiers); see the README in that folder.

Limitations

  • This depends on an undocumented widget endpoint. If the site changes, refreshes are rejected and get_status shows why while the last good data keeps being served.

  • Descriptions belong to a program series; there is no per-date description.

  • The calendar runs only as far as the organisation has published. History starts where the current calendar system was adopted (September 2025).

  • If the widget's component id changes, set EARLYON_COMP_ID.

License

MIT

Available Tools

11 tools
get_closuresB

Closure notices (stat holidays, office/program closures) in a date range.

Inputs: end, start. Returns: object

get_event_detailsA

Full details for one occurrence: description text, links, venue, and the program's other upcoming dates.

Inputs: event_id (required). Returns: object

get_eventsA

Programs happening on one day (time, type, venue) plus any closures that day.

Inputs: date, program_type, include_description. Returns: object

get_events_rangeB

Programs between two dates inclusive (past or future), sorted by time.

Inputs: end (required), start (required), limit, program_type, +1 more. Returns: object

get_recent_changesC

Upcoming programs that were added, removed (cancelled) or edited recently.

Inputs: days. Returns: object

get_registrationsC

Special programs that require pre-registration (e.g. Infant Massage, ASQ Connection) with open/closed state.

Inputs: no named parameters. Returns: object

get_statusB

Data freshness and coverage (last refresh, earliest/latest dates, recent refresh outcomes).

Inputs: no named parameters. Returns: object

get_weekC

A Monday-Sunday week of programs, grouped by day.

Inputs: week_of, program_type, include_description. Returns: object

list_program_typesB

The program categories (Morning Indoor, Wildwood Outdoor, Afternoon Indoor, Evening, ...) with counts.

Inputs: no named parameters. Returns: object

refresh_nowA

Force a refresh from the website (rate limited; normally refreshes automatically every few hours).

Inputs: no named parameters. Returns: object

search_eventsC

Find occurrences of programs by name, place or topic.

Inputs: query (required), limit, since, until, +3 more. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools are clearly distinct: search_events handles name/place/topic lookup, get_event_details handles a single occurrence, and the metadata tools (get_status, get_closures, get_registrations, get_recent_changes) each target a unique resource. The only mild overlap is the temporal-listing trio get_events (one day), get_week (one week), and get_events_range (arbitrary range), which an agent could plausibly confuse, though the descriptions make the granularity difference explicit.

    Naming Consistency5/5

    All 11 tools use snake_case verb_noun form (get_events, list_program_types, search_events, refresh_now, etc.). The get_/list_/search_/refresh_ prefixes map predictably to retrieval vs enumeration vs query vs action.

    Tool Count5/5

    Eleven tools is well within the sweet spot and each one covers a distinct retrieval shape (day, week, range, search, detail, metadata, maintenance). No tool feels redundant enough to remove.

    Completeness4/5

    The read surface is thorough for a scraped program-schedule domain: date-scoped listings, search, details, closures, registrations, change history, freshness status, and a manual refresh. Minor gaps remain — list_program_types returns categories with counts but there is no way to fetch events filtered by program type, and no venue/location listing tool.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only access to calendar events from iCal feeds, enabling agents to query schedules, search events, and check availability via natural language.
      AGPL 3.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI clients to retrieve verified countdown event dates, semantics, and FAQ from Countdowns Online, allowing users to browse event categories and understand date contexts without API keys.
      2
      MIT