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 分

    请在仓库或注册中心条目中声明许可证。