Ba-Zi.ai Chinese Astrology

io.github.xlw-pro由 GitHub 帳號 xlw-pro 發布v1.0.1更新於 Oct 27, 2026

BaZi Four Pillars charts, bone weight fortune (称骨) and Chinese almanac (黄历) by Ba-Zi.ai.

已驗證STDIO僅桌面位置與生活知識與記憶

概覽

AI 產生的概覽

本機 MCP 伺服器,用來計算八字四柱排盤、以八字反查出生日期、查詢黃曆資訊與秤骨算命。

可以做什麼
  • 依出生時間計算完整八字命盤,包含四柱、五行、十神、藏干、大運與刑沖合會
  • 依給定的八字字串反查可能的出生日期,範圍自 1700 年至今
  • 查詢指定日期的黃曆資訊:農曆、生肖、節氣、宜忌與方位神煞
  • 依袁天罡秤骨法計算骨重,回傳重量明細、命詩與解讀
適用情境
適合需要助理依需求產生八字命盤、查詢黃曆或提供秤骨算命結果的情境,也適合在本機為命理或行事曆類功能提供計算能力。
執行需求
以本機程序透過 stdio 執行,通常以 npx 啟動 npm 套件 chinese-astrology-skill,因此需要 Node.js,並需連網下載該套件。未宣告任何驗證、環境變數或請求標頭。
安裝前請注意
提供的出生時間與八字字串會交由該工具處理;輸出屬於傳統命理解讀,並非事實性預測。README 另說明可選的自架 HTTP 模式,執行於本機 localhost。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Chinese Astrology Skill 🔮

The most comprehensive Chinese astrology AI skill — 4 tools covering BaZi (Four Pillars of Destiny), bone weight fortune telling, and Chinese almanac. Available as an Agent Skill (SKILL.md) and MCP server.

Built by Ba-Zi.ai — Free AI-powered BaZi calculator and Chinese astrology platform.

Features

ToolDescriptionUnique?
getBaziChartFull BaZi (四柱八字) chart calculation with Ten Gods, Hidden Stems, Decade Fortune—
findBirthDatesReverse-lookup: find birth dates from a BaZi string—
getAlmanacChinese almanac (黄历) with auspicious activities and directional gods—
calculateBoneWeightYuan Tiangang bone weight fortune (秤骨算命) with 52 destiny poems✅ Exclusive

What makes this different?

  • Bone Weight Fortune (秤骨算命) — The only MCP/Skill that includes Yuan Tiangang's 1,300-year-old bone weight calculation with all 52 classical poems and modern interpretations
  • Bilingual descriptions — All tool descriptions in both English and Chinese
  • Accurate calculations — Powered by tyme4ts, the most precise Chinese calendar library

Quick Start

Claude Desktop / Claude Code

Add to your MCP config:

json
{  "mcpServers": {    "chinese-astrology": {      "command": "npx",      "args": ["-y", "chinese-astrology-skill"]    }  }}

Stdio Transport

bash
npx chinese-astrology-skill

HTTP Transport

bash
git clone https://github.com/xlw-pro/chinese-astrology-skill.gitcd chinese-astrology-skillnpm installnpm start# Server runs at http://localhost:3000/mcp

Tools

1. getBaziChart — BaZi Chart Calculation (八字排盘)

Calculate a complete Four Pillars of Destiny chart from birth datetime.

Input:

json
{  "solarDatetime": "2000-01-15T12:00:00+08:00",  "gender": 1}

Returns: Complete BaZi chart including:

  • Four Pillars (年柱/月柱/日柱/时柱) with Heavenly Stems & Earthly Branches
  • Five Elements (五行) for each position
  • Ten Gods (十神) relationships
  • Hidden Stems (藏干) — main, middle, and residual qi
  • Nayin (纳音), Void (空亡), Terrain (星运)
  • Decade Fortune (大运) — 10 periods with start ages
  • Gods & Spirits (神煞) for all four pillars
  • Branch Relations (刑冲合会) — clashes, combinations, penalties

2. findBirthDates — Reverse BaZi Lookup (八字反查)

Find all possible birth dates (from 1700 to present) that match a given BaZi string.

Input:

json
{  "bazi": "戊寅 己未 己卯 辛未"}

Returns: Array of matching solar datetimes.

3. getAlmanac — Chinese Almanac (黄历)

Get Chinese almanac information for any date.

Input:

json
{  "solarDatetime": "2026-04-06T00:00:00+08:00"}

Returns: Lunar date, zodiac, Nayin, solar terms, 28 mansions, Peng Zu taboos, directional gods (Joy/Yang Noble/Yin Noble/Mascot/Wealth), auspicious & inauspicious activities, clash info.

4. calculateBoneWeight — Bone Weight Fortune (秤骨算命) ⭐

Calculate bone weight fortune using Yuan Tiangang's ancient Tang Dynasty method (c. 600 CE).

Input:

json
{  "solarDatetime": "1990-06-15T14:00:00+08:00"}

Returns:

json
{  "totalWeight": 4.8,  "unit": "两 (liǎng)",  "percentile": 54,  "breakdown": {    "year": { "ganzhi": "庚午", "weight": 0.9 },    "month": { "lunarMonth": 5, "weight": 0.5 },    "day": { "lunarDay": 23, "weight": 0.8 },    "hour": { "earthBranch": "未", "weight": 0.8 }  },  "poem": "初年运道未曾亨...",  "interpretation": "Late success through independence..."}

Weight ranges from 2.1 to 7.2 liǎng across 52 destiny types. Learn more about bone weight fortune →

Use Cases

  • AI Chatbots — Give your AI assistant accurate BaZi reading capabilities
  • Fortune Telling Apps — Build Chinese astrology features into your product
  • Calendar Apps — Add Chinese almanac and auspicious date lookup
  • Research — Explore traditional Chinese metaphysics computationally

Tech Stack

  • tyme4ts — Chinese calendar calculation engine
  • cantian-tymext — Extended BaZi analysis
  • MCP SDK — Model Context Protocol for AI integration

Related

Roadmap

  • v1.0 — BaZi chart, reverse lookup, almanac, bone weight
  • v2.0 — Qi Men Dun Jia (奇门遁甲)
  • v3.0 — Zi Wei Dou Shu (紫微斗数)

License

MIT — see LICENSE


Built with ❤️ by Ba-Zi.ai — AI-powered Chinese astrology for everyone.

來源:README.md,提交 48a2609

工具

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

版本歷史

1
  1. v1.0.1最新Oct 19, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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