Deterministic Chinese BaZi (Four Pillars) astrology MCP server with true solar time correction.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Calculate a BaZi Four Pillars chart from birth data. The engine applies the true solar time correction (birthplace legal timezone, including historical DST, plus longitude) and returns the four pillars with ten gods, day master element and zodiac. Never compute pillars from memory — call this.
Birth data collected from the user, usually via request_form with a "birth" field.
Id of a chart the signed-in user already saved (from list_my_charts or the page context). Prefer this when available.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http bazi-mcp https://www.bazi-lab.com/mcp
Calculate a BaZi Four Pillars chart from birth data. The engine applies the true solar time correction (birthplace legal timezone, including historical DST, plus longitude) and returns the four pillars with ten gods, day master element and zodiac. Never compute pillars from memory — call this.
| Argument | Type | Description |
|---|---|---|
| birth | object | Birth data collected from the user, usually via request_form with a "birth" field. |
| chartId | string | Id of a chart the signed-in user already saved (from list_my_charts or the page context). Prefer this when available. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"birth": {
"type": "object",
"required": [
"birthYear",
"birthMonth",
"birthDay",
"gender"
],
"properties": {
"gender": {
"enum": [
"male",
"female"
],
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "ISO 3166-1 alpha-2 code of the birthplace, e.g. CN. It decides the legal time zone and daylight saving used for true solar time, so pass it whenever the birthplace is known."
},
"birthDay": {
"type": "integer",
"maximum": 31,
"minimum": 1
},
"location": {
"type": "string",
"maxLength": 80
},
"timezone": {
"type": "string",
"description": "IANA time zone of the birthplace, e.g. Asia/Shanghai. Optional when country is given."
},
"userName": {
"type": "string",
"maxLength": 40
},
"birthHour": {
"type": "integer",
"default": 12,
"maximum": 23,
"minimum": 0
},
"birthYear": {
"type": "integer",
"maximum": 2100,
"minimum": 1900
},
"longitude": {
"type": "number",
"default": 120,
"maximum": 180,
"minimum": -180,
"description": "Birthplace longitude in degrees, east positive. Pass it whenever the birthplace is known."
},
"birthMonth": {
"type": "integer",
"maximum": 12,
"minimum": 1
},
"birthMinute": {
"type": "integer",
"default": 0,
"maximum": 59,
"minimum": 0
},
"hourUnknown": {
"type": "boolean"
},
"calendarType": {
"enum": [
"solar",
"lunar"
],
"type": "string",
"default": "solar"
}
},
"description": "Birth data collected from the user, usually via request_form with a \"birth\" field."
},
"chartId": {
"type": "string",
"description": "Id of a chart the signed-in user already saved (from list_my_charts or the page context). Prefer this when available."
}
}
}Chinese almanac for a date range: day pillar, lunar date and the do (宜) / avoid (忌) lists. For "which day is good for X", pass activity as an almanac term, e.g. 移徙/入宅 (moving house), 嫁娶 (wedding), 开市 (opening a business), 立券/交易 (signing contracts). Max 31 days per call.
| Argument | Type | Description |
|---|---|---|
| days | integer | |
| activity | string | |
| startDate* | string | YYYY-MM-DD |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"startDate"
],
"properties": {
"days": {
"type": "integer",
"default": 1,
"maximum": 31,
"minimum": 1
},
"activity": {
"type": "string",
"maxLength": 8
},
"startDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "YYYY-MM-DD"
}
}
}Year-by-year life trajectory for roughly 96 years: one OHLC candle per year on a fixed 0-100 scale (open/close from the year first/last flow month, high/low from all twelve), deterministic and comparable across people. Same input as calculate_chart.
| Argument | Type | Description |
|---|---|---|
| birth* | object | Birth data: gender; calendarType (solar/lunar, default solar); birthYear/birthMonth/birthDay; birthHour/birthMinute (0 if unknown); location and country (or timezone) so the engine can apply the true solar time correction of the birthplace. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"birth"
],
"properties": {
"birth": {
"type": "object",
"required": [
"birthYear",
"birthMonth",
"birthDay",
"gender"
],
"properties": {
"gender": {
"enum": [
"male",
"female"
],
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "ISO 3166-1 alpha-2 code of the birthplace, e.g. CN. It decides the legal time zone and daylight saving used for true solar time, so pass it whenever the birthplace is known."
},
"birthDay": {
"type": "integer",
"maximum": 31,
"minimum": 1
},
"location": {
"type": "string",
"maxLength": 80
},
"timezone": {
"type": "string",
"description": "IANA time zone of the birthplace, e.g. Asia/Shanghai. Optional when country is given."
},
"userName": {
"type": "string",
"maxLength": 40
},
"birthHour": {
"type": "integer",
"default": 12,
"maximum": 23,
"minimum": 0
},
"birthYear": {
"type": "integer",
"maximum": 2100,
"minimum": 1900
},
"longitude": {
"type": "number",
"default": 120,
"maximum": 180,
"minimum": -180,
"description": "Birthplace longitude in degrees, east positive. Pass it whenever the birthplace is known."
},
"birthMonth": {
"type": "integer",
"maximum": 12,
"minimum": 1
},
"birthMinute": {
"type": "integer",
"default": 0,
"maximum": 59,
"minimum": 0
},
"hourUnknown": {
"type": "boolean"
},
"calendarType": {
"enum": [
"solar",
"lunar"
],
"type": "string",
"default": "solar"
}
},
"description": "Birth data: gender; calendarType (solar/lunar, default solar); birthYear/birthMonth/birthDay; birthHour/birthMinute (0 if unknown); location and country (or timezone) so the engine can apply the true solar time correction of the birthplace."
}
}
}Compute the ten 10-year luck pillars (大运): direction, start age, day-master strength with favourable/unfavourable elements, and the best and worst years on a fixed 0-100 scale. Use for any question about timing, luck cycles, good or bad years.
| Argument | Type | Description |
|---|---|---|
| birth | object | Birth data collected from the user, usually via request_form with a "birth" field. |
| chartId | string | Id of a chart the signed-in user already saved (from list_my_charts or the page context). Prefer this when available. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"birth": {
"type": "object",
"required": [
"birthYear",
"birthMonth",
"birthDay",
"gender"
],
"properties": {
"gender": {
"enum": [
"male",
"female"
],
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "ISO 3166-1 alpha-2 code of the birthplace, e.g. CN. It decides the legal time zone and daylight saving used for true solar time, so pass it whenever the birthplace is known."
},
"birthDay": {
"type": "integer",
"maximum": 31,
"minimum": 1
},
"location": {
"type": "string",
"maxLength": 80
},
"timezone": {
"type": "string",
"description": "IANA time zone of the birthplace, e.g. Asia/Shanghai. Optional when country is given."
},
"userName": {
"type": "string",
"maxLength": 40
},
"birthHour": {
"type": "integer",
"default": 12,
"maximum": 23,
"minimum": 0
},
"birthYear": {
"type": "integer",
"maximum": 2100,
"minimum": 1900
},
"longitude": {
"type": "number",
"default": 120,
"maximum": 180,
"minimum": -180,
"description": "Birthplace longitude in degrees, east positive. Pass it whenever the birthplace is known."
},
"birthMonth": {
"type": "integer",
"maximum": 12,
"minimum": 1
},
"birthMinute": {
"type": "integer",
"default": 0,
"maximum": 59,
"minimum": 0
},
"hourUnknown": {
"type": "boolean"
},
"calendarType": {
"enum": [
"solar",
"lunar"
],
"type": "string",
"default": "solar"
}
},
"description": "Birth data collected from the user, usually via request_form with a \"birth\" field."
},
"chartId": {
"type": "string",
"description": "Id of a chart the signed-in user already saved (from list_my_charts or the page context). Prefer this when available."
}
}
}Score love compatibility (0-100) between two people: their year-branch relation (six harmony, triple harmony, clash, harm) and the two day masters. Call once with both birth datasets.
| Argument | Type | Description |
|---|---|---|
| personA* | object | The first person. |
| personB* | object | The second person. |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"personA",
"personB"
],
"properties": {
"personA": {
"type": "object",
"properties": {
"birth": {
"type": "object",
"required": [
"birthYear",
"birthMonth",
"birthDay",
"gender"
],
"properties": {
"gender": {
"enum": [
"male",
"female"
],
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "ISO 3166-1 alpha-2 code of the birthplace, e.g. CN. It decides the legal time zone and daylight saving used for true solar time, so pass it whenever the birthplace is known."
},
"birthDay": {
"type": "integer",
"maximum": 31,
"minimum": 1
},
"location": {
"type": "string",
"maxLength": 80
},
"timezone": {
"type": "string",
"description": "IANA time zone of the birthplace, e.g. Asia/Shanghai. Optional when country is given."
},
"userName": {
"type": "string",
"maxLength": 40
},
"birthHour": {
"type": "integer",
"default": 12,
"maximum": 23,
"minimum": 0
},
"birthYear": {
"type": "integer",
"maximum": 2100,
"minimum": 1900
},
"longitude": {
"type": "number",
"default": 120,
"maximum": 180,
"minimum": -180,
"description": "Birthplace longitude in degrees, east positive. Pass it whenever the birthplace is known."
},
"birthMonth": {
"type": "integer",
"maximum": 12,
"minimum": 1
},
"birthMinute": {
"type": "integer",
"default": 0,
"maximum": 59,
"minimum": 0
},
"hourUnknown": {
"type": "boolean"
},
"calendarType": {
"enum": [
"solar",
"lunar"
],
"type": "string",
"default": "solar"
}
},
"description": "Birth data collected from the user, usually via request_form with a \"birth\" field."
},
"chartId": {
"type": "string",
"description": "Id of a chart the signed-in user already saved (from list_my_charts or the page context). Prefer this when available."
}
},
"description": "The first person."
},
"personB": {
"type": "object",
"properties": {
"birth": {
"type": "object",
"required": [
"birthYear",
"birthMonth",
"birthDay",
"gender"
],
"properties": {
"gender": {
"enum": [
"male",
"female"
],
"type": "string"
},
"country": {
"type": "string",
"pattern": "^[A-Za-z]{2}$",
"description": "ISO 3166-1 alpha-2 code of the birthplace, e.g. CN. It decides the legal time zone and daylight saving used for true solar time, so pass it whenever the birthplace is known."
},
"birthDay": {
"type": "integer",
"maximum": 31,
"minimum": 1
},
"location": {
"type": "string",
"maxLength": 80
},
"timezone": {
"type": "string",
"description": "IANA time zone of the birthplace, e.g. Asia/Shanghai. Optional when country is given."
},
"userName": {
"type": "string",
"maxLength": 40
},
"birthHour": {
"type": "integer",
"default": 12,
"maximum": 23,
"minimum": 0
},
"birthYear": {
"type": "integer",
"maximum": 2100,
"minimum": 1900
},
"longitude": {
"type": "number",
"default": 120,
"maximum": 180,
"minimum": -180,
"description": "Birthplace longitude in degrees, east positive. Pass it whenever the birthplace is known."
},
"birthMonth": {
"type": "integer",
"maximum": 12,
"minimum": 1
},
"birthMinute": {
"type": "integer",
"default": 0,
"maximum": 59,
"minimum": 0
},
"hourUnknown": {
"type": "boolean"
},
"calendarType": {
"enum": [
"solar",
"lunar"
],
"type": "string",
"default": "solar"
}
},
"description": "Birth data collected from the user, usually via request_form with a \"birth\" field."
},
"chartId": {
"type": "string",
"description": "Id of a chart the signed-in user already saved (from list_my_charts or the page context). Prefer this when available."
}
},
"description": "The second person."
}
}
}Search BaZi Lab's own bilingual guides — ten gods, true solar time, BaZi basics, luck pillars and blog articles — for concept explanations. Returns excerpts with page URLs; it does not search the web.
| Argument | Type | Description |
|---|---|---|
| query* | string | A short query with the key BaZi terms, in English or Chinese. |
| locale | string |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "A short query with the key BaZi terms, in English or Chinese."
},
"locale": {
"enum": [
"en",
"zh"
],
"type": "string",
"default": "en"
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 30, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.