China holidays and lunar calendar lookup, solar-to-lunar conversion and yearly schedule.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Chinese calendar tools for AI agents: statutory public holidays & makeup-workday schedules (2025–2026, per the State Council of China) plus accurate solar-to-lunar calendar conversion (lunar date, zodiac animal, ganzhi / heavenly-stems-earthly-branches).
sxtwl ephemeris library (pure-Python lunardate fallback supported).Transport: Streamable HTTP (MCP 2025-03-26 compatible). No authentication required.
Add this to your MCP client's mcpServers configuration (Claude Desktop claude_desktop_config.json, Cursor mcp.json, Cline, Cherry Studio, etc.):
Clients that do not accept
"type": "http"accept the same entry with just"url".
| Tool | Parameters | Returns | |
---|---|---|
| query_holiday(date) | date: solar date YYYY-MM-DD, e.g. "2026-10-01". | Weekday, holiday name (if any), day type — public holiday off-day / makeup workday / normal workday / weekend — plus the lunar date for that day. |
| solar_to_lunar(year, month, day) | year/month/day: solar date integers. | Lunar year/month/day, leap-month flag, lunar date string (Chinese), zodiac animal, and year/month/day ganzhi (干支). |
| list_holidays(year) | year: integer year, e.g. 2026. | All statutory holidays of the year: name, off-day count, date ranges, exact off dates and makeup-workday dates. |
HOLIDAY_DATA to add more years.sxtwl (ShouWang calendar ephemeris, C extension). If sxtwl is unavailable the server automatically falls back to the pure-Python lunardate library (install it separately).Then point your MCP client at http://127.0.0.1:8000/mcp.
You can also run the server with uv:
calendar_server.py — the MCP server: holiday data, lunar conversion, FastMCP tool definitions.server.py — standalone Streamable HTTP entry point (binds host/port, serves the MCP app at /mcp).requirements.txt — Python dependencies.LICENSE — MIT.中国万年历 MCP:法定节假日 / 调休安排查询(2025–2026,依据国务院办公厅通知)与公历转农历(农历年月日、闰月、生肖、干支)。
在线直连(免费、无需 Key):https://mcp.pianam.cn/calendar-mcp/mcp
工具:
query_holiday(date):查询某公历日期的节假日 / 调休安排,附带农历信息。solar_to_lunar(year, month, day):公历转农历,返回农历日期、闰月、生肖、干支。list_holidays(year):列出某年全部法定节假日放假与调休上班日期。节假日数据内置本地(2025、2026,可逐年扩展);农历转换使用 sxtwl 历库,缺失时自动降级到纯 Python 的 lunardate;全程无需外部 API 与密钥。
MIT © 2026 boy-373 (刘扶阳)
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/calendar-mcp)<a href="https://allmcps.com/mcp/calendar-mcp"><img src="https://allmcps.com/api/badge/calendar-mcp?style=directory" alt="Calendar MCP on AllMCPs" /></a>