Server data from the Official MCP Registry
Free Qimen Dunjia and BaZi charts via MCP - deterministic engine, nine palaces and four pillars.
About
Free Qimen Dunjia and BaZi charts via MCP - deterministic engine, nine palaces and four pillars.
Remote endpoints: streamable-http: https://qimenseek.aicreditsapi.com/mcp
Security Report
Valid MCP server (1 strong, 0 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.
Endpoint verified · Open access · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Found in Source Code
Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.
How to Connect
Remote Plugin
No local installation needed. Your AI client connects to the remote endpoint directly.
Add this to your MCP configuration to connect:
{
"mcpServers": {
"io-github-wyl743405571-cpu-qimen-dunjia-engine": {
"url": "https://qimenseek.aicreditsapi.com/mcp"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
qimen-dunjia-engine
Qimen Dunjia (奇门遁甲) chart calculation engine for Node.js — deterministic, no AI/LLM dependency, pure calculation.
时家转盘法 · 置闰符头定元 · 值使独立转门
实测数据(每一条都可复现,脚本在
verify/):44,064 次全量遍历崩溃 0、不变式违反 0;41 种格局零命中盘 0%、无恒真规则、无死规则;拆补 vs 置闰分歧率 41.6%;两批书载案例审计(142 例与 79 例,各自独立口径,不可混算)。
Why this engine
Most open-source Qimen libraries cut corners. This one implements the classical mainstream ruleset faithfully:
| Rule | Common shortcut in other libraries | This engine |
|---|---|---|
| Zhirun (置闰) ju determination | ~5-day bucket approximation | Futou-based: solar-term attribution decided by the futou day (上元符头 = 甲子/甲午/己卯/己酉) |
| Zhi-Shi door (值使门) | Falls into the same palace as Zhi-Fu star (skipped rotation) | Rotates independently from the hour-stem position in the xun |
| Rotating plate paths | Linear palace order 1-9 | Plate palace order [1,8,3,4,9,2,7,6] |
| Validation | Spot checks at best | 44,064-chart sweep, 0 crashes, 5 invariants enforced — verify/ |
Features
- Hour-based rotating-plate method (时家转盘), Chabu (拆补), Zhirun (置闰) and Shen Jie Qi (超神接气) determination
- Full plate: earth plate (地盘), heaven plate (天盘), 9 stars (九星), 8 doors (八门), 8 gods (八神), hidden stems (遁干)
- Formation detection (格局): 41 formations detected in real computation — Fu-Yin (伏吟), Fan-Yin (反吟), 门迫, 击刑, 入墓, 青龙返首, 飞鸟跌穴, 玉女守门, 三奇得使, 十干克应 combinations, and more
- Horse palace (马星), void branches (旬空), year/month stems lodging
- Four-pillar (干支) calculation for year/month/day/hour via lunar-javascript
- Zero network, zero AI — same numbers every run
Install
# Install straight from GitHub (npm supports this natively)
npm install github:wyl743405571-cpu/qimen-dunjia-engine
# Or clone + install
git clone https://github.com/wyl743405571-cpu/qimen-dunjia-engine.git
cd qimen-dunjia-engine && npm install
# npm registry package: coming soon
Usage
const qimen = require('qimen-dunjia-engine');
// year, month, day, hour, minute, method: 'zhirun' | 'chaibu' | 'shenjieqi'
const chart = qimen.paipan(2026, 6, 7, 11, 0, 'zhirun');
console.log(chart.juNum); // 6 (Yang Dun 6)
console.log(chart.isYang); // true
console.log(chart.zhiFuXing); // 天蓬 — Zhi-Fu star
console.log(chart.zhiFuGong); // 4
console.log(chart.zhiShiMen); // 休门 — Zhi-Shi door (independently rotated)
console.log(chart.zhiShiGong); // 3
console.log(chart.dp); // earth plate stems, keyed by palace 1-9
console.log(chart.tp); // heaven plate stems
console.log(chart.xing); // 9 stars by palace
console.log(chart.men); // 8 doors by palace
console.log(chart.shen); // 8 gods by palace
console.log(chart.geju); // detected formations [{name, level, gong, detail}]
console.log(chart.maGong); // horse palace
console.log(chart.kong); // void branches, e.g. ['寅','卯']
console.log(chart.ygz); // four pillars: year/month/day/hour ganzhi
See examples/basic.js for a runnable demo that prints a full nine-palace grid.
Output reference
| Field | Meaning |
|---|---|
juNum / isYang | Ju number (1–9) and Yin/Yang dun |
method | zhirun / chaibu / shenjieqi |
xun / kong / kongGongs | Hour xun, void branches, void palaces |
zhiFuXing / zhiFuGong | Zhi-Fu star and its palace |
zhiShiMen / zhiShiGong | Zhi-Shi door and its palace |
dp / tp | Earth / heaven plate stems by palace |
xing / men / shen | Stars / doors / gods by palace |
dunGan | Hidden stems (遁干) |
geju | Detected formations with auspicious/inauspicious level |
maGong | Horse palace (驿马) |
ygz / mgz / dgz / hgz | Year / month / day / hour pillars |
Scope
This package computes charts only. Interpretation, judgment rules (用神/断法), and case libraries are not included — those are product-layer assets of QiMenSeek.
The engine is流派-aware in one dimension: it implements the mainstream hour-based rotating-plate tradition (时家转盘). It does not compute flying-plate (飞盘) charts.
Test & Verification
npm test # 3 known-good snapshot charts + plate-structure invariants
That only covers three sample charts. For real numbers, run the measurement suite — every figure quoted in this README comes from these scripts, and you will get the same output on your own machine:
node verify/sweep_coverage_v2.js 2000 2050 # 44,064 charts: 0 crashes, 0 invariant violations
node verify/measure_divergence.js 30# 12,960 moments: 41.6% of charts differ between Chaibu/Zhirun
node verify/measure_geju.js 10 # 41 formations, 0% zero-hit charts, no dead rules
node verify/audit_book_cases.js # 142-case classical library audit
node verify/audit_book_cases_v2.js # 79-case 1990s casebook audit (incl. Shen Jie Qi mode)
See verify/README.md for what each script proves, what it does
not prove, and the measurement traps we hit while writing them.
Known limitation we do not hide
The 142-case classical library (verify/book_case_library_tagged.json, 95.8% with page
citations) reproduces the book-stated ju number 64.9% of the time under Chaibu
(63/97 testable) vs 42.6% under Zhirun (40/94). Only 51 of 142 cases carry an
expected verdict, and 45 of those are OCR-extracted and still flagged needsReview.
So: use the library for regression exploration, not as an accuracy claim.
The second, independent library (verify/book499_case_library.json, 79 testable cases
from a 1990s casebook) reproduces the book-stated ju 82.3% under Chaibu (65/79) and
91.1% under the Shen Jie Qi mode (72/79). Note what that mode is: it is fitted from
this casebook's own data — it explains this book, it does not claim to be "more
classical". The default remains Chaibu. Five boundary cases stay unexplained, listed by
the script itself. The two libraries never mix: different books, different denominators.
Live tools
- Free online calculator: https://qimenseek.aicreditsapi.com/calculator.html
- Today's chart + daily verse: https://qimenseek.aicreditsapi.com/daily.html
- Published charting ruleset (口径公开): https://qimenseek.aicreditsapi.com/ruleset.html
- Measured school divergence report: https://qimenseek.aicreditsapi.com/divergence
- 8 real readings produced by this engine: https://qimenseek.aicreditsapi.com/cases
- MCP endpoint (Claude/Cursor): https://qimenseek.aicreditsapi.com/mcp · docs: https://qimenseek.aicreditsapi.com/mcp.html · local stdio server: mcp/README.md
End-user guides & articles
For people facing real decisions — not just developers — these plain-language guides explain the system (no mysticism, full reasoning, every claim sourced to your chart's symbols) and link back to the free tools:
- Why we translate Qi Men Dun Jia into a "space-time decision system"
- Does Co-Star "work"? A Qi Men Dun Jia perspective
Index: articles/README.md
License
MIT
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Fetch
Freeby Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
