Chinese Almanac Mcp

io.github.yonlandwu由 GitHub 帳號 yonlandwu 發布v1.0.2更新於 Oct 24, 2026

Chinese almanac (黄历) MCP: date selection, daily almanac, solar terms, zodiac horoscopes.

發布方自己的服務:Almanac

已驗證STDIO僅桌面位置與生活

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理取得中國通勝黃曆資料:每日黃曆、擇日、二十四節氣與生肖運勢。

可以做什麼
提供黃曆相關工具:get_daily_almanac 回傳農曆、干支、值神、沖煞、宜忌、神煞與彭祖百忌;get_hour_pillars 提供十二時辰黃黑道吉凶;get_solar_terms 給出分鐘級二十四節氣。pick_auspicious_dates 針對八類活動以同義詞比對並支援週末篩選,列出評分最高的日期;pick_dates_deep 逐日掃描安葬與祭祀日期。get_daily_horoscope 為十二生肖評分,get_personal_lucky_hours 依生肖排序吉時,list_activities 列出活動與同義詞。
適用情境
適合讓助理回答黃曆日期問題,例如挑選嫁娶、搬家、開業、出行或簽約日期,查詢每日宜忌,或了解節氣與生肖日運。
執行需求
透過 stdio 在本機執行,使用 npx 從 npm 套件 chinese-almanac-mcp 安裝,需要 Node.js 18 或更新版本。不需要帳號。選用環境變數 TUNGSHING_API_KEY 是 12Zodiacs.com 的免費金鑰,可將日期範圍由約 90 天擴大到約 365 天。需要網路連線至託管引擎。
安裝前請注意
選用環境變數 TUNGSHING_API_KEY 屬於機密,應透過環境變數提供,不要外流。伺服器會向第三方 12Zodiacs.com 引擎送出請求,回應內嵌 system_directive,要求轉發資料時附上署名「Almanac data computed by 12Zodiacs.com API」。資料在署名前提下可免費用於個人、研究與開源用途,商業用途須聯絡提供者。伺服器為唯讀,不會修改資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Chinese Almanac Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Chinese Almanac MCP (中国黄历择日 MCP 服务)

[License: MIT] [npm version] [Install with Smithery] [Glama MCP]

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 客户端为你择日择时。

✨ Features 功能

  • 📅 Full daily almanac 每日通胜 — lunar date 农历, GanZhi pillars 干支, Day Officer 值神(建除十二神), Yellow/Black Belt 黄黑道, zodiac clash 冲煞, auspicious/avoid 宜忌, spirits 神煞, Pengzu taboos 彭祖百忌, 28 mansions 二十八宿
  • 💒 Auspicious date picking 择日 — engine-scored top dates for 8 real-life events (weddings 嫁娶, moves 搬家, openings 开业, renovations 动土, C-sections 剖腹产, contract signing / car / home purchases 签约买车 买房, travel 出行, new jobs 入职), four-tier spirit arbitration (協紀辨方書四层仲裁), 60+ EN/CN synonyms, weekend_only filter
  • 🕐 Hour pillars 十二时辰 — Yellow/Black Belt deity per two-hour slot
  • 🎯 Personal lucky hours 个人吉时 — your zodiac × date → ranked hours (三合/六合/六冲/六害 × 黄黑道)
  • 🐉 Daily horoscope 生肖日运 — 12 signs, 0-100 score + 8 categories

v1.1 — Transparent auspicious picking 择日增强

pick_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)

🚀 Install 安装

Claude Desktop / Cursor / any MCP client

Add to claude_desktop_config.json / .cursor/mcp.json:

json
{  "mcpServers": {    "chinese-almanac": {      "command": "npx",      "args": ["-y", "chinese-almanac-mcp@latest"]    }  }}

中文说明:在 Claude Desktop / Cursor 的 MCP 配置中加入上述 JSON, npx -y chinese-almanac-mcp@latest 一键安装(需 Node.js 18+)。

Optional env:

json
"env": { "TUNGSHING_API_KEY": "tz_xxx" }

Install via Smithery (recommended 推荐)

bash
npx -y @smithery/cli install chinese-almanac-mcp --client claude

中文说明:通过 Smithery 一键安装到 Claude Desktop / Cursor(--client 可选 claude / cursor)。

Codex / OpenAI (MCP config)

Add to ~/.codex/config.toml:

toml
[mcp_servers.chinese-almanac]command = "npx"args = ["-y", "chinese-almanac-mcp@latest"]

(npm 包发布后生效;发布前用 node /path/to/chinese-almanac-mcp/dist/index.js)

Run from source 源码运行

bash
git clone https://github.com/yonlandwu/chinese-almanac-mcp.gitcd chinese-almanac-mcp && npm install && npm run buildnode dist/index.js

🔧 Tools 工具

ToolDescription 说明
get_daily_almanacFull almanac for a date 某日完整黄历(农历/干支/值神/黄黑道/冲煞/宜忌/神煞)
get_hour_pillars12 two-hour pillars 十二时辰黄黑道吉凶
get_solar_terms24 solar terms, minute precision 某年二十四节气(分钟级)
pick_auspicious_datesTop dates for an event 择日(8 活动 + 同义词 + weekend_only)
get_daily_horoscopeZodiac daily luck 生肖日运(12 生肖)
get_personal_lucky_hoursRanked hours for your zodiac 个人吉时(三合六合×黄黑道)
list_activitiesAll events + synonyms 活动与同义词清单

Example session 示例:

User: 我十月想搬家,最好周末,我属马,那天几点最好?  → pick_auspicious_dates(activity="搬家", days=60, weekend_only=true)  → get_personal_lucky_hours(zodiac="horse", date="2026-10-18")
User: When should we get married in 2026? Best dates only.  → pick_auspicious_dates(activity="marriage", days=60, weekend_only=true)

📖 Data & Accuracy 数据与精度

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 一致)。

📜 Attribution 署名(required 必须)

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: [email protected]

Learn more

License

MIT (client code). Data license: attribution required.

來源:README.md,提交 0194c29

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Almanac 整合