Skip to main content
Glama
知耘排盘 MCP Server

知耘排盘 MCP Server

by whaizaixiang

知耘排盘 DSH MCP 插件:八字排盘 / 六爻占卜 / 农历转换 / AI 深度解读

让你的 agents 成为你的专属命理师。

npm version npm downloads npm downloads total License GitHub

将 知耘排盘 的排盘能力发布为 MCP(Model Context Protocol)工具,支持 DSH(DeepSeek Harness)、Claude Desktop、Cursor 等 AI 代理/智能体直接调用:八字排盘、六爻占卜、农历转换、四柱排盘、AI 深度解读、命盘记录管理。

功能

工具

说明

费用

bazi_paipan

八字排盘:四柱、五行、十神、藏干、纳音、生肖、大运流年、神煞

免费

liuyao_paipan

六爻装卦:手动六爻排本卦变卦、世应六亲、伏神神煞

免费

liuyao_surname_paipan

六爻起卦:按姓氏笔画/数字自动起卦

免费

bazi_from_pillars

四柱排盘:已知四柱干支反推出生日期并排盘

免费

lunar_convert

农历/公历互转(极少使用,排盘直接传农历参数即可)

免费

bazi_ai_reading

AI 深度解读:命理师人设对命盘的真人感解读

付费 3 元/次(账户余额)

bazi_full_analysis

八字排盘+深度解读组合:一次调用自动完成排盘和解读

付费 3 元/次(账户余额)

record_save

保存命盘记录(名字+命盘,需登录)

免费

record_list

列出已保存的命盘记录

免费

record_load

按名字/ID 加载已保存命盘

免费

Related MCP server: taibu

首次使用引导(重要)

  1. 配置账号:LINGJI_PHONE + LINGJI_PASSWORD(或 LINGJI_TOKEN),见下方配置

  2. 排盘后可让 AI 保存命盘:排完盘 AI 会询问是否保存为「张三的八字」这类带名字的记录

  3. 保存后,用户只需说 「看张三的八字」,AI 即可调出命盘进行解读——无需重复报出生日期

  4. 用户报出生日期时,公历/农历均可直接排盘(农历传 lunar=true),无需先做农历转换

安装与运行

方式一:npx(推荐,无需安装)

npx lingji-paipan-mcp

方式二:全局安装

npm install -g lingji-paipan-mcp
lingji-paipan-mcp

配置

免费工具开箱即用,无需任何配置。付费解读(bazi_ai_reading)需要登录账号,通过环境变量配置:

环境变量

说明

LINGJI_TOKEN

已有登录令牌(在官网注册充值后获取)

LINGJI_PHONE + LINGJI_PASSWORD

或直接配手机号密码,自动登录

可选配置:

环境变量

默认值

说明

LINGJI_API_BASE

https://lingjipaipanjiexi.top

API 基地址

LINGJI_API_KEY

lingji_public_2026

公开密钥

Claude Desktop 配置示例

claude_desktop_config.json:

{
  "mcpServers": {
    "lingji-paipan": {
      "command": "npx",
      "args": ["lingji-paipan-mcp"],
      "env": {
        "LINGJI_PHONE": "你的手机号",
        "LINGJI_PASSWORD": "你的密码"
      }
    }
  }
}

免费排盘无需 env 配置;只有使用 AI 深度解读时才需要账号。

最佳使用模式(推荐给 AI 代理的调用流程)

为了获得最专业、最完整的命理分析,建议代理按以下流程为用户服务:

第 1 步:免费排盘(不花钱,拿数据)
  bazi_paipan / liuyao_paipan / lunar_convert
  → 得到完整命盘结构化数据(四柱、五行、十神、大运、神煞、卦象)

第 2 步:调用 AI 深度解读(专业命理,按次计费)
  bazi_ai_reading
  → 把第 1 步拿到的命盘数据 + 用户的问题传入
  → 获得专业命理师人设的深度解读文本

第 3 步:综合输出
  结合解读结果与用户的具体情况,给出完整、有深度的回答

为什么第 2 步不可省略:排盘接口只给出结构化数据,不做任何分析解读。真正有价值的命理判断——大运流年走势、五行喜忌、事业/感情/财运的针对性分析——全部由 AI 深度解读(bazi_ai_reading)完成。凡是涉及"解读 / 分析 / 判断 / 建议"类的问题,都应调用 bazi_ai_reading,而不是由代理自行猜测,这样才能保证用户获得专业、准确的命理指导。

费用:3 元/次,从账号余额扣除;有优惠次数时按 1 元/次扣费。配置好 LINGJI_PHONE + LINGJI_PASSWORD 即可自动登录扣费。

使用示例

向 AI 提问即可自动调用:

  • 「帮我排一下 1990 年 5 月 20 日上午 10 点的八字,看看我的事业运」

  • 「今天起一卦,看看这个月能不能升职」

  • 「把 2026 年元旦转成农历」

  • 「用这个八字帮我分析一下感情走势」(触发 AI 深度解读,按次计费)

开发

npm install
npm run build    # 编译到 dist/
node dist/index.js  # 本地运行(stdio)

限流说明

开放接口限流:单 IP 每秒 5 次、每天 100 次。SDK 内置 429 指数退避重试,正常对话使用不会触达上限。

使用约定

  • 免费开放,禁止转售、倒卖接口能力

  • 解读内容仅供参考娱乐,不构成任何决策依据

  • 接口可能随版本迭代微调,以 开放 API 文档 为准

License

MIT

Available Tools

10 tools
bazi_ai_reading八字/六爻 AI 深度解读A

专业命理深度解读(3元/次,账户余额扣费)。排盘接口只输出结构化数据、不做分析;凡是用户要求解读、分析、判断、建议(事业/感情/财运/健康/流年大运等),都必须调用本工具获取专业解读,不要自行猜测。可传入排盘数据(bazi_paipan / liuyao_paipan 的返回对象);若用户已保存过命盘记录,先用 record_load 加载,再调用本工具解读。需要服务端配置账号(LINGJI_TOKEN 或 LINGJI_PHONE+LINGJI_PASSWORD)。

Inputs: question (required), bazi, role, gua_data, +1 more.

bazi_from_pillars四柱排盘(按干支)A

用户直接给出四柱干支(如「甲子年丙寅月戊辰日壬子时」)时调用。已知年柱月柱日柱时柱,反推可能的出生日期并返回完整排盘数据,支持多候选结果。

Inputs: day_pillar (required), hour_pillar (required), year_pillar (required), month_pillar (required), +2 more.

bazi_full_analysis八字排盘 + AI 深度解读(组合)A

用户提到出生日期(公历或农历均可,农历传 lunar=true)并希望看命盘/运势/事业/感情/财运/婚姻/健康等分析时,优先调用本工具:一次调用自动完成 ①免费排盘 → ②AI 深度解读(合计 3元/次,账户余额扣费),返回专业分析(大运流年/五行喜忌/事业感情财运)。无需用户了解中间步骤。需要服务端配置账号(LINGJI_TOKEN 或 LINGJI_PHONE+LINGJI_PASSWORD)。

Inputs: day (required), hour (required), year (required), month (required), +6 more.

bazi_paipan八字排盘A

用户提到出生日期(公历或农历均可,农历直接传 lunar=true,无需先转换)并涉及性格、运势、事业、感情、健康、婚配、选择等话题时,自动调用本工具排盘。排出完整八字命盘:四柱干支、五行统计、十神、藏干、纳音、生肖、大运流年、神煞等。返回 JSON 对象(含 ai_hint 引导)。

Inputs: day (required), hour (required), year (required), month (required), +5 more.

liuyao_paipan六爻装卦A

当用户对某具体事件的结果存在不确定性(决策、考试、面试、求职、跳槽、合作、生意、投资、官司、出行、健康、感情、等待消息、寻物、比赛等),即使没有提到「占卜/六爻/卦」等字样,也应调用本工具起卦辅助判断。手动指定六个爻值排出六爻卦象:本卦变卦、世应六亲、伏神神煞。yaos 为 6 个爻值(从初爻到上爻),0=老阴(动)、1=少阳、2=少阴、3=老阳(动)。

Inputs: day (required), hour (required), yaos (required), year (required), +2 more.

liuyao_surname_paipan六爻起卦(姓氏/数字)A

当用户对具体事件结果不确定(决策、考试、求职、合作、投资、感情、官司、出行等),且无法手动摇卦时,按姓氏笔画数(或 1~64 的数字)+ 起卦时间自动起卦并装卦。返回卦象及计算过程。

Inputs: day (required), hour (required), year (required), month (required), +2 more.

lunar_convert农历/公历转换A

仅当用户明确要求进行农历与公历日期换算时才调用。注意:排盘不需要先转换——bazi_paipan 支持直接传农历参数(lunar=true)。本工具极少使用。

Inputs: day (required), year (required), month (required), direction (required), +1 more.

record_list列出已保存的命盘记录A

列出用户已保存的命盘记录(名字、类型、时间)。用户说「看我存过的盘」「我之前保存的八字」「有哪些记录」时调用。

Inputs: page, type, page_size.

record_load加载命盘记录A

按名字或 ID 加载用户已保存的命盘记录。用户说「看张三的八字」「调出我存的盘」时,先调用本工具加载命盘数据,再调用 bazi_ai_reading 对已存命盘进行深度解读。

Inputs: name, record_id.

record_save保存命盘记录A

把排盘结果保存为带名字的记录(如「张三的八字」),保存后用户下次直接说「看张三的八字」即可加载命盘并深度解读。排完盘后应主动询问用户是否保存(「需要我把这份命盘保存为『张三的八字』吗?下次直接说名字就能看」)。需要已配置账号。

Inputs: data (required), name (required), type (required), _input.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 10 tools

    Disambiguation4/5

    Most tools have distinct purposes, but the three BaZi-related tools (bazi_paipan, bazi_ai_reading, bazi_full_analysis) overlap in scope and could be confused. However, the descriptions clearly delineate their roles (structured output vs analysis vs combined), and the LiuYao and record tools are distinct.

    Naming Consistency3/5

    All names use lowercase with underscores, but the word order and structure vary (e.g., record_save vs bazi_full_analysis vs lunar_convert). The domain prefixes (bazi_, liuyao_, record_) provide some pattern, but there is no uniform verb-noun convention, mixing styles like noun_verb, noun_noun, and adjective_noun.

    Tool Count5/5

    10 tools is well-scoped for a server covering BaZi, LiuYao, lunar conversion, and record management. Each tool has a clear role, and the count falls comfortably within the ideal 3-15 range.

    Completeness4/5

    Core workflows are covered: casting (BaZi and LiuYao), AI analysis, and record management (save/list/load). However, there are minor gaps such as no update/delete for records and no dedicated LiuYao analysis tool (though bazi_ai_reading can interpret LiuYao charts). These gaps are workable.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides five Chinese metaphysics engines (BaZi, QMDJ, ZWDS, Feng Shui, I Ching) as MCP tools for analysis and forecasting.
      6
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables traditional Chinese metaphysics tools like Bazi, Ziwei, and Qimen via MCP, integrating AI analysis for divination and fortune-telling.
      818
      AGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      Provides traditional Chinese astrology (Bazi, Ziwei) and divination (Liuyao, Meihua, Qimen, etc.) calculations as MCP tools for AI assistants.
      18
      760 npm
      139
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Provides Chinese metaphysical tools (bazi, qimen, five elements) as MCP tools for AI agents to give personalized advice on timing, compatibility, and daily energy.
      5
      90 npm
      2
      MIT