Qimena Qi Men Dun Jia & BaZi

io.github.David-rider由 GitHub 帳號 David-rider 發布v1.0.0更新於 Nov 2, 2026

Qi Men Dun Jia charts, BaZi Four Pillars, best-time ranking and solar terms. Free, no key.

已驗證Streamable HTTP可網頁執行位置與生活知識與記憶

概覽

AI 產生的概覽

免費託管的 MCP 服務,計算奇門遁甲排盤、八字四柱、最佳時辰排序與二十四節氣,供 AI 助理解讀。

可以做什麼
  • 依時間與地點起時家奇門盤,回傳四柱、局數、九宮各宮資訊、格局、宮位評分與吉方
  • 依出生時間排八字四柱,將鐘錶時間換算為真太陽時,回傳日主與五行數量
  • 把未來 1 至 7 天的每個時辰依目標(事業、財運、感情等)排序,給出評分與吉方
  • 查詢 1900 至 2100 年任一年的二十四節氣時刻,含 UTC 與台北時間
適用情境
適合希望助理依需求產生中式命理排盤與曆法資料的情境,例如為某場會議起奇門盤、查詢自己的八字四柱,或找出某件事的最佳時辰。服務只負責計算,解讀由助理完成。
執行需求
遠端 Streamable HTTP 端點 qimena.com/mcp,不需帳號、API 金鑰或環境變數;部分用戶端需透過 mcp-remote 之類的橋接工具連線。需要網路存取,每個 IP 每分鐘約 60 次請求。
安裝前請注意
送出的出生日期、時間與地點屬於個人資料;README 稱不儲存任何內容,但這些資料會傳送到第三方伺服器。結果屬確定性的文化參考計算,不構成專業建議,解讀由助理自行提供。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Qimena Qi Men Dun Jia & BaZi,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.David-rider%2Fqimena-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "qimena-qi-men-dun-jia-bazi": {
      "type": "http",
      "url": "https://qimena.com/mcp"
    }
  }
}

README

Qimena MCP Server · 天衍奇门 MCP 服务

Free, hosted Model Context Protocol server for Qi Men Dun Jia (奇门遁甲) and BaZi Four Pillars (八字) calculations, from Qimena.

  • Endpoint: https://qimena.com/mcp
  • Transport: Streamable HTTP (stateless)
  • Auth: none, no API key
  • Data: nothing you send is stored
  • Cost: free

The tools are deterministic: the same engine as the qimena.com website, with no AI model behind them. Your assistant does the interpreting; the server does the calendar and chart maths.

This repository holds documentation only. The server runs at qimena.com.

中文说明


Tools

ToolWhat it returns
qimen_chartAn hour-based Qi Men Dun Jia chart for a moment and place: four pillars, ju, Chief Star and Door, and for each of the nine palaces the deity, star, door, heaven/earth/hidden stems, void, horse star, punishment and door pressure, plus patterns, palace scores and lucky directions.
bazi_pillarsFour Pillars for a birth moment. Converts clock time to true solar time using that date's zone rules (daylight saving included) and the longitude. The year follows Li Chun; the day changes at 23:00 true solar time. Returns the pillars, Day Master and five-element counts.
best_timesCasts a chart for every double-hour of the next 1 to 7 days and ranks them for a goal (general, career, wealth, love), using the person's Day Master. Returns the top windows with time range, score and lucky direction.
solar_termsThe 24 solar terms of any year from 1900 to 2100, with UTC and Beijing-time instants (within about a minute of the Hong Kong Observatory).

Parameters

qimen_chart

  • datetime: local time "YYYY-MM-DDTHH:mm" in timezone. Omit for now.
  • timezone: IANA zone such as "Asia/Shanghai" or "America/New_York". Default Asia/Shanghai.
  • longitude: degrees, east positive. Default: the zone's standard meridian.
  • focus: general, career, wealth or love. Default general.

bazi_pillars

  • birth_datetime (required): "YYYY-MM-DDTHH:mm", as on the birth certificate.
  • timezone (required): IANA zone of the birthplace.
  • longitude: birthplace longitude, east positive.

best_times

  • birth_date (required): "YYYY-MM-DD".
  • focus: general, career, wealth or love.
  • longitude: where the person is now. Default 120.
  • days: 1 to 7. Default 7.
  • top: 1 to 10. Default 5.

solar_terms

  • year (required): 1900 to 2100.

Connect

Claude Code

bash
claude mcp add --transport http qimena https://qimena.com/mcp

Claude Desktop (claude_desktop_config.json, through mcp-remote)

json
{  "mcpServers": {    "qimena": {      "command": "npx",      "args": ["-y", "mcp-remote", "https://qimena.com/mcp"]    }  }}

Cursor (~/.cursor/mcp.json)

json
{  "mcpServers": {    "qimena": { "url": "https://qimena.com/mcp" }  }}

VS Code (.vscode/mcp.json)

json
{  "servers": {    "qimena": { "type": "http", "url": "https://qimena.com/mcp" }  }}

Any other client that speaks Streamable HTTP can use the URL directly.

Try it

Ask your assistant things like:

  • "Cast a Qi Men chart for now in New York and tell me the best direction for a business meeting."
  • "What are my BaZi pillars? I was born 1990-05-17 08:30 in Shanghai."
  • "Born 1985-11-02. Which double-hours in the next three days are best for signing a contract?"
  • "When is Li Chun in 2027?"

Or call it directly:

bash
curl -s https://qimena.com/mcp \  -H "Content-Type: application/json" \  -H "Accept: application/json, text/event-stream" \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"solar_terms","arguments":{"year":2027}}}'

Limits and notes

  • About 60 requests a minute per IP address.
  • Calculation rules and how they were checked: Qi Men calculation rules.
  • More about the server: Qimena MCP Server.
  • Results are for cultural and reference use, not professional advice.

Contact

[email protected] · qimena.com


中文说明

天衍奇门(qimena.com)提供的免费 MCP 服务,让 AI 助手可以直接调用奇门遁甲和八字排盘。

  • 地址: https://qimena.com/mcp
  • 连接方式: Streamable HTTP(无状态)
  • 不需要密钥,免费使用,不保存您发送的任何内容。

工具都是确定性计算,和 qimena.com 网站用的是同一套排盘引擎,背后没有 AI 模型:排盘和历法由服务器算,解读由您的 AI 助手完成。本仓库只放说明文档,服务运行在 qimena.com。

四个工具

工具作用
qimen_chart按时间和地点起时家奇门盘:四柱、局数、值符值使,九宫的八神、九星、八门、天盘地盘暗干、空亡、驿马、击刑、门迫,以及格局、宫位评分和吉方。
bazi_pillars按出生时间排八字:用出生当天的时区规则(含夏令时)和经度换算真太阳时;年柱以立春为界,23:00(真太阳时)换日。返回四柱、日主和五行数量。
best_times把未来 1–7 天的每个时辰都起一盘,按目标(综合、事业、财运、感情)和本人日主排序,返回最好的几个时段、评分和当时的吉方。
solar_terms1900–2100 年任一年的二十四节气时刻(UTC 和北京时间,与香港天文台相差约一分钟以内)。

连接

Claude Code:

bash
claude mcp add --transport http qimena https://qimena.com/mcp

其他客户端的配置见上面英文部分的 Connect(Claude Desktop、Cursor、VS Code)。

可以这样问

  • “用纽约现在的时间起一盘奇门,看看商务见面往哪个方向好。”
  • “我 1990-05-17 08:30 生于上海,八字是什么?”
  • “我生于 1985-11-02,未来三天哪个时辰适合签合同?”
  • “2027 年立春是哪天几点?”

说明

联系:[email protected]

來源:README.md,提交 361ec71

工具

4

qimen_chart

Qi Men Dun Jia chart

Cast an hour-based Qi Men Dun Jia (奇门遁甲) chart for a moment and place: four pillars, ju, Chief Star and Door, and for each of the nine palaces the deity, star, door, heaven/earth/hidden stems, void, horse star, punishment and door pressure, plus detected patterns, palace scores for the chosen focus and the lucky directions.

輸入參數focusdatetimetimezonelongitude

bazi_pillars

BaZi Four Pillars

Four Pillars (八字) for a birth moment: converts the clock time with the zone rules for that date (daylight saving included) and the longitude to true solar time; the year follows Li Chun and the day changes at 23:00 true solar time. Returns the pillars, Day Master, five-element counts and the time conversion details.

輸入參數timezone必填longitudebirth_datetime必填

best_times

Best upcoming double-hours

Cast a Qi Men chart for every double-hour of the next few days and rank them for a goal, using the person's Day Master from the birth date. Returns the top windows with date, hour branch, true-solar-time range, score and the lucky direction at that time.

輸入參數topdaysfocuslongitudebirth_date必填

solar_terms

Solar terms of a year

The 24 solar terms (节气) of a calendar year, 1900-2100, with UTC and Beijing-time instants from the same table the charts use (within about a minute of the Hong Kong Observatory).

輸入參數year必填

版本歷史

1
  1. v1.0.0最新Oct 26, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。