Skip to main content
Glama
Xuanji Oracle MCP Server

Xuanji Oracle MCP Server

Xuanji Oracle MCP Server

Deterministic Chinese Four Pillars (Bazi / 八字), 80-Year Life K-Line (人生K线), Qimen Dunjia (奇门遁甲), and Taoist Daily Oracle MCP server — backed by true solar-time astronomy and 11 classical canons.

Why Deterministic Chinese Astronomy via MCP?

General LLMs frequently hallucinate Chinese Bazi birth charts because they confuse January 1 or Lunar New Year with exact 15° Jieqi solar-term longitudes (Lichun at 315°, ~Feb 4) and guess modulo-60 Julian Day Pillars probabilistically.

Xuanji Oracle separates calculation from interpretation: deterministic astronomy runs first on the server, returning verified Four Pillars, Five-Element distributions, 10-year Dayun luck cycles, and 80-year K-Line trajectories so Claude, Cursor, ChatGPT, and other MCP clients never guess calendar math.

Related MCP server: xiangyi

Quick Connect (Hosted Remote MCP — Zero Auth)

Cursor / VS Code / Windsurf (mcp.json)

{
  "mcpServers": {
    "xuanji-oracle": {
      "url": "https://xuanjioracle.com/mcp"
    }
  }
}

Claude Code

claude mcp add --transport http xuanji-oracle https://xuanjioracle.com/mcp

Local Stdio Bridge (for stdio-only MCP clients)

Requires Python 3.10+ (zero third-party dependencies):

pip install git+https://github.com/teylerboal-dev/xuanji-oracle-mcp.git
xuanji-oracle-mcp

Or configure Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "xuanji-oracle": {
      "command": "python",
      "args": ["/path/to/xuanji_mcp.py"]
    }
  }
}

Available Tools

Tool

Description

Auth

cast_bazi_chart

Exact true solar-time Four Pillars (Year/Month/Day/Hour), Day Master, Five Elements, Favorable/Unfavorable Elements, and 10-year Dayun cycles.

None

preview_life_kline

80-Year Destiny K-Line trajectory grounded in Four Pillars, Dayun cycles, and Branch Interactions, including past 5-year verification highlights and next inflection window.

None

cast_qimen_board

Deterministic 9-Palace Qimen Dunjia tactical divination board (Ju number, Duty Chief/Envoy, Nine Palaces, Eight Doors) for timing and decision questions.

None

get_daily_oracle

Today's Taoist Daily Oracle Slip with classical omen, auspicious directions/colors, elemental weather, and practical DO/DON'T micro-actions.

None

Pricing & Web Platform

  • MCP Server & Core Web Calculators: 100% free, zero signup, zero API key required.

  • Optional Web Deep Reports: Starter unlocks begin at $2.99 (Next Turning Point & 3-Report Diagnostic Pack), $9.90 (Single Deep Chapter), $29.90 (6-Chapter PDF Life Book), and $59/yr (Annual Sanctuary Pass).

License

MIT — see LICENSE.

Available Tools

4 tools
cast_bazi_chartB
Read-onlyIdempotent

Calculate an exact deterministic Chinese Four Pillars (Bazi / 八字) natal chart from true solar time, returning Year/Month/Day/Hour pillars, Day Master (日主), Five Elements distribution, Favorable/Unfavorable Elements (喜用神/忌神), and 10-year Dayun luck cycles.

Inputs: birth_date (required), place, gender, birth_time, +1 more.

cast_qimen_boardA
Read-only

Cast a deterministic 9-Palace Qimen Dunjia (奇门遁甲) tactical divination board for a concrete decision, negotiation, career move, or timing question. Returns Ju number, Duty Chief/Envoy, Nine Palaces, Eight Doors, and strategic guidance.

Inputs: question_goal (required), city, time_input, question_type.

get_daily_oracleA
Read-onlyIdempotent

Retrieve today's Taoist Daily Oracle Slip (今日道谕) from Xuanji Sanctuary, including classical omen, auspicious directions/colors, elemental weather, and practical DO/DON'T micro-actions.

Inputs: no named parameters.

preview_life_klineA
Read-onlyIdempotent

Compute a deterministic 80-year Destiny K-Line (人生K线) overview grounded in Four Pillars Bazi, 10-Year Dayun cycles, and full Branch Interactions (三会/三合/六合/六冲/三刑/六害). Returns decade trajectory summary, past 5-year verification highlights, and next inflection window.

Inputs: birth_date (required), name, place, gender, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 4 tools

    Disambiguation3/5

    cast_qimen_board and get_daily_oracle are clearly distinct, but cast_bazi_chart and preview_life_kline both compute Four Pillars, Day Master, and Dayun cycles, so an agent asked for a general 'fortune reading' could reasonably pick either. The descriptions hint at the split (point-in-time natal detail vs. 80-year trajectory), but the boundary and any dependency between them (does kline require the chart first?) is not stated.

    Naming Consistency4/5

    All names follow a snake_case verb_noun pattern (cast_*, get_*, preview_*), which is readable and predictable. The verbs vary (cast/get/preview) rather than using a single canonical verb set, but this reflects genuine action differences rather than inconsistency.

    Tool Count4/5

    Four tools is on the lean side but each targets a distinct product (natal chart, tactical board, daily slip, life trajectory) with no throwaway entries. Slightly under-scoped for a divination suite, but not thin enough to be a problem.

    Completeness4/5

    The surface covers the core lifecycle of a metaphysics consultation: natal analysis, long-range trajectory, tactical decision divination, and daily guidance. Gaps exist for adjacent operations (compatibility/synastry, date selection, targeted year/event forecasts), but an agent can work around them using qimen for specific questions.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP server for computing BaZi (Four Pillars) charts. Supports Gregorian, lunar, or direct Four Pillars input, with optional true solar time correction, and outputs strength, pattern, and useful god.
      1
      1
      Apache 2.0
    • F
      license
      A
      quality
      D
      maintenance
      Provides local, deterministic Chinese and Western divination chart calculations with traceable, evidence-grounded interpretation through MCP tools.
      9
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients to generate authentic BaZi and Ziwei charts, perform Liuyao and Qimen divination with standard hexagram diagrams, and resolve four-pillar dates using local runtime engines.
      5
      MIT No Attribution
    • A
      license
      Not graded
      quality
      B
      maintenance
      Hosted remote MCP server for BaZi (八字, Four Pillars) charts and the Chinese almanac, computed by FateTell's own engine. Cast a chart from any birth date, open the charts saved in your FateTell account and check today's fortune. Deterministic, no install, no API key: chart casting and the almanac need no account; saved charts and member tools sign in with OAuth.
      1
      MIT