Holiday Calendar

U.S. federal holidays with observed dates and business-day math. Example from an open-source kit.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
98%
命名品質
100%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,107Token(工具定義)
~1.2 KB典型回應大小
中等的注意力影響(128k 上下文的 0.86%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "holiday-calendar": {
      "url": "https://starter.modernmustardseed.com/holidays"
    }
  }
}

遠端端點

https://starter.modernmustardseed.com/holidaysstreamable-http

它能做什麼

工具清單

工具(5)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢list_federal_holidays(year)

List the eleven U.S. federal holidays for one calendar year (2021 through 2100): each holiday's name, its actual date and weekday, the date it is observed when it falls on a weekend (Saturday moves to the Friday before, Sunday to the Monday after), and the rule that sets it, from 5 U.S.C. 6103. Use it to answer which days federal offices close in a year.

輸入結構描述

{
  "type": "object",
  "properties": {
    "year": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Calendar year, 2021 through 2100."
    }
  },
  "required": [
    "year"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢next_federal_holidays(from_date, count)

Find the next one to eleven U.S. federal holidays observed on or after a date, with each one's observed date and how many calendar days away it is. Without from_date it starts from today's date in America/New_York and says which date it used.

輸入結構描述

{
  "type": "object",
  "properties": {
    "from_date": {
      "type": "string",
      "maxLength": 40,
      "description": "Start looking on this date, inclusive, written YYYY-MM-DD (for example 2026-11-26). Covers 2021 through 2100."
    },
    "count": {
      "description": "How many upcoming holidays to return, 1 to 11. Defaults to 1.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢check_business_day(date)

Check whether a date is a U.S. business day (a weekday that is not an observed federal holiday). Returns the weekday, the holiday observed that day if any, and the business days just before and just after it.

輸入結構描述

{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "maxLength": 40,
      "description": "The date to check, written YYYY-MM-DD (for example 2026-11-26). Covers 2021 through 2100."
    }
  },
  "required": [
    "date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢add_business_days(start_date, business_days)

Move a number of U.S. business days forward or backward from a date, skipping weekends and observed federal holidays, for due dates, delivery windows and notice periods. The start date is not counted: 1 business day after a Friday is the next Monday, or Tuesday when that Monday is a holiday. Returns the resulting date and every holiday it skipped. Up to 1,000 business days either way.

輸入結構描述

{
  "type": "object",
  "properties": {
    "start_date": {
      "type": "string",
      "maxLength": 40,
      "description": "The date to count from. It is not counted itself, written YYYY-MM-DD (for example 2026-11-26). Covers 2021 through 2100."
    },
    "business_days": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "Business days to move, -1000 to 1000. Negative counts backward. 0 returns the start date if it is a business day, otherwise the next one."
    }
  },
  "required": [
    "start_date",
    "business_days"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢count_business_days(start_date, end_date)

Count the U.S. business days between two dates, both dates included, leaving out weekends and observed federal holidays. Returns the business day count, the weekend days, and each holiday that fell in the span. Spans up to 3,660 calendar days.

輸入結構描述

{
  "type": "object",
  "properties": {
    "start_date": {
      "type": "string",
      "maxLength": 40,
      "description": "First date of the span, counted if it is a business day, written YYYY-MM-DD (for example 2026-11-26). Covers 2021 through 2100."
    },
    "end_date": {
      "type": "string",
      "maxLength": 40,
      "description": "Last date of the span, counted if it is a business day, written YYYY-MM-DD (for example 2026-11-26). Covers 2021 through 2100."
    }
  },
  "required": [
    "start_date",
    "end_date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本5 個工具