chinese-holidays-MCPServer
The Chinese Holidays MCP Server is a TypeScript-based plugin that allows users to query Chinese public holidays for any given year. It utilizes data from a dedicated repository to provide accurate information on China's statutory holidays.
chinese-holidays MCP Server / 中国节假日查询MCP Server
This is a TypeScript-based MCP server.
Features / 功能
This plugin allows you to query Chinese public holidays for the corresponding year.
插件可查询对应年份的中国法定节假日。
Installation / 安装使用
Build/构建:
npm run build
{
"mcpServers": {
"chinese-holidays": {
"command": "node",
"args": "/path/to/chinese-holidays-MCPServer/build/index.js"
}
}
}
Data Source / 数据来源
bastengao/chinese-holidays-data
Plugin relies on this data repository. / 插件依赖此数据仓库。
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.