swiss-school-calendar-mcp
This server provides read-only Swiss holiday data for AI agents: public holidays, school holidays (by canton and school type), local holidays, cross-cantonal comparisons, long weekends, and iCal exports for all 26 cantons.
List all 26 cantons with ISO codes and official languages (
list_cantons)List which cantons differentiate school holidays by school type, and which types exist (
list_school_types)Get school holiday periods for a canton and date range, optionally filtered by school type (
get_school_holidays)Get a canton's public holidays for a year (
get_public_holidays)Get district- or municipality-specific public holidays, e.g. Zurich's SechselΓ€uten (
get_local_holidays)Check whether a given date is a school/public holiday in a canton (
check_date)Compare school holiday overlap between cantons as a pairwise overlap matrix (
compare_school_holidays)Find windows when multiple cantons are all on holiday simultaneously (
find_common_free_window)Get the next upcoming school holidays for a canton (
next_school_holidays)Get Swiss long weekends and required bridge days (
get_long_weekends)Export a canton's holidays for a year as an iCalendar .ics document (
export_holidays_ics)Ask whether today is a holiday in a canton (
is_holiday_today)Check reachability and latency of the upstream data sources (
source_status)Read a holiday summary via the
holidays://{canton}/{year}MCP resource.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@swiss-school-calendar-mcp Show me school holidays in Zurich for 2026"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π¨π Part of the Swiss Public Data MCP Portfolio
This is a private project. It is independent of any employer or institutional affiliation and represents no official position of any authority.
π swiss-holidays-mcp
A Swiss holiday calendar for AI agents β public holidays, school holidays and long weekends for all 26 cantons, with cross-cantonal comparison. School holidays are differentiated by Schulart (school type), which matters more than it first appears. No API key required.
Overview
swiss-holidays-mcp is a Swiss holiday calendar for AI assistants like Claude β public holidays, school holidays and long weekends for all 26 cantons, no API keys required. Public holidays are cantonal (Berchtoldstag, Fronleichnam & co. differ by canton, not just the federal minimum). School holidays are set cantonally, sometimes at district level, and β in six cantons β separately per school type. A single federal calendar does not exist; anyone planning across cantonal borders is otherwise reduced to opening 26 PDF pages.
The server covers two thematic clusters: public holidays / long weekends and school holidays (with Schulart differentiation). Each cluster maps to a group of purpose-built tools that translate raw agency data into clean, provenance-tagged JSON responses. All data comes from the OpenHolidays API (CC BY 4.0) and Nager.Date (MIT).
Mnemonic: A duplicate in Swiss school data is usually a school type in disguise. The underlying API publishes the same holiday period several times when a canton differentiates by school type. That looks like duplicated data and invites naive de-duplication β which would destroy exactly the distinction a school authority needs.
Anchor demo query: "In which weeks of 2026 are the compulsory schools of Zurich, Zug and Aargau simultaneously on holiday β and how many overlapping days does each pair share?"
β This exercises find_common_free_window, compare_school_holidays and list_school_types in a single conversation, and answers a question that recurs every planning cycle in inter-cantonal coordination.
β More use cases by audience β
Demo
Related MCP server: swiss-courts-mcp
Features
π« School holidays β periods per canton and date range, differentiated by Schulart (
VS/MS/BS/EO)π Public holidays β cantonal holiday sets, not just the federal minimum (Berchtoldstag & friends)
π Date check β is a given date a school or public holiday in a canton?
π Cross-cantonal comparison β pairwise overlap matrix of holiday days between cantons
πͺ Common free windows β date ranges where all listed cantons are simultaneously on holiday
π Long weekends & bridge days β computed from federal public holidays (Nager.Date)
ποΈ Local & municipal holidays β district- and municipality-level specifics such as Zurich's SechselΓ€uten and Knabenschiessen, with a
scopemarker so they are never mistaken for canton-wideπ iCal / ICS export β a canton's holidays for a year as a ready-to-import
.icscalendarπ Holiday feed resource β
holidays://<canton>/<year>MCP resource with a Markdown summaryπ "Is today a holiday?" β one-call convenience for the everyday question
π©Ί Source health β reachability and latency of both upstreams, always evaluable
π No authentication required β both data sources are publicly accessible
βοΈ Dual transport β stdio for Claude Desktop, Streamable HTTP/SSE for cloud deployment
π§Ύ Provenance on every response β
live_api|cached|degraded, never a silent empty list
Data Sources
Source | Data | Licence |
Cantons, Schularten, school holidays, public holidays | CC BY 4.0 | |
Long weekends and required bridge days | MIT |
Both sources are publicly accessible, no authentication required. Attribution required: OpenHolidays (CC BY 4.0) and Nager.Date must be cited as the source when using their data.
Tools
Tool | Purpose | Data Source |
| The 26 cantons with ISO codes and official languages | OpenHolidays |
| Schulart groups per canton ( | OpenHolidays |
| School holidays for one canton and date range | OpenHolidays |
| Public holidays for one canton and year | OpenHolidays |
| Public holidays for one municipality or district, incl. local specifics | OpenHolidays |
| Is a given date a school or public holiday? | OpenHolidays |
| Pairwise overlap matrix across cantons | OpenHolidays |
| Windows where all listed cantons are on holiday | OpenHolidays |
| The next upcoming holiday periods | OpenHolidays |
| Long weekends and required bridge days | Nager.Date |
| A canton's holidays for a year as an iCalendar ( | OpenHolidays |
| Is today a school or public holiday in a canton? | OpenHolidays |
| Reachability and latency of both upstreams | Built-in |
Resources
Resource URI | Content |
| Markdown summary of all public + school holidays, e.g. |
All tools carry the full annotation set β readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true (they reach an external API). No tool writes anywhere. Inputs are schema-validated (canton codes against the 26 known cantons, dates as YYYY-MM-DD, year bounded, language/school_type whitelisted).
Example Use Cases
Query | Tool |
"Which cantons are there, and what are their codes?" |
|
"Show Zurich's compulsory-school holidays for spring 2026" |
|
"Is 3 April 2026 a public holiday in Ticino?" |
|
"Do Zurich and Zug school holidays overlap this year?" |
|
"When can all of ZH, ZG, AG plan a joint week off school?" |
|
"What are the next holidays for Basel-Stadt schools?" |
|
"Which long weekends does 2026 have, and which bridge days do they need?" |
|
"Which local holidays does the city of Zurich keep that the rest of the canton doesn't?" |
|
"Export Zurich's 2026 holidays as an .ics calendar I can import" |
|
"Is today a holiday in Aargau?" |
|
π‘οΈ Safety & Limits
Aspect | Details |
Access | Read-only ( |
Personal data | No personal data β all sources are aggregated, public holiday calendars |
Caching | 12-hour in-memory TTL (holiday tables change a handful of times per year) |
Retry | Exponential backoff 2s / 4s / 8s; 4xx except 429 are not retried |
Timeout | 20 seconds per API call (8 seconds for health probes) |
Authentication | No API keys required β both upstreams are publicly accessible |
Degradation | Upstream failure yields a |
Terms of Service | Subject to the ToS of the respective data sources: OpenHolidays, Nager.Date |
Architecture
This server uses Architecture A (live API only, with in-memory cache).
ββββββββββββββββββββββββββββ
Claude / any ββββΆβ swiss-holidays-mcp β
MCP host β (MCPServer Β· 13 tools) β
ββββββββββ¬ββββββββββββββββββ
β retry 2s/4s/8s Β· 12h cache
ββββββββββ΄ββββββββββ
βΌ βΌ
OpenHolidays API Nager.Date
(CC BY 4.0) (MIT)
cantons Β· Schularten long weekends
school + public bridge daysRationale (verified live on 2026-07-19):
All ten documented OpenHolidays endpoints answered HTTP 200 with plausible payloads;
/Subdivisions?countryIsoCode=CHreturns exactly 26 cantons, matching the official count.No public bulk dump could be verified at build time (
openpotato/openholidays.dataraw access returned 404), so Architecture B was not available.Holiday tables change a handful of times per year, so a 12-hour in-memory TTL removes almost all upstream load without risking staleness.
Consequences:
Every response carries
provenance(live_api|cached|degraded).Upstream failure yields a
degradedenvelope with an explanatorynote, never a silent empty list.source_statusalways returns an evaluable health report.
Live-probe findings (2026-07-19)
Endpoint | HTTP | Status | Records | Note |
| 200 | β works | 36 | |
| 200 | β works | 26 | matches official canton count |
| 200 | β works | 11 | Schulart groups, only 6 cantons |
| 200 | β works | 39 | cantonal scope included |
| 200 | β works | 193 | 183 distinct after school-type split |
| 200 | β works | β | |
| 200 | β οΈ silently empty | 0 | invalid country β error |
| 200 | β οΈ silent EN fallback | 26 | invalid language β error |
| 400 | β correct error | β | RFC 9110 problem+json |
Nager | 200 | β works | 33 | 29 rows carry |
Nager | 200 | β works | 3 | |
Nager | 404 | β correct error | β | stricter than OpenHolidays |
Known findings
Apparent duplicates are school types. Zurich returns FrΓΌhlingsferien 2026 twice: once for
CH-ZH-VS(Volksschulen, taggedRecommended) and once forCH-ZH-BS+CH-ZH-MS(Berufsfach- and Mittelschulen). Use theschool_typeparameter (VS/MS/BS/EO) rather than de-duplicating.Only six cantons differentiate by school type (AI, AR, BE, GR, SO, ZH). Elsewhere
groupsis absent and one table covers everything. The filter therefore treats an absentgroupsfield as "applies to all".Subdivision codes mix levels. Records may carry
CH-AI-APorCH-BE-TH-BL. Always match on theCH-XXprefix, never on string equality.An empty list is not an answer. An unknown country or canton code yields HTTP 200 with
[]. This server sets an explanatorynoteso that "no holidays" and "bad filter" stay distinguishable.
Prerequisites
Python 3.10 or higher
uv / uvx (recommended) or pip
Internet access (both APIs are publicly available)
Installation
Run via uv's uvx β no clone or manual install needed:
uvx swiss-holidays-mcpDevelopment
git clone https://github.com/malkreide/swiss-holidays-mcp
cd swiss-holidays-mcp
pip install -e ".[dev]"Configuration
Claude Desktop
Add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"swiss-holidays": {
"command": "uvx",
"args": ["swiss-holidays-mcp"]
}
}
}Restart Claude Desktop β the server starts automatically on first use.
Cloud Deployment (SSE / Streamable HTTP for browser access)
For use via claude.ai in the browser (e.g. on managed workstations without local software):
MCP_TRANSPORT=sse PORT=8000 python -m swiss_holidays_mcpThe SDK exposes SSE at /sse, not /mcp.
Variable | Default | Description |
|
| Transport: |
|
| Port for HTTP transports |
|
| Bind address for HTTP transports. Loopback by default; |
| (empty) | Comma-separated extra CORS origins for browser clients (audit SDK-004). Loopback origins are always allowed; add the public origin your UI is served from, e.g. |
The HTTP transports attach an explicit CORS layer that exposes the
Mcp-Session-Id header, so a browser MCP client can read the session id and
make follow-up requests. The allow-list is never a wildcard.
Running more than one HTTP instance behind a load balancer requires sticky
sessions keyed on Mcp-Session-Id β see docs/scaling.md
for nginx/Traefik/Kubernetes examples. A single instance (the common case) needs
no affinity configuration.
π‘ "stdio for the developer laptop, SSE for the browser."
Project Structure
swiss-holidays-mcp/
βββ src/
β βββ swiss_holidays_mcp/
β βββ __init__.py # Package init
β βββ __main__.py # Entry point: stdio / SSE / Streamable HTTP
β βββ server.py # MCPServer: lifespan, 13 tools, 1 resource, op_* logic
β βββ client.py # Shared HTTP client: retry, 12h cache, egress guard
β βββ guard.py # Egress / SSRF guard (HTTPS + allow-list + IP blocklist)
β βββ pinning.py # DNS-pinning transport (TOCTOU-free connect, SEC-005)
β βββ ical.py # RFC 5545 iCalendar (.ics) writer
β βββ settings.py # Pydantic-Settings config (loopback default)
β βββ logging_setup.py # Structured logging to stderr
β βββ constants.py # Canton codes, Schulart suffixes, API bases, allow-list
β βββ models.py # Pydantic v2 response envelopes
βββ tests/
β βββ conftest.py # respx fixtures
β βββ test_tools.py # Tool unit tests (mocked, no network)
β βββ test_resilience.py # Degradation / retry / cache behaviour
β βββ test_live.py # Live smoke tests (marker: live)
βββ docs/ # roadmap.md, security.md, network-egress.md
βββ deploy/ # Network-layer egress manifests (Cilium / NetworkPolicy)
βββ audits/ # mcp-audit run artifacts
βββ Dockerfile # Non-root multi-stage container
βββ .github/
β βββ dependabot.yml # Monthly dependency / action update PRs
β βββ workflows/ # ci.yml, live-tests.yml, publish.yml
βββ pyproject.toml
βββ CHANGELOG.md
βββ CONTRIBUTING.md # Contributing guide (English)
βββ CONTRIBUTING.de.md # Contributing guide (German)
βββ SECURITY.md # Security policy (English)
βββ SECURITY.de.md # Security policy (German)
βββ EXAMPLES.md # Use cases by audience
βββ server.json # MCP registry manifest
βββ LICENSE
βββ README.md # This file (English)
βββ README.de.md # German versionOn the single-file server.py (audit ARCH-011). The 13 tools deliberately
live in one module rather than a tools/ package. Each tool is a thin, uniform
wrapper (@mcp.tool β @_safe_tool β op_*) over a transport-agnostic op_*
operation, and every operation shares the same small set of helpers
(_to_period, _matches_school_type, _require_known_canton, β¦) and the one
HolidayClient. Splitting these across files would scatter that shared core and
duplicate imports for no isolation benefit β the file is uniformly sectioned
(aliases β helpers β op_* logic β tool wrappers β resource) and every op_*
is unit-tested directly without a transport. A tools/ split is the planned
step only if Phase 2 pushes the tool count materially higher.
Lifecycle Phase
This server is in Phase 1 (read-only) β all tools read-only, no auth, no side
effects. The 13-tool budget (of the 15β20 recommended maximum) still leaves
headroom. Local and municipal specifics β including Zurich's SechselΓ€uten and
Knabenschiessen β are covered directly from OpenHolidays via get_local_holidays
(a live probe showed they are published upstream at Gemeinde level), so no
separate city data source is required for them.
MCP Primitives & Protocol Version
Primitives β Tools + Resources. The 13 tools are idempotent, side-effect-free
GETs. A Resource exposes a stable URI feed (holidays://<canton>/<year>) so clients can read a canton's calendar as cacheable context without a tool call. There are no recurring templated workflows, so Prompts are not used (revisited if that changes).MCP protocol version β two eras, both served natively.
mcp2.x serves both over the same server, and the client's first request on a connection decides which applies: theinitializehandshake caps at2025-11-25; the per-request envelope era (spec2026-07-28) has no handshake at all. There every request carries its protocol version, client info and client capabilities inparams._meta, mirrored by theMcp-Protocol-Version/Mcp-Method/Mcp-Namerouting headers, andserver/discovertakes the place ofinitialize.source_statusreports inmcp_protocol_versionthe revision this request came in on, read per request fromContext.protocol_version. It used to report one constant β the handshake ceiling β to every caller, so a client that had negotiated2026-07-28was told2025-11-25about its own connection. The constant survives only as the fallback for theop_*layer, where nothing was negotiated; it is derived from the SDK'sLATEST_HANDSHAKE_VERSIONrather than written down, so it cannot drift the way it once did β it stood at2025-06-18for two revisions while every call reported it as fact.Measured, not inferred:
tests/test_protocol_version.pydrives both eras through the same ASGI app this repo serves in production and compares the delivered field per era. The previous version of that file stated the repo could not build such an app β it can, and the claim outlived the measurement by two revisions. A client asking the handshake for2026-07-28still gets2025-11-25back, now measured here rather than at a sister server. The wire version is negotiated by the pinnedmcpSDK (mcp>=2.0.0,<3).Server identity travels with every result.
2026-07-28has noinitializeresult, soserverInforides along as a_metastamp on each one β the only place a caller learns which server and which build answered. The server handsMCPServerits package version and homepage; without them the SDK stampsversion: "", and it never substitutes one of its own. An empty version is worse than an absent one: it looks like an answer.Freshness hints on the listing methods (SEP-2549):
tools/list,resources/list,resources/templates/listandserver/discoveranswer withttlMs300000 andcacheScope: public. Without them the SDK's default is "stale immediately, never shared", which makes every client re-list on every connection β for lists that are fixed at import.resources/readcarries no hint:holidays://{canton}/{year}is a live query, not a directory.Update policy. SDK and dependency bumps land via Dependabot (monthly, grouped); protocol-version or tool-definition changes are recorded in
CHANGELOG.mdwith a version bump.
Data classification
All data is Γffentlich / Public Open Data β aggregated holiday calendars,
no personal data (DSG/DSGVO). This is the highest classification the server
handles; the full model is in docs/security.md.
Known Limitations
Unofficial source. OpenHolidays aggregates cantonal publications. For legally binding dates, the cantonal authority remains authoritative. Every response says so.
Municipal coverage depends on the upstream. OpenHolidays does carry district- and municipality-level public holidays (e.g. SechselΓ€uten, Knabenschiessen at
CH-ZH-ZH-ZH), exposed throughget_local_holidays. Completeness at Gemeinde level is only as good as the upstream data, which varies by canton. Municipal school holidays are not separately modelled.Nager long weekends ignore cantonal holidays. They are computed from nationwide holidays only.
No historical depth guarantee. Coverage of years before roughly 2020 is uneven.
Testing
# Unit tests (no network required β respx-mocked)
PYTHONPATH=src pytest tests/ -m "not live"
# Live smoke tests (hits the real upstream APIs)
PYTHONPATH=src pytest tests/ -m "live"
# Linting
ruff check src/ tests/ scripts/
ruff format --check src/ tests/ scripts/Contributing
Contributions are welcome! Please read CONTRIBUTING.md (English) Β· CONTRIBUTING.de.md (German) for guidelines on reporting bugs, setting up the development environment, code style and test requirements.
This project follows the conventions of the Swiss Public Data MCP Portfolio.
Security
To report a vulnerability, please follow the responsible disclosure process in SECURITY.md (English) Β· SECURITY.de.md (German). The server is read-only and requires no API key; see the Safety & Limits section above for the security model.
Changelog
See CHANGELOG.md
Deployment for Swiss Public Administration
If you self-host this server for a Swiss school authority or municipal use case:
Data residency: the query patterns themselves (which cantons a civil servant compares) may reveal ongoing planning and are best kept on Swiss or trusted infrastructure.
Upstream calls go to OpenHolidays (EU-hosted OGD project) and Nager.Date. No personal data leaves your environment; only holiday calendars are requested.
Logging: logs are written to stderr; configure your IT retention policy accordingly.
HTTP transport should run behind a reverse proxy with authentication and per-IP rate limits β the server has no built-in authentication.
License
MIT License β see LICENSE
Source data is subject to the terms of OpenHolidays (CC BY 4.0) and Nager.Date (MIT); attribution to these sources is required when using their data.
Author
Hayal Oezkan Β· github.com/malkreide
Credits & Related Projects
Data: OpenHolidays API (CC BY 4.0) Β· Nager.Date (MIT)
Protocol: Model Context Protocol β Anthropic / Linux Foundation
Built following the
mcp-data-source-probemethodology: live probe before design, dump fallback before API dependency, retry before defeatism.Portfolio: Swiss Public Data MCP Portfolio
Server | Description |
Canton of Zurich education data | |
City of Zurich Open Data | |
BFS STAT-TAB β Swiss federal statistics | |
Swiss federal geodata (swisstopo) |
MIT licensed. Public money, public code.
Available Tools
13 toolscheck_dateARead-onlyIdempotent
Check whether a given date falls into school holidays or a public holiday.
<use_case>The everyday scheduling question: can we hold the parents' evening on that Thursday? Checks one date against both school and public holidays.</use_case>
The everyday question behind this tool: "Can we schedule the parents' evening on that Thursday?"
Inputs: canton (required), check_date_iso (required), language, school_type. Returns: note, canton, source, matches, +5 more
compare_school_holidaysARead-onlyIdempotent
Compare school holiday overlap between cantons for a calendar year.
<use_case>Quantify inter-cantonal school-holiday overlap (pairwise day counts) for coordinating events or campaigns across cantonal borders.</use_case>
Returns a pairwise matrix of overlapping holiday days. Defaults to VS
(Volksschule) because that is the level most inter-cantonal coordination
concerns.
Inputs: year (required), cantons (required), language, school_type. Returns: note, rows, year, source, +3 more
export_holidays_icsARead-onlyIdempotent
Export a canton's holidays for a year as an iCalendar (.ics) document.
<use_case>Produce a ready-to-import .ics calendar of a canton's holidays for a year, filtered by public/school and Schulart.</use_case>
Returns a ready-to-save text/calendar document with one all-day event per
holiday. include selects all (default), public or school; combine
with school_type (VS/MS/BS/EO) to narrow school holidays.
Inputs: year (required), canton (required), include, language, +1 more. Returns: ics, note, year, canton, +5 more
find_common_free_windowARead-onlyIdempotent
Find date ranges in which all listed cantons are simultaneously on holiday.
<use_case>Find a common free window across several cantons β joint events, maintenance or campaigns when every listed canton is on holiday.</use_case>
Useful for planning campaigns, joint events or maintenance windows across cantonal borders.
Inputs: year (required), cantons (required), language, min_days, +1 more. Returns: note, source, windows, provenance, +1 more
get_local_holidaysARead-onlyIdempotent
Public holidays for a single municipality or district, incl. local specifics.
<use_case>Answer the locality question the canton-level tools flatten away: which holidays are observed only in this town (e.g. Zurich's Sechselaeuten)?</use_case> <important_notes>scope is 'local' (specific here), 'regional' (canton/district) or 'national' (inherited). Accepts a name or a full subdivision code.</important_notes>
Answers the local question the canton-level tools flatten away: which holidays are observed only here? The city of Zurich, for example, keeps SechselΓ€uten and Knabenschiessen (both half-day), which the rest of the canton does not.
municipality accepts a name (e.g. "ZΓΌrich", "Morschach") or a full
subdivision code (e.g. "CH-ZH-ZH-ZH"). The result lists every holiday that
applies in that locality; each carries a scope of local (specific to this
place), regional (inherited from the canton/district) or national.
Inputs: year (required), canton (required), municipality (required), language. Returns: note, count, source, holidays, +3 more
get_long_weekendsARead-onlyIdempotent
Return Swiss long weekends and the bridge days needed to create them.
<use_case>Plan bridge days: which long weekends exist this year and which working days must be taken off to extend them.</use_case> <important_notes>Computed from federal public holidays (Nager.Date); cantonal-only holidays are not considered.</important_notes>
Sourced from Nager.Date, which computes these from federal public holidays; cantonal-only holidays are not considered.
Inputs: year (required). Returns: note, year, source, provenance, +2 more
get_public_holidaysARead-onlyIdempotent
Return public holidays for one canton and calendar year.
<use_case>Get a canton's official public holidays for a whole year β cantonal holidays (Berchtoldstag, Fronleichnam) differ, so always pass the canton.</use_case>
Cantonal holidays such as Berchtoldstag differ substantially across Switzerland, so always pass the canton rather than assuming the federal set.
Inputs: year (required), canton (required), language. Returns: note, count, source, holidays, +3 more
get_school_holidaysARead-onlyIdempotent
Return school holiday periods for one canton in a date range.
<use_case>Look up a canton's school holidays for planning within an explicit from/to window (term breaks, parent events, campaigns).</use_case> <important_notes>Apparent duplicates are the same period per Schulart; set school_type to collapse them. Cantons that do not differentiate return one table.</important_notes>
Args:
canton: ISO subdivision code, e.g. CH-ZH.
valid_from: Inclusive start date, YYYY-MM-DD.
valid_to: Inclusive end date, YYYY-MM-DD.
school_type: Optional Schulart suffix -- VS, MS, BS or EO.
Use VS for compulsory schooling (Volksschule).
language: DE, FR, IT or EN.
Records that look duplicated are usually the same period published for a
different Schulart. Set school_type to collapse them.
Inputs: canton (required), valid_to (required), valid_from (required), language, +1 more. Returns: note, count, source, holidays, +3 more
is_holiday_todayARead-onlyIdempotent
Is today a school or public holiday in the given canton?
<use_case>One-call convenience for the everyday 'are we off today?' question in a given canton.</use_case>
Convenience wrapper over check_date for the everyday question
"are we off today?".
Inputs: canton (required), language, school_type. Returns: note, canton, source, matches, +5 more
list_cantonsARead-onlyIdempotent
List the 26 Swiss cantons with their ISO subdivision codes.
<use_case>Resolve a canton name to the CH-XX code every other tool needs; call this first when the user gives a canton by name.</use_case>
Use this first to resolve a canton name to the CH-XX code that every other
tool expects.
Inputs: language. Returns: note, source, cantons, provenance, +1 more
list_school_typesARead-onlyIdempotent
List the Schularten (school types) that publish separate holiday tables.
<use_case>Discover whether a canton differentiates school holidays by Schulart before querying, so VS/MS/BS/EO filters are used only where they exist.</use_case>
Only a minority of cantons differentiate. For Zurich the codes are
CH-ZH-VS (Volksschulen), CH-ZH-MS (Mittelschulen) and CH-ZH-BS
(Berufsfachschulen). Cantons absent from this list publish one table for
all school types.
Inputs: canton, language. Returns: note, source, provenance, retrieved_at, +1 more
next_school_holidaysARead-onlyIdempotent
Return the next upcoming school holiday periods for a canton.
<use_case>Forward-looking planning: the next N school-holiday periods for a canton from today, without computing a date range by hand.</use_case>
Inputs: canton (required), count, language, school_type. Returns: note, count, source, holidays, +3 more
source_statusARead-onlyIdempotent
Report reachability and latency of both upstream sources.
<use_case>Health check before a batch of queries, or to distinguish 'no data' from 'source down' β always returns an evaluable status.</use_case>
Always returns an evaluable status rather than an empty result set, so that "no data" can be distinguished from "source down".
Inputs: no named parameters. Returns: note, source, sources, provenance, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 13 tools
The tools are largely distinct: each targets a specific resource or query type (e.g., list_cantons for codes, get_public_holidays for yearly public holidays, get_local_holidays for municipality specifics). Slight overlap exists between check_date and is_holiday_today (both check a date), and between get_school_holidays and next_school_holidays (both return school holiday periods), but use cases and parameters clearly separate them.
The majority follow a clear verb_noun snake_case pattern (get_school_holidays, check_date, compare_school_holidays). A few deviate: source_status (noun_noun), next_school_holidays (adjective_noun), and is_holiday_today (verb but with an adjective). These are minor exceptions and still readable, but the pattern is not perfectly uniform.
13 tools is well within the ideal 3-15 range for a focused domain. Each tool addresses a distinct need: canton resolution, holiday lookups, comparisons, convenience functions, health checks, and export. None feel redundant or missing, and the count matches the complexity of Swiss cantonal holiday variations.
The tool surface covers the full lifecycle of holiday queries: listing cantons, resolving codes, checking single dates, retrieving periods by range or upcoming, comparing across cantons, finding common windows, and exporting to .ics. It also handles public, school, and local holidays with type differentiation (Schulart). No obvious gaps for the stated use case of Swiss holiday planning.
Maintenance
Related MCP Connectors
MCP server for public_holidays_mcp
Holidays MCP β wraps Nager.Date API (free, no auth)
opendata.swiss MCP β Switzerland's federal open-data portal (CKAN catalogue).
Nager.Date Public Holidays MCP.
Related MCP Servers
- AlicenseBqualityBmaintenanceSwiss open data MCP server β transport, weather, geodata, companies, etc,. Zero API keys.94431 npm28MIT
- AlicenseAqualityAmaintenanceMCP server for searching Swiss court decisions from federal and cantonal courts via entscheidsuche.ch. Enables full-text search, law reference lookup, and filtering by canton, court level, and date without API keys.834 PyPI1MIT
- AlicenseBqualityDmaintenanceMCP server exposing all major Swiss official public APIs as native tools for any MCP-compatible AI agent.3412 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to query German public holidays by Bundesland and school holidays, check whether dates are holidays, find upcoming holidays, and count working days using offline, sourced data.MIT