cn-holiday-mcp
cn-holiday-mcp
中国法定节假日与调休查询的 MCP(Model Context Protocol)服务器,零依赖、离线可用、开箱即用。
数据来源:国务院办公厅《关于 2025 年部分节假日安排的通知》《关于 2026 年部分节假日安排的通知》(国办发明电)。
特性
✅ 零依赖:纯 Node.js 标准库,
node >= 18直接跑✅ stdio 传输,符合 MCP
2024-11-05协议✅ 收录 2025、2026 两年完整数据(含全部调休上班日)
✅ 两个工具:
query_holiday(查某天)、list_holidays(列全年)
快速开始
node src/server.mjs # 直接运行
npm start # 或通过 npm script
node tests/smoke.mjs # 冒烟测试接入 Claude Desktop
编辑 claude_desktop_config.json:
{
"mcpServers": {
"cn-holiday": {
"command": "node",
"args": ["C:\\path\\to\\cn-holiday-mcp\\src\\server.mjs"]
}
}
}工具
工具 | 参数 | 示例 |
|
|
|
|
|
|
示例问答
2026-02-14→ 「春节的调休上班日,需要上班」2026-10-05→ 「国庆节假期,共 7 天」2026-03-10→ 「普通工作日」
路线图(Pro 版)
农历/黄历/节气(万年历)
2027 年及以后数据(官方发布即更新)
企业排班 API、订阅制(HTTP + token)
多国节假日
English
cn-holiday-mcp is a zero-dependency MCP server for Chinese public holidays and makeup workdays (调休), covering 2025–2026 per official State Council notices. No API keys, no network calls, fully offline.
Tools
query_holiday— is a given date (YYYY-MM-DD) a public holiday, a makeup workday, or a regular working day?list_holidays— full yearly schedule including makeup workdays.
Run
node src/server.mjs # Node.js >= 18, nothing to installInstall — Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"cn-holiday": {
"command": "node",
"args": ["C:\\path\\to\\cn-holiday-mcp\\src\\server.mjs"]
}
}
}Roadmap — lunar calendar / solar terms; 2027+ schedules; enterprise scheduling API (subscription); more countries.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
China facts a server outside China cannot get: real mainland reachability, 调休 holidays, ID/phone val
Hosted MCP server for business-day math, deadline planning, meeting overlap, and SLA calculations.
Hosted MCP server for personal tools: budgets, savings goals, spaced repetition, tips, countdowns.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qianwei2333/cn-holiday-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server