Xuanji Oracle MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Xuanji Oracle MCP Server cast my Bazi chart for May 12, 1990, 8:30 AM in Shanghai"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Hosted Streamable HTTP Endpoint (Zero Auth):
https://xuanjioracle.com/mcpDocumentation & Live Tools: xuanjioracle.com/mcp-guide
Web App: xuanjioracle.com · 80-Year Life K-Line · 60s Missing Element Quiz
AI Discovery:
/llms.txt·/llms-full.txt
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/mcpLocal 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-mcpOr configure Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"xuanji-oracle": {
"command": "python",
"args": ["/path/to/xuanji_mcp.py"]
}
}
}Available Tools
Tool | Description | Auth |
| Exact true solar-time Four Pillars (Year/Month/Day/Hour), Day Master, Five Elements, Favorable/Unfavorable Elements, and 10-year Dayun cycles. | None |
| 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 |
| Deterministic 9-Palace Qimen Dunjia tactical divination board (Ju number, Duty Chief/Envoy, Nine Palaces, Eight Doors) for timing and decision questions. | None |
| 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 toolscast_bazi_chartBRead-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_boardARead-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_oracleARead-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_klineARead-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
Scored across 4 tools
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.
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.
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.
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
Related MCP Connectors
Deterministic Chinese BaZi (Four Pillars) astrology MCP server with true solar time correction.
Hosted remote MCP server for BaZi (Four Pillars) charts and the Chinese almanac. No install.
Free Qimen Dunjia and BaZi charts via MCP - deterministic engine, nine palaces and four pillars.
BaZi, Zi Wei, Qi Zheng Si Yu, divination and almanac from a deterministic engine. Pay per call.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP 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.11Apache 2.0
- FlicenseAqualityDmaintenanceProvides local, deterministic Chinese and Western divination chart calculations with traceable, evidence-grounded interpretation through MCP tools.9-
- AlicenseAqualityCmaintenanceEnables 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.5MIT No Attribution
- AlicenseNot gradedqualityBmaintenanceHosted 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.1MIT