OpenFate Bazi MCP
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Use these tools for deterministic Bazi/Four Pillars calculations. Do not manually calculate pillars or Da Yun onset with the language model. Ask for longitude and timezone data when precise true solar time or DAYUN_SECOND_V2 timing matters, and check the Da Yun timing receipt before presenting an exact onset.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| calculate_bazi_chartA | 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. |
| read_bazi_relationshipA | 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. |
| read_bazi_corpus_chapterB | 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. |
| detect_bazi_interactionsA | 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. |
| calculate_true_solar_timeB | 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. |
| reverse_bazi_to_solar_timesA | 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. |
| get_openfate_bazi_policyA | Return OpenFate calculation policy and LLM guidance for Bazi chart calls. |
| get_openfate_bazi_resourcesA | Return canonical OpenFate URLs for charting, readings, compatibility, wealth, true solar time, and AI crawler metadata. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Most tools have clearly distinct purposes: chart calculation, true solar time, branch interactions, reverse lookup, and metadata lookups do not overlap. The main risk is between read_bazi_relationship and read_bazi_corpus_chapter, since both 'read' interpretive chapters and an agent may not immediately know whether relationship content comes from the dedicated tool or the corpus. get_openfate_bazi_policy versus get_openfate_bazi_resources is a smaller potential confusion point, but descriptions distinguish policy guidance from canonical URLs.
All eight names use snake_case with a leading verb (calculate_, read_, detect_, get_, reverse_) followed by a domain noun. The bazi/true_solar_time qualifiers are used predictably to scope names, and even the one asymmetric name, reverse_bazi_to_solar_times, fits the verb-first pattern.
Eight tools is well within the recommended range and each one maps to a distinct capability: core calculation, time correction, interaction detection, reverse lookup, chapter reading, and two metadata helpers. Nothing appears redundant or merely padding the surface.
Core charting lifecycle is well covered: calculate, correct time, detect interactions, reverse-solve pillars, plus interpretive reading and policy/resource lookups. Gaps exist in the reading direction: compatibility/synastry and wealth readings appear only as URLs returned by get_openfate_bazi_resources, with no callable tool for them, and there is no explicit annual/transit reading tool beyond the Da Yun data in the chart.