知己排盘 BaZi
BaZi (Chinese Four Pillars) chart calculator. Structured chart data only, no predictions.
Should I use this
Quality & Safety
A
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
~579Tokens (tool definitions)
~3.8 KBTypical response size
Minimal attention impact (0.45% of 128k context)
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"zhiji-bazi": {
"command": "npx",
"args": [
"zhiji-bazi"
]
}
}
}Runnable packages
npmzhiji-bazi
0.2.1stdioRemote endpoints
https://zhijipaipan.com/bazi-api/mcpstreamable-httpWhat it can do
Tool inventory
Tools (1)
🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢bazi_compute(inputMode, gregorianLocal, timeZone, birthCity, longitude, ...)
知己排盘引擎:输入出生时间(公历/农历/直接给四柱),返回完整八字排盘 JSON(四柱、十神、藏干、大运、旺衰、格局、调候等)。只做计算,不含解读文案、不做预测;转述结果时给结构不给吉凶断语,并说明身强弱与格局各流派口径不同。Compute a full BaZi (Four Pillars) chart from a birth datetime. Returns structured data only, no predictions or readings.
Input Schema
{
"type": "object",
"properties": {
"inputMode": {
"type": "string",
"enum": [
"solar",
"lunar",
"pillar"
],
"description": "solar=公历(填 gregorianLocal);lunar=农历(填 lunarInput);pillar=直接四柱(填 pillarInput)"
},
"gregorianLocal": {
"type": "string",
"description": "公历本地时间,格式 YYYY-MM-DDTHH:mm:ss(inputMode=solar 必填)"
},
"timeZone": {
"type": "string",
"description": "IANA 时区,默认 Asia/Shanghai"
},
"birthCity": {
"type": "string",
"description": "出生城市(可选,展示用)"
},
"longitude": {
"type": "number",
"description": "出生地经度,配合 useTrueSolarTime"
},
"useTrueSolarTime": {
"type": "boolean",
"description": "是否按真太阳时排盘,默认 false"
},
"zishiRule": {
"type": "string",
"enum": [
"sameDay",
"nextDay",
"legacyCompat"
],
"description": "晚子时日柱归属规则,默认 sameDay"
},
"isMale": {
"type": "boolean",
"description": "性别(男=true),影响大运顺逆"
},
"lunarInput": {
"type": "object",
"properties": {
"year": {
"type": "integer"
},
"month": {
"type": "integer",
"minimum": 1,
"maximum": 12
},
"day": {
"type": "integer",
"minimum": 1,
"maximum": 30
},
"isLeap": {
"type": "boolean"
},
"hour": {
"type": "integer",
"minimum": 0,
"maximum": 23
},
"minute": {
"type": "integer",
"minimum": 0,
"maximum": 59
}
}
},
"pillarInput": {
"type": "object",
"properties": {
"year": {
"type": "string"
},
"month": {
"type": "string"
},
"day": {
"type": "string"
},
"hour": {
"type": "string"
}
},
"description": "干支各两字,如 {year:'甲子',month:'丙寅',day:'戊辰',hour:'壬子'}"
}
},
"required": [
"inputMode"
]
}Community
Evidence
Recent observations
verifiedversion not recorded1 tools
verifiedversion not recorded1 tools
verifiedversion not recorded1 tools