
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.
概览
本地 MCP 服务器,用于计算八字四柱排盘、八字反查出生日期、黄历信息与称骨算命。
- 可以做什么
- 根据出生时间计算完整八字命盘,含四柱、五行、十神、藏干、大运与刑冲合会
- 按给定八字字符串反查可能的出生日期,范围自 1700 年至今
- 查询指定日期的黄历信息:农历、生肖、节气、宜忌与方位神煞
- 按袁天罡称骨法计算骨重,返回重量明细、命诗与解读
- 适用场景
- 适合需要助手按需生成八字命盘、查询黄历或给出称骨算命结果的场景,也适合在本地为命理或日历类功能提供计算能力。
- 运行要求
- 以本地进程通过 stdio 运行,通常用 npx 启动 npm 包 chinese-astrology-skill,因此需要 Node.js,并需联网下载该包。未声明任何认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Ba-Zi.ai Chinese Astrology,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
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:
Stdio Transport
HTTP Transport
Tools
1. getBaziChart — BaZi Chart Calculation (八字排盘)
Calculate a complete Four Pillars of Destiny chart from birth datetime.
Input:
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:
Returns: Array of matching solar datetimes.
3. getAlmanac — Chinese Almanac (黄历)
Get Chinese almanac information for any date.
Input:
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:
Returns:
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
- Ba-Zi.ai — Free AI BaZi calculator with deep analysis reports
- BaZi Calculator — Generate your Four Pillars chart in 30 seconds
- Bone Weight Calculator — Free online Yuan Tiangang bone weight fortune
- BaZi Compatibility — Check relationship compatibility with BaZi
- What is BaZi? — Complete guide to Four Pillars of Destiny
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版本历史
1- v1.0.1最新Oct 19, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分