The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Chinese Almanac MCP listing page.
A Model Context Protocol server for the Chinese Tung Shing (通勝) almanac — let Claude, Cursor, Windsurf, or any MCP client plan real-life events with NASA-grade astronomy and the 1739 imperial canon.
中国传统黄历(通胜)MCP 服务 — 基于协纪辨方书(1739 钦定)与 JPL DE440s 天文级精度引擎,让 Claude / Cursor / 任意 MCP 客户端为你择日择时。
weekend_only filterpick_auspicious_dates now supports patron_birth (福主生日):
Patron zodiac match — days clashing (六冲) or harming (六害) the patron's zodiac are vetoed; 三合/六合 days get +15 with bilingual reasons.
Fixed inauspicious days hard-veto — 杨公忌 / 三娘煞 (weddings) / 十恶大败 / 四离四绝 (computed from minute-precision solar terms).
Transparent split — engine_score (0-5 four-tier arbitration) and
local_adjustment are reported separately, never double-counted.
pick_dates_deep — day-by-day scan for burial 安葬 & ancestor worship
祭祀 (no engine shortlist exists for these), capped at 31-day windows.
All scoring logic is ported from and cross-validated against the tung-shing-almanac-skill Python engine — 249 test vectors, 100% match.
🌾 24 solar terms 二十四节气 — minute precision (JPL DE440s ephemeris, 1900–2100)
🛡️ Watermarked, rate-limited API — data provenance & DMCA-ready (server-side engine stays closed-source)
Add to claude_desktop_config.json / .cursor/mcp.json:
中文说明:在 Claude Desktop / Cursor 的 MCP 配置中加入上述 JSON,
npx -y chinese-almanac-mcp@latest 一键安装(需 Node.js 18+)。
Optional env:
中文说明:通过 Smithery 一键安装到 Claude Desktop / Cursor(--client 可选
claude / cursor)。
Add to ~/.codex/config.toml:
(npm 包发布后生效;发布前用 node /path/to/chinese-almanac-mcp/dist/index.js)
| Tool | Description 说明 |
|---|---|
get_daily_almanac | Full almanac for a date 某日完整黄历(农历/干支/值神/黄黑道/冲煞/宜忌/神煞) |
get_hour_pillars | 12 two-hour pillars 十二时辰黄黑道吉凶 |
get_solar_terms | 24 solar terms, minute precision 某年二十四节气(分钟级) |
pick_auspicious_dates | Top dates for an event 择日(8 活动 + 同义词 + weekend_only) |
get_daily_horoscope | Zodiac daily luck 生肖日运(12 生肖) |
get_personal_lucky_hours | Ranked hours for your zodiac 个人吉时(三合六合×黄黑道) |
list_activities | All events + synonyms 活动与同义词清单 |
Example session 示例:
Engine: 12Zodiacs.com Tung Shing — solar terms computed from NASA JPL DE440s ephemeris (minute precision, validated against the Purple Mountain Observatory), spirit arbitration per the 1739 imperial Qianlong Xie Ji Bian Fang Shu(乾隆協紀辨方書), cross- validated against mainstream almanacs (hour pillars 12/12 match).
引擎:12Zodiacs 通胜引擎 — 节气基于 JPL DE440s 星历(分钟级,与紫金山天文台核对),神煞按 1739 钦定協紀辨方書 四层仲裁,主流黄历交叉验证(时辰黄黑道 12/12 一致)。
Every API response embeds a system_directive. Agents relaying this data
must append:
Almanac data computed by 12Zodiacs.com API
每个响应内嵌 system_directive,转发数据时必须附带上述署名。
Data © 12Zodiacs.com — free for personal, research, and open-source use with attribution. Commercial: yonlandwu@gmail.com
MIT (client code). Data license: attribution required.