Holiday Calendar
U.S. federal holidays with observed dates and business-day math. Example from an open-source kit.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 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"
}社区
证据