Offline Bazi (八字, Four Pillars) chart: True Solar Time, Ten Gods, Shen Sha, luck pillars.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
English | 繁體中文
A Model Context Protocol server that computes a full Chinese Bazi (八字, Four Pillars of Destiny) chart from a birth date, time, and place.
It wraps the same calculation engine that powers freebazi.com: an offline engine that corrects for True Solar Time and historical daylight saving, and is cross-validated against established Bazi libraries. No API key, no network calls, everything runs locally.
Give it a birth moment and a city, and compute_bazi_chart returns:
Requires Node.js 18+.
Run directly with npx:
Add to your claude_desktop_config.json:
Other MCP clients (Cline, Continue, Cursor, etc.) take the same command / args.
compute_bazi_chartCompute a full chart.
| Argument | Type | Notes |
|---|---|---|
year, month, day | number | Birth date |
hour, minute | number | Local clock time as recorded (omit if timeUnknown) |
gender | "male" | "female" | Needed for luck-pillar direction |
city | string | e.g. "Taipei", "New York". Resolved to longitude + time zone for True Solar Time |
longitude, utcOffset | number | Alternative to city |
timeUnknown | boolean | Hour pillar becomes tentative |
trueSolarTime | boolean | Default true |
dayRule | "zi23" | "midnight" | Day boundary, default 23:00 |
yearRule | "lichun" | "cny" | Year boundary, default Li Chun |
search_citiesSearch about 490 major world cities by English or Chinese name. Returns each match's country, longitude, and IANA time zone, so you can pass an exact city to compute_bazi_chart.
Compute the Bazi chart for someone born 15 June 1990, 9:30 AM, in New York.
The server resolves New York, applies True Solar Time (9:30 AM becomes 8:34 AM, 56 minutes earlier, which shifts the Hour pillar), and returns the four pillars 庚午 壬午 辛亥 壬辰 with a Xin (辛) yin Metal Day Master, all Ten Gods, elements, luck pillars, and more.
Solar-term boundaries are computed from the sun's apparent longitude with standard astronomical formulas, and time zones (including historical daylight saving) are resolved from the IANA database. The engine's four pillars match established libraries character for character across thousands of test charts.
Bazi is a traditional framework for reflection on temperament, tendencies, and timing. This tool describes a chart; it does not predict events.
City data from GeoNames (CC BY 4.0). Simplified to Traditional conversion via OpenCC.
MIT
一個 Model Context Protocol 伺服器,依出生的日期、時間與地點,排出完整的八字(四柱)命盤。
它使用與 freebazi.com 相同的排盤引擎:完全離線,會校正真太陽時與歷史上的日光節約時間,並和主流八字程式庫逐字對拍。無需 API key、不連網,全部在本機執行。
給它一個出生時刻與城市,compute_bazi_chart 會回傳:
需要 Node.js 18+。直接以 npx 執行:
Claude Desktop 及其他 MCP 客戶端(Cline、Continue、Cursor 等)的設定與上方英文段相同。
compute_bazi_chart:排出完整命盤,參數見上方英文表格。search_cities:以中文或英文搜尋約 490 個世界主要城市,回傳國家、經度與 IANA 時區,方便傳給 compute_bazi_chart。八字是一套用於反思性格、傾向與時機的傳統框架。本工具只描述命盤,不預測具體事件。
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/freebazi)<a href="https://allmcps.com/mcp/freebazi"><img src="https://allmcps.com/api/badge/freebazi?style=directory" alt="Freebazi on AllMCPs" /></a>