Swiss Holidays MCP logo

Swiss Holidays MCP

Query Swiss school, public, local holidays, long weekends, overlaps, and ICS calendars across all 26 cantons.

Install Swiss Holidays MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "swiss-holidays-mcp": {
      "command": "uvx",
      "args": [
        "swiss-holidays-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio swiss-holidays-mcp -- uvx swiss-holidays-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 13 tools correctly ().

Overview

The swiss-holidays-mcp MCP server provides Swiss school, public, and local holiday data across all 26 cantons. It reads OpenHolidays and Nager.Date through MCP tools, with in-memory caching, retries, provenance, and source health reporting. Use it for date checks, cross-canton school-holiday planning, long-weekend discovery, or calendar export without API keys. It supports stdio for local hosts and Streamable HTTP/SSE for cloud deployment.

Use cases

  • Compare school-holiday overlaps across cantons
  • Check whether a date is a public or school holiday
  • Find shared vacation windows for several cantons
  • Export a canton's holidays as an ICS calendar

Key features

  • All 26 Swiss cantons
  • School-type-specific holiday data
  • Canton, district, and municipality holidays
  • Cross-canton overlap and shared-window analysis
  • Long-weekend and bridge-day calculation
  • iCalendar export

Tools13

What Swiss Holidays MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.9k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 84d

What it can do

From the 13 tools this server returned when we ran it; 13 declare their own safety hints.

Makes network requests · 13Read-only tools · 13
Network at startup2 connections
Files written at startup10

Observed 2026-11-08 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · swiss-holidays-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed13Callable tools this server registers over MCP.

How Swiss Holidays MCP works

What swiss-holidays-mcp MCP server does

The swiss-holidays-mcp MCP server exposes Swiss holiday information for AI assistants and other MCP clients. Its coverage spans all 26 cantons, including canton codes and official languages, school-type groups, school holidays, public holidays, and local holidays for municipalities or districts.

School-holiday results can preserve distinctions by Schulart, such as compulsory schools or other school groups represented by the upstream data. This matters when two records share dates but apply to different school types. Public-holiday data includes canton-specific holidays rather than only a federal baseline. Local results can identify holidays that apply to a municipality or district instead of an entire canton.

How it works

The swiss-holidays-mcp MCP server retrieves holiday data from the OpenHolidays API and uses Nager.Date for long weekends and required bridge days. Responses are returned as structured data with provenance indicating whether the result came from a live API response, cache, or degraded mode.

The server keeps an in-memory cache with a 12-hour time-to-live. Failed upstream requests use exponential backoff at 2, 4, and 8 seconds, while each API call has a 20-second timeout. Health probes use an 8-second timeout. A source-status tool reports reachability and latency for both upstream services.

All tools are read-only and idempotent. Inputs are schema-validated, including known canton codes, ISO-formatted dates, bounded years, and allowed language or school-type values. The server also provides a resource URI in the form holidays://{canton}/{year} containing a Markdown summary of public and school holidays.

Setup and configuration

No API key or other authentication credential is required because both upstream data sources are publicly accessible. The project targets Python 3.10 or newer. It can run over stdio for local MCP hosts such as Claude Desktop, or through Streamable HTTP/SSE when deployed for cloud access.

Use of the upstream data remains subject to the OpenHolidays and Nager.Date terms. Applications using OpenHolidays data must provide attribution under CC BY 4.0; Nager.Date data is released under MIT.

Tools and capabilities

The swiss-holidays-mcp MCP server includes these read-only tools:

  • list_cantons returns the 26 cantons, ISO codes, and official languages.
  • list_school_types shows school-type groups available for each canton.
  • get_school_holidays retrieves school holidays for a canton and date range.
  • get_public_holidays retrieves a canton’s public holidays for a year.
  • get_local_holidays finds municipality- or district-level public holidays.
  • check_date tests whether a date is a school or public holiday.
  • compare_school_holidays produces pairwise overlap results across cantons.
  • find_common_free_window finds periods when all selected cantons are on holiday.
  • next_school_holidays returns upcoming school-holiday periods.
  • get_long_weekends calculates long weekends and bridge days.
  • export_holidays_ics generates a canton’s yearly holidays as an iCalendar document.
  • is_holiday_today checks the current day for a canton.
  • source_status reports upstream reachability and latency.

Limitations and notes

The service depends on external public APIs, so availability and returned data can vary. When an upstream request fails, the server returns a degraded response with an explanatory note rather than silently returning an empty list. The 12-hour cache may mean that recently changed source data is not reflected immediately.

The project is a private, independent implementation and does not represent an official position of a Swiss authority. Holiday applicability can differ by canton, district, municipality, and school type, so consumers should use the relevant scope and school-type fields when planning. No tool writes to external systems or modifies source data.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Swiss Holidays MCP

swiss-holidays-mcp is an MCP server that connects AI assistants to OpenHolidays and Nager.Date for Swiss holiday data. Its main tools list cantons and school types, retrieve school, public, and local holidays, compare dates, find shared free windows, calculate long weekends, export ICS calendars, and check source status.

Run the Python 3.10+ project in an MCP host using stdio or Streamable HTTP/SSE.

Yes, it supports stdio for Claude Desktop. The server also supports Streamable HTTP/SSE for cloud deployment and can be used by MCP hosts that support those transports.

It uses OpenHolidays for canton, school-type, school-holiday, public-holiday, and local-holiday data, and Nager.Date for long weekends and required bridge days. Both sources are publicly accessible without authentication.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSwiss Holidays MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/swiss-holidays-mcp?style=directory)](https://allmcps.com/mcp/swiss-holidays-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/swiss-holidays-mcp"><img src="https://allmcps.com/api/badge/swiss-holidays-mcp?style=directory" alt="Swiss Holidays MCP on AllMCPs" /></a>