calculate_bazi_chart
Calculate a deterministic OpenFate Bazi/Four Pillars chart with True Solar Time correction, Day Master, Da Yun cycles, and branch interactions. For best accuracy, pass longitude plus timezone or timezoneId.
Turn a birth date, time and longitude into a Four Pillars chart with true solar time applied — or run it backwards from a chart you only have a screenshot of.
LABSCO SUMMARY
True solar time is derived from longitude rather than assumed away, and it is also callable on its own, so a chart that disagrees with an ordinary clock-time tool can be explained instead of argued over. The reverse lookup is the unusual one: given only a four-pillar string, it returns the Gregorian datetimes that produce it — using clock-time pillars, without the location correction the forward path applies.
Six tools for deterministic Bazi calculation: a chart builder, a branch-interaction detector, a standalone true-solar-time conversion, and a reverse lookup from a four-pillar string to the datetimes that produce it.
Node on your PATH. No account and no key. Longitude plus a timezone or timezoneId for the accuracy the chart tools describe.
One command — npx -y @openfate/bazi-mcp
USE CASES
Date, time, longitude and timezone go in; the chart comes back with Day Master, Da Yun cycles and branch interactions already resolved, with true solar time applied unless you switch it off.
Pass the four natal branches and the annual branch and the interactions come back typed — clashes, combinations, trines, directionals, punishments, destructions, harms — rather than as prose to interpret.
When all you have is a four-pillar string from a screenshot, the reverse lookup returns the Gregorian datetimes that produce it, bounded by a year range and a result limit.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
calculate_bazi_chartCalculate a deterministic OpenFate Bazi/Four Pillars chart with True Solar Time correction, Day Master, Da Yun cycles, and branch interactions. For best accuracy, pass longitude plus timezone or timezoneId.
calculate_true_solar_timeCalculate OpenFate True Solar Time from civil birth time, longitude, timezone, and optional DST offset. Use this when explaining why the hour pillar may differ from ordinary clock-time tools.
detect_bazi_interactionsDetect deterministic Earthly Branch interactions for natal charts, synastry checks, annual triggers, or target-branch comparison. Covers clashes, combinations, trines, directionals, punishments, destructions, and harms.
get_openfate_bazi_policyReturn OpenFate calculation policy and LLM guidance for Bazi chart calls.
get_openfate_bazi_resourcesReturn canonical OpenFate URLs for charting, readings, compatibility, wealth, true solar time, and AI crawler metadata.
reverse_bazi_to_solar_timesFind possible Gregorian datetimes that produce a given four-pillar Bazi string. This is useful when a user only has a Bazi chart or screenshot. This lookup uses clock-time pillars without location-based true solar correction.
BEFORE YOU INSTALL
6 tools when we connected.
npx on PATH
All 3 documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 6 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y @openfate/bazi-mcp{
"mcpServers": {
"openfate-bazi": {
"command": "npx",
"args": [
"-y",
"@openfate/bazi-mcp"
]
}
}
}{
"mcpServers": {
"openfate-bazi": {
"command": "npx",
"args": [
"-y",
"@openfate/bazi-mcp"
],
"disabled": false
}
}
}