
Ba-Zi.ai Chinese Astrology
io.github.xlw-proPublished by GitHub account xlw-prov1.0.1Updated Oct 27, 2026
BaZi Four Pillars charts, bone weight fortune (称骨) and Chinese almanac (黄历) by Ba-Zi.ai.
Overview
Local MCP server that computes Chinese astrology: BaZi Four Pillars charts, reverse BaZi date lookup, almanac data and bone weight fortune.
- What you can do
- Calculate a full BaZi chart from a birth datetime, including pillars, Five Elements, Ten Gods, hidden stems, decade fortune and branch relations
- Reverse-lookup possible birth dates from a given BaZi string, covering 1700 to the present
- Retrieve Chinese almanac details for a date: lunar date, zodiac, solar terms, auspicious and inauspicious activities, directional gods
- Compute Yuan Tiangang bone weight fortune with weight breakdown, poem and interpretation
- When to use it
- Useful when you want an assistant to produce BaZi charts, almanac lookups or bone weight readings on request, or when building astrology or calendar features that need these calculations locally.
- Requirements
- Runs as a local process over stdio, typically launched with npx from the npm package chinese-astrology-skill, so Node.js and network access for the package download are needed. No authentication, environment variables or headers are declared.
Installation
In SourceWeft
- Open Ba-Zi.ai Chinese Astrology in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit 48a2609
Tools
0Version history
1- v1.0.1LatestOct 19, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts