Skip to main content
Glama
Xuanji Oracle MCP Server

Xuanji Oracle MCP Server

README.md
# 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/mcp`
- **Documentation & Live Tools:** [xuanjioracle.com/mcp-guide](https://xuanjioracle.com/mcp-guide)
- **Web App:** [xuanjioracle.com](https://xuanjioracle.com) · [80-Year Life K-Line](https://xuanjioracle.com/kline) · [60s Missing Element Quiz](https://xuanjioracle.com/quiz)
- **AI Discovery:** [`/llms.txt`](https://xuanjioracle.com/llms.txt) · [`/llms-full.txt`](https://xuanjioracle.com/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.

## Quick Connect (Hosted Remote MCP — Zero Auth)

### Cursor / VS Code / Windsurf (`mcp.json`)

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

### Claude Code

```bash
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):

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

Or configure Claude Desktop (`claude_desktop_config.json`):

```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](LICENSE).

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