中国节假日日历 MCP 服务提供了一系列功能,帮助用户查询特定日期是否为节假日或工作日,并获取节假日的详细信息。用户可以查询单个日期或指定时间范围内的所有节假日和工作日。服务支持灵活的日期输入格式,并提供错误处理机制以确保输入的准确性。用户可以通过配置参数来决定是否将周末计入节假日。该服务采用 MIT 许可证,允许用户自由使用和修改。
Features
- 查询指定日期是否为节假日
- 查询指定日期是否为工作日
- 获取指定日期的节假日详细信息
- 查询指定时间范围内的所有节假日
- 查询指定时间范围内的所有工作日
Usage with Different Platforms
python
python
import requests
response = requests.get('http://example.com/api/holiday?date=2023-10-01')
if response.status_code == 200:
print(response.json())
else:
print('Error:', response.status_code)
javascript
javascript
fetch('http://example.com/api/holiday?date=2023-10-01')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Frequently Asked Questions
如何查询一个日期是否为节假日?
您可以通过 API 请求查询指定日期是否为节假日,输入格式为 YYYY-MM-DD。
可以查询一个日期范围内的所有节假日吗?
是的,您可以通过指定开始日期和结束日期来查询该范围内的所有节假日。
周末是否默认计入节假日?
是的,默认情况下周末会被计入节假日,但您可以通过 include_weekend 参数进行配置。
Related MCP Servers
View all calendar_management servers →apple-mcp
by supermemoryai
This is a collection of Apple-native tools for the Model Context Protocol (MCP) that integrates with various Apple applications to automate tasks and manage communications.
iMCP
by loopwork-ai
iMCP is a macOS app that connects your digital life with AI, supporting the Model Context Protocol (MCP) for seamless integration with various clients.
mcp-gsuite
by MarkusPfundstein
MCP server to interact with Google products, specifically Gmail and Calendar.
google-calendar-mcp
by nspady
This is a Model Context Protocol (MCP) server that provides integration with Google Calendar, allowing LLMs to interact with calendar events through a standardized interface.
applescript-mcp
by joshrutkowski
A Model Context Protocol server that enables LLM applications to interact with macOS through AppleScript, providing a standardized interface for AI applications to control system functions, manage files, handle notifications, and more.
google-workspace-mcp
by aaronsb
The Google Workspace MCP Server is a Model Context Protocol server that allows users to manage their Google Workspace, including Gmail, Calendar, and Drive, through a secure and efficient interface.
meeting-mcp
by Meeting-Baas
A Model Context Protocol (MCP) server that provides tools for managing meeting data, including transcripts, recordings, calendar events, and search functionality.