lookup-holiday

Real public holiday lookup for 206 countries via a rule-based calendar engine. Paid via x402.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
100%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~590token 数(工具定义)
~6.2 KB典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.46%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "lookup-holiday": {
      "url": "https://lookup-holiday.encodari.workers.dev/mcp"
    }
  }
}

远程端点

https://lookup-holiday.encodari.workers.dev/mcpstreamable-http

它能做什么

工具清单

工具(1)

🟢 只读🟡 写入🔴 删除⚪ 未知
⚪lookup_holiday(country, state, region, year, language, ...)

Looks up real public/bank/school holidays for a country (and optionally a state/region) and year from a real rule-based calendar engine covering 206 countries — moveable holidays like Easter are computed astronomically, not guessed. Costs $0.01 USDC (Base) per call.

输入模式

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2,
      "description": "ISO 3166-1 alpha-2 country code (e.g. \"US\", \"FR\", \"JP\")."
    },
    "state": {
      "description": "Optional subdivision code within the country (e.g. \"CA\" for California in \"US\").",
      "type": "string"
    },
    "region": {
      "description": "Optional sub-region code within the state. Requires `state` to also be set.",
      "type": "string"
    },
    "year": {
      "description": "Calendar year to look up. Defaults to the current UTC year. Between 1900 and 2200.",
      "type": "integer",
      "minimum": 1900,
      "maximum": 2200
    },
    "language": {
      "description": "Optional ISO 639-1 language code for holiday names (e.g. \"es\"). Falls back to the country default.",
      "type": "string"
    },
    "types": {
      "description": "Optional filter: only return holidays of these types (e.g. [\"public\"]). Default: all types.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "public",
          "bank",
          "school",
          "optional",
          "observance"
        ]
      }
    }
  },
  "required": [
    "country"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

输出模式

{
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean",
      "description": "false if the input (country/state/region/year/type) was invalid."
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Error message if valid is false; null otherwise."
    },
    "country": {
      "type": "string"
    },
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "region": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "year": {
      "type": "number"
    },
    "holidays": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "ISO date (YYYY-MM-DD) of the holiday."
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "public",
              "bank",
              "school",
              "optional",
              "observance"
            ]
          },
          "substitute": {
            "type": "boolean",
            "description": "true if this entry is a substitute day for a holiday that fell on a weekend."
          }
        },
        "required": [
          "date",
          "name",
          "type",
          "substitute"
        ],
        "additionalProperties": false
      },
      "description": "Holidays for the requested year, sorted by date."
    }
  },
  "required": [
    "valid",
    "error",
    "country",
    "state",
    "region",
    "year",
    "holidays"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

社区

评价此服务器

证据

最近观测

已验证未记录版本1 个工具
已验证未记录版本1 个工具