九玄宫奇门遁甲排盘 JiuXuanGong Qimen

Free Qimen Dunjia charts with true solar time and four-role birth-year mapping. China only.

Hosted MCP Server

npx add-mcp 'https://mcp.jiuxuangong.com/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

口径、隐私与接入

本服务与 https://pp.jiuxuangong.com/ 使用同一套起局函数: buildModel → chartAt 。扩展项保持 hidden_stems=duty_door_hour_stem_with_center_fallback 、 day_horse=day_branch_three_harmony ,交给内核的 utc_offset_minutes 为 480。不要在调用前先把时间换成真太阳时,否则会算两次。

时间

  • 起局与出生时刻都按北京时间(Asia/Shanghai,UTC+8)墙钟理解。无夏令时。
  • 带 Z 或 +08:00 的字符串会被拒绝,避免把 UTC 当成北京时间。
  • 起局年份 1900–2100。出生年份 1900–2050。2051 年起的立春受 ΔT 外推影响,不开放。
  • beijing_civil_now 把 UTC 加 8 小时,不读取调用者时区。

地理

东经 73–135.5,代码与产品都写明是中国范围。不是全球排盘。缺经度不会默认成 120。

年命

角色只有 q / d / o / t。不收集真实姓名。每个写出生日的身份都要显式选择 trueSolarTime 。pp 网页默认勾选,这个接口不勾。出生日若跨过立春,必须带时刻。备注最多 30 字。

原盘链接

  • pp: https://pp.jiuxuangong.com/?t=YYYY-MM-DDTHH:MM:SS&lon=120 。只还原起局北京时间和经度。 不还原 多方出生。
  • 本服务: https://mcp.jiuxuangong.com/chart#v1.… 。片段里有起局时间、经度,以及已提交的出生日期、时刻和口径。默认不含备注,不含姓名。
  • 片段在 # 后,不会出现在请求行里。打开页面时,浏览器把片段 POST 到 /api/cast 计算一次。没有数据库。响应 Cache-Control: no-store 。日志不记录请求体。
  • 拿到链接的人仍然能读到片段里的出生日期。这是“可还原”和“不入库”之间的取舍,不是匿名。

隐私与费用

  • 正常调用不需要 API key、银行卡或 Turnstile。
  • 按 IP 限流,超出返回 HTTP 429 和 Retry-After 。这是为了挡住无意义的刷取,不是付费墙。
  • 请不要在输入里写姓名、电话、证件号。服务没有客户档案。
  • 不做付费 AI 解盘,也不调用 pp 的扣次接口。

内核

九宫盘面来自 @spensercai/qimen-wasm 0.2.1 (MIT)。暗干以该包为准,不与 china95 的暗干列对齐。九玄宫的部分是真太阳时(astronomy-engine)、年命立春表、派生规则和导出。

客户端

支持远程 Streamable HTTP 时:

{
  "mcpServers": {
    "jiuxuangong-qimen": { "url": "https://mcp.jiuxuangong.com/mcp" }
  }
}

mcp-remote

mcp-remote 0.16.6 的文档把远程 URL 放在参数里,给只支持本地 stdio 的客户端做桥。对本地 workerd 的一次短时运行里,它的日志写了 Connected to remote server using StreamableHTTPClientTransport ,并转发了 initialize ,没有弹出登录。通过这条桥再完成 tools/list 没有在本次构建里做完,所以下面的片段是按该包 README 的写法,不是一条已经走完排盘的生产安装证明。无 API key 时不要加 Authorization 头。stdio 侧是一行一个 JSON,不是 Content-Length 帧。

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

错误

字段不合法时,工具返回 isError ,正文同时有中文和英文。 /api/cast 用 HTTP 400 和 error.code 。过快是 HTTP 429。请求体上限 16KB。这些都不是解盘。

English, short

Beijing civil time, China longitudes only, free deterministic casting, qimen-rs kernel, no paid reading. The pp link does not restore births. The fragment link on this host can, and the dates are visible to anyone holding the link. Nothing is written to a customer database.

# 九玄宫奇门遁甲排盘范围

- 官网:https://jiuxuangong.com
- 方法:时家奇门 · 转盘 · 拆补 · 按经度起真太阳时局
- 内核:@spensercai/qimen-wasm 0.2.1(qimen-rs)。不是九玄宫自研内核。
- 时间:北京时间 UTC+8 墙钟。起局年 1900–2100。出生年 1900–2050。
- 经度:东经 73–135.5,仅中国。不是全球排盘。
- 年命角色:q 求测人,d 当事人,o 对方,t 第三方。不需要真实姓名。
- trueSolarTime 必须显式给出。true 时先按出生地经度换真太阳时再比立春。
- pp.jiuxuangong.com/?t=&lon= 只还原起局时间与经度。
- 不提供付费解盘,不使用卡密。
- 没有“最准”“全网首个”或鉴定结论。

# Limits (English)

Beijing civil time (UTC+8). Chart years 1900–2100. Birth years 1900–2050. Longitude 73–135.5 east, China only. Kernel @spensercai/qimen-wasm 0.2.1. Free deterministic casting, not an interpretation.