Listed from the MCP registry; nobody on Odel publishes it.
Deterministic BaZi Four Pillars calculation with true solar time and solar terms.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y bazi-four-pillars-mcp
MCP client config
{
"mcpServers": {
"bazi-four-pillars-mcp": {
"command": "npx",
"args": [
"-y",
"bazi-four-pillars-mcp"
]
}
}
}An MCP server for deterministic BaZi (八字) Four Pillars calculation from a local date, time, IANA timezone, and longitude.
Built for transparent calendrical and software workflows that need year, month, day, and hour pillars without address geocoding, gender-dependent luck cycles, stored birth data, or automated interpretation.
calculate_four_pillarsInput:
{
"date": "1990-05-20",
"time": "14:30",
"timezone": "Asia/Shanghai",
"longitude": 104.0668,
"latitude": 30.5728
}
The calculation uses:
The result contains the year, month, day, and hour pillars, stem and branch elements, yin-yang labels, Day Master, time correction details, nearby solar-term information, warnings, and provenance.
Run directly from npm:
npx -y bazi-four-pillars-mcp
Or inspect and build from source:
git clone https://github.com/cdaily1995-create/four-pillars-mcp.git
cd four-pillars-mcp
pnpm install
pnpm build
node dist/server.js
MCP client configuration:
{
"mcpServers": {
"four-pillars": {
"command": "npx",
"args": ["-y", "bazi-four-pillars-mcp"]
}
}
}
calculate_four_pillars {
"date": "2005-12-23",
"time": "08:37",
"timezone": "Asia/Shanghai",
"longitude": 121.4737,
"latitude": 31.2304
}
The response contains the four pillar names, stem and branch elements, yin-yang labels, Day Master, true-solar correction details, nearby solar-term information, warnings, and engine/rules versions.
| Field | Required | Description |
|---|---|---|
date | yes | Local civil date in YYYY-MM-DD. |
time | yes | Local civil time in HH:mm. |
timezone | yes | IANA identifier such as Asia/Shanghai or America/Los_Angeles. |
longitude | yes | Decimal degrees, east positive, from -180 to 180. |
latitude | no | Decimal degrees, from -90 to 90; retained for traceability. |
This project is a Four Pillars of Destiny calculator for BaZi birth-chart normalization. It provides reproducible year, month, day, and hour pillars from date, time, timezone, and longitude, including true solar time and solar-term handling. It is intended for calendrical and software workflows that need transparent calculation facts rather than automated fortune-telling claims.
The server accepts coordinates and time-zone identifiers only. There is no address search, analytics, database, account, payment, or remote API requirement. Results are calculated locally by the process running the MCP server.
Traditional BaZi meanings are culturally interpretive and are not presented here as scientific proof, diagnosis, or guaranteed prediction.
MIT