Qimena Qi Men Dun Jia & BaZi

v1.0.0
io.github.David-rider/qimena-mcp Checked 2 days ago Published 1 month ago

Qi Men Dun Jia charts, BaZi Four Pillars, best-time ranking and solar terms.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

qimen_chart Qi Men Dun Jia chart

Cast an hour-based Qi Men Dun Jia (奇门遁甲) chart for a moment and place: four pillars, ju, Chief Star and Door, and for each of the nine palaces the deity, star, door, heaven/earth/hidden stems, void, horse star, punishment and door pressure, plus detected patterns, palace scores for the chosen focus and the lucky directions.

ParameterTypeDescription
datetimestringLocal wall-clock time "YYYY-MM-DDTHH:mm" in `timezone`. Omit for now.
focusstringWhat the question is about; changes palace scores and lucky directions. Default general.
longitudenumberLongitude of the place in degrees, east positive, west negative. Default: the standard meridian of the time zone.
timezonestringIANA time zone, e.g. "Asia/Shanghai", "America/New_York". Default Asia/Shanghai.

bazi_pillars BaZi Four Pillars

Four Pillars (八字) for a birth moment: converts the clock time with the zone rules for that date (daylight saving included) and the longitude to true solar time; the year follows Li Chun and the day changes at 23:00 true solar time. Returns the pillars, Day Master, five-element counts and the time conversion details.

ParameterTypeDescription
birth_datetime *stringBirth wall-clock time "YYYY-MM-DDTHH:mm", as on the birth certificate.
timezone *stringIANA time zone of the birthplace, e.g. "Asia/Shanghai".
longitudenumberBirthplace longitude, east positive. Default: the standard meridian of the time zone.

best_times Best upcoming double-hours

Cast a Qi Men chart for every double-hour of the next few days and rank them for a goal, using the person's Day Master from the birth date. Returns the top windows with date, hour branch, true-solar-time range, score and the lucky direction at that time.

ParameterTypeDescription
birth_date *stringBirth date "YYYY-MM-DD" (sets the Day Master).
daysintegerHow many days ahead to scan, 1-7. Default 7.
focusstringGoal to rank for. Default general.
longitudenumberLongitude of where the person is now, east positive. Default 120 (Beijing meridian).
topintegerHow many windows to return, 1-10. Default 5.

solar_terms Solar terms of a year

The 24 solar terms (节气) of a calendar year, 1900-2100, with UTC and Beijing-time instants from the same table the charts use (within about a minute of the Hong Kong Observatory).

ParameterTypeDescription
year *integerCalendar year.