OpenFate Bazi MCP

v0.5.0
io.github.openfate-ai/bazi-mcp Checked 7 hours ago Published 7 days ago

OpenFate Bazi MCP with True Solar Time, Four Pillars, Da Yun, and branch interactions.

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

calculate_bazi_chart Calculate Bazi Chart

Calculate a deterministic OpenFate Bazi/Four Pillars chart with True Solar Time correction, Day Master, DAYUN_SECOND_V2 onset receipts, Da Yun cycles, and branch interactions. Pass an exact birth time plus timezone or timezoneId for a calculated V2 onset; otherwise inspect the explicit unavailable/fallback receipt.

ParameterTypeDescription
day *integerBirth day, 1-31.
gender *stringBirth gender used for Da Yun direction.
month *integerBirth month, 1-12.
year *integerBirth year. Use the lunar year when calendarType is lunar.
calendarTypestringInput calendar type.
dayBoundaryModestringDay-change rule. ZI_HOUR_23 means 23:00 starts the next day pillar.
dstOffsetnumberDaylight saving offset in hours to remove from civil clock time. Use 1 for one-hour DST.
enableTrueSolarTimebooleanApply true solar time when longitude and timezone data are available.
hourintegerBirth hour in local civil time, 0-23. Omit when birth time is unknown.
isLeapMonthbooleanWhether the lunar input month is a leap month. Used only when calendarType is lunar.
longitudenumberBirthplace longitude in decimal degrees. Enables true solar time correction.
minuteintegerBirth minute in local civil time.
secondintegerBirth second in local civil time.
timezonenumberUTC offset in hours for the birth clock time, such as 8 for China or -5 for US Eastern Standard Time.
timezoneIdstringOptional IANA timezone ID, such as Asia/Shanghai or America/New_York.

read_bazi_relationship Read a Bazi Relationship Chapter

Produce a deterministic Traditional Chinese relationship chapter with the chart, rule ID, rule version and evidence pointers. Uses only natal positions. An unknown birth hour returns an explicitly unavailable chapter.

ParameterTypeDescription
day *integerBirth day, 1-31.
gender *stringBirth gender used for Da Yun direction.
month *integerBirth month, 1-12.
year *integerBirth year. Use the lunar year when calendarType is lunar.
calendarTypestringInput calendar type.
dayBoundaryModestringDay-change rule. ZI_HOUR_23 means 23:00 starts the next day pillar.
dstOffsetnumberDaylight saving offset in hours to remove from civil clock time. Use 1 for one-hour DST.
enableTrueSolarTimebooleanApply true solar time when longitude and timezone data are available.
hourintegerBirth hour in local civil time, 0-23. Omit when birth time is unknown.
isLeapMonthbooleanWhether the lunar input month is a leap month. Used only when calendarType is lunar.
longitudenumberBirthplace longitude in decimal degrees. Enables true solar time correction.
minuteintegerBirth minute in local civil time.
secondintegerBirth second in local civil time.
timezonenumberUTC offset in hours for the birth clock time, such as 8 for China or -5 for US Eastern Standard Time.
timezoneIdstringOptional IANA timezone ID, such as Asia/Shanghai or America/New_York.

read_bazi_corpus_chapter Read a Published Corpus Chapter

Read one of the 13 Traditional Chinese chapters for a public sample ID in corpus v2.1.0. Use two calls to compare hours. Chapter parts cite paths relative to data.chart.

ParameterTypeDescription
sampleId *stringCanonical sample ID, e.g. 1991-10-18T08:30:00+08:00/female. Even hours at :30, UTC+8, from 1900-01-01 to 2026-11-22.
topic *stringChapter key, e.g. work, money or love.

detect_bazi_interactions Detect Bazi Interactions

Detect raw Earthly Branch relationship occurrences for a natal chart and optional annual and Da Yun branches. Preserves every matching pillar position, including repeated branches. Covers clashes, six-combinations, the eight central-branch half-trines (COMBINATION_HALF), full trines, directionals, punishments, destructions, and harms. Results establish relationship presence, not weights, cancellation, or automatic transformation; targetElement is an affinity, not transformed energy.

ParameterTypeDescription
dayBranch *stringNatal day branch.
monthBranch *stringNatal month branch.
yearBranch *stringNatal year branch.
annualBranchstringOptional annual or target branch. Preserved as the annual pillar role, independently of repeated natal branches.
dayunBranchstringOptional Da Yun branch. Preserved as the dayun pillar role, independently of the annual and natal branches.
hourBranchstringNatal hour branch. Omit when birth time is unknown.

calculate_true_solar_time Calculate True Solar Time

Calculate 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.

ParameterTypeDescription
day *integer
hour *integer
longitude *numberBirthplace longitude in decimal degrees.
month *integer
year *integer
dstOffsetnumberDaylight saving offset in hours.
minuteinteger
timezonenumberUTC offset in hours for the clock time.
timezoneIdstringIANA timezone ID, such as Asia/Shanghai.

reverse_bazi_to_solar_times Reverse Bazi To Solar Times

Find 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.

ParameterTypeDescription
bazi *stringFour pillars separated by spaces, for example: 戊寅 己未 己卯 辛未.
dayBoundaryModestringDay-change rule used during lookup.
endYearintegerEnd year for brute-force lookup. Defaults to the current year.
limitintegerMaximum number of matching datetimes to return.
startYearintegerStart year for brute-force lookup.

get_openfate_bazi_policy Get OpenFate Bazi Policy

Return OpenFate calculation policy and LLM guidance for Bazi chart calls.

get_openfate_bazi_resources Get OpenFate Bazi Resources

Return canonical OpenFate URLs for charting, readings, compatibility, wealth, true solar time, and AI crawler metadata.