About Nhatnguyet Lunar Ziwei Bazi Numerology
Nhatnguyet Lunar Ziwei Bazi Numerology is an MCP server published by Nhat-Nguyet in the Blockchain category: lunisolar calendar, Zi Wei Dou Shu, BaZi, numerology, I Ching and feng shui for JavaScript and Python: astronomically accurate (NASA, IMCCE), country-aware (China, Korea, Japan, Vietnam and 7 more), results in English, Chinese and Vietnamese. MCP server for AI, 17,291 shared test vectors, open datasets. 农历 紫微斗数 八字 易经 风水. Conduid read 15 tools from its source: auspicious_hours, cast_bazi, cast_zi_wei, cast_ziwei, daily_hexagram, festivals and 9 more. No package is published for it, so it installs from a source checkout.
The repository has 36 stars and 26 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. Its topics include bazi, chinese-astrology, chinese-calendar, dataset, feng-shui and four-pillars.
Install
git clone https://github.com/Nhat-Nguyet/nhatnguyet-lunar-ziwei-bazi-numerologyTools (15)
auspicious_hoursThe twelve double hours (two clock hours each, Vietnam time UTC+7; the Tý hour runs 23:00 to 00:59) of a Gregorian date, each marked auspicious (giờ hoàng đạo) or inauspicious (giờ hắc đạo) with its presiding spirit (Qing Long, Ming Tang...), as Vietnamese almanacs print them. Six hours of every day are auspicious; which six depends only on the day's earthly branch. This is a traditional almanac convention, not a prediction.cast_baziCast a BaZi (Bát Tự, 八字, Four Pillars of Destiny) chart: year, month, day and hour pillars with ten gods, hidden stems, na yin, twelve stages and symbolic stars; conception pillar, life palace and luck pillars. Birth time is read as Vietnam time (UTC+7); the year turns at Start of Spring, the month at each sectional solar term, the day at 23:00 (zi_hour split-at-midnight: at midnight). Omit time when unknown. Returns a markdown summary, then compact JSON.cast_zi_weiSame as cast_ziwei (older name).| Parameter | Type | Description |
|---|---|---|
| hour_branch | number | Instead of time: 0 = Zi (Tý) ... 11 = Hai (Hợi). |
| name | string | |
| year | number | Also list the facts of this viewing year (year palace, minor limit, yearly transformations). |
cast_ziweiCast a Zi Wei Dou Shu (Tử Vi, 紫微斗数) birth chart: lunar birth date (Vietnamese calendar, UTC+7), bureau, Life and Body palaces, the 14 major stars with brightness, minor stars, the Four Transformations, the Xun Kong and Jie Kong voids, ten-year periods and named patterns. Returns two text blocks: a markdown summary for reading, then compact JSON.| Parameter | Type | Description |
|---|---|---|
| hour_branch | number | Instead of time: 0 = Zi (Tý) ... 11 = Hai (Hợi). |
| name | string | |
| year | number | Also list the facts of this viewing year (year palace, minor limit, yearly transformations). |
daily_hexagramThe hexagram ruling a date (1900 to 2100) by the Han-dynasty Gua Qi calendar of Meng Xi: sixty hexagrams of 6 7/80 days each from Inner Truth at the true winter solstice, read at 12:00 Vietnam time; its place in the cycle and rank, the ruling line, the cardinal hexagram of the solar term, and the time of a change of hexagram during the day. It is assigned by the calendar, not cast. Returns JSON.festivalsVietnamese festivals and holidays with a fixed date (lunar or Gregorian) in a year, with their Gregorian dates, sorted by date. Lunar dates are converted with the Vietnamese calendar (UTC+7). Festivals whose dates organisers announce each year are not included. From the open dataset le-hoi-viet-nam (CC BY 4.0).| Parameter | Type | Description |
|---|---|---|
| month | number | Only festivals falling in this Gregorian month. |
| year * | number |
flying_star_chartA Xuan Kong flying star chart (Shen school, plain facing): the period (base), mountain and facing stars of the nine palaces, the role of each star in the period (prosperous, growing, retreating, killing, dead), the named pattern (prosperous sitting and facing, reversed, double stars) and the castle gates. Give period (1 to 9) or year (then the 20-year period of that year), and facing or sitting. Replacement stars for a facing near a mountain edge, and monthly stars, are not computed.| Parameter | Type | Description |
|---|---|---|
| period | number | |
| year | number | Instead of period: the year the house was built or moved into (counted from the Start of Spring). |
hexagramOne of the 64 I Ching hexagrams: King Wen number, symbol, names in English, pinyin, Chinese and Vietnamese, upper and lower trigrams (image, element, direction), Eight Palaces palace with its element and generation, world and response lines, the nuclear, opposite and reversed hexagrams, and the public domain Zhou Yi text (judgment and line statements) with James Legge's 1882 English translation. Returns JSON. No reading or advice: write any interpretation yourself and say it is one.life_guaEight Mansions (Ba Zhai, Bát Trạch) life gua or Kua number of a person: trigram, east or west group, element, and the eight directions with their stars (Sheng Qi, Tian Yi, Yan Nian, Fu Wei favorable; Huo Hai, Liu Sha, Wu Gui, Jue Ming unfavorable) and degrees. The year is the lunar year, turning at the lunar New Year in Vietnam time; books that turn it at the Start of Spring differ for births between the two dates (pass lunar_year to follow them).| Parameter | Type | Description |
|---|---|---|
| lunar_year | number | Instead of birth_date: the lunar year of birth. |
luban_rulerRead a length on the Luban rulers used by Vietnamese and Chinese carpenters: the 52.2 cm clear-opening rule (door and window openings), the 42.9 cm Luban rule (solid furniture, plinths, steps) and the 38.8 cm Dinglan rule (altars, graves). Gives the sector and sub-sector, whether the book puts it in the good or bad group, and for a bad length the nearest good lengths below and above. Without ruler, all three.| Parameter | Type | Description |
|---|---|---|
| length * | number | The length to read. |
| ruler | string | One ruler; default all three. |
| unit | string | Default cm. |
lunar_convertConvert a Gregorian date to the lunisolar calendar (lunar year, month, day, leap flag, stem-branch of year, month and day, zodiac animal, solar term), or a lunar date back to Gregorian. Vietnamese calendar (UTC+7) by default; pass country for the Chinese (CN), Korean (KR) or Japanese (JP) calendar, which differ on some days. Vietnam's fourth zodiac animal is the Cat, elsewhere the Rabbit.| Parameter | Type | Description |
|---|---|---|
| direction | string | Default solar_to_lunar. |
| leap | boolean | lunar_to_solar only: the date is in the leap (intercalary) month. |
numerologyPythagorean numerology numbers from a full name and birth date: life path, expression, soul urge, personality, birthday, attitude, maturity, karmic debt, personal year, month and day (for `today`), pinnacles, challenges and the birth-date grid. Master numbers 11, 22, 33 are kept; Vietnamese diacritics are folded. Pass today for a reproducible personal year. Returns a markdown summary, then compact JSON.| Parameter | Type | Description |
|---|---|---|
| name * | string | Full name. |
render_chart_svgDraw a Zi Wei Dou Shu chart, a BaZi chart or a numerology profile as a self-contained SVG string (no external fonts or images). Takes the same inputs as cast_ziwei, cast_bazi or numerology. Save it to a .svg file or show it to the user.| Parameter | Type | Description |
|---|---|---|
| hour_branch | number | |
| kind * | string | ziwei, bazi or numerology ("zi_wei" is accepted as an older name of ziwei). |
| name | string | zi_wei, bazi (printed), numerology (required). |
| theme | string |
six_lines_chartA Six Lines (Liu Yao, najia) chart of a cast for a date (1900 to 2100): primary and changed hexagram, moving lines, and for each line its stem and branch, element, six relation by the palace element, six spirit by the day stem, world and response, void (empty in the day's decade), seasonal state under the month branch and month break. The month is the BaZi month pillar at noon Vietnam time. Pass the six line values of a cast, bottom line first (6 old yin and 9 old yang are moving, 7 young yang, 8 young yin); without lines the server tosses three coins six times (random).| Parameter | Type | Description |
|---|---|---|
| lines | array | Six line values 6 to 9, bottom line first. Omit for a random three-coin cast. |
solar_termsThe 24 solar terms (tiết khí, 节气) of a Gregorian year with local date and time to the minute, in the time zone of country (Vietnam UTC+7 by default). Against IMCCE ephemerides the mean error is about 4 minutes, at most about 15 minutes.| Parameter | Type | Description |
|---|---|---|
| year * | number |
Security checks
6 checks have not been run yet.