XUANJI SANCTUARY · 玄机阁 MCP
FREE PUBLIC STREAMABLE HTTP MCP · 零门槛免费接入 AI 助手

Xuanji Sanctuary MCP Server

The Xuanji Sanctuary MCP Server is a free, zero-API-key Streamable HTTP endpoint (https://xuanjioracle.com/mcp, protocol 2025-03-26) that equips Claude Desktop, Cursor, and AI agents with deterministic Chinese metaphysics computation. Instead of letting language models hallucinate calendars, agents invoke cast_bazi_chart, cast_qimen_board, get_daily_oracle, and preview_life_kline via JSON-RPC 2.0 to retrieve True Solar Time pillars and classical canon context.

https://xuanjioracle.com/mcp Free 80-Year K-Line → $2.99 Turning Point Pack →
✓ Zero API key required ✓ True solar-time astronomy GitHub Repo (Stdio Bridge) ↗ Glama Verified Connector (Grade A) ↗ Glama MCP Server (Grade A) ↗
cast_bazi_chart

Four Pillars Bazi · 真太阳时八字

Exact Year/Month/Day/Hour stems & branches, Day Master strength, Five-Element balance, Favorable/Unfavorable elements (喜用神/忌神), and 10-year Dayun cycles.

cast_qimen_board

Qimen Dunjia · 奇门九宫局

Deterministic 9-Palace tactical divination board with Duty Chief (值符), Duty Envoy (值使), Eight Doors, and directional timing for concrete decisions.

get_daily_oracle

Daily Taoist Oracle · 今日道谕

Today’s classical Taoist omen, lucky direction & color, elemental weather, and practical DO/DON’T micro-behaviors.

preview_life_kline

80-Year Destiny K-Line · 人生K线

Deterministic decade trajectory & current-year score with full Branch Interactions (三会/三合/六冲/三刑), linking directly to the interactive candlestick chart.

Claude Desktop / Cursor / Windsurf

Add this read-only Streamable HTTP server to your mcp.json or claude_desktop_config.json:

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

cURL / JSON-RPC 2.0 Quick Test

Verify live deterministic tool discovery from any terminal:

curl -X POST https://xuanjioracle.com/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
LIVE ENDPOINT DIAGNOSTIC · 在线实时试跑

Test Xuanji MCP Right Here

Send a real JSON-RPC 2.0 request to /mcp and inspect the deterministic response.

// Pick your birth date above and click "Run My Live Bazi Chart" to test /mcp live
FREE BRIEF + $2.99 STARTER UNLOCK

Want the Full Visual 80-Year Life K-Line?

Get our free 2026 Fire Horse solar-term checklist by email — or jump straight into your interactive chart and optional $2.99 Next Turning Point & 3-Report Diagnostic Pack.

Unlock $2.99 Pack →

ARCHITECTURE COMPARISON · 接入方式对比与路线图

Hosted Streamable HTTP vs. Local npx Stdio MCP Servers

Xuanji exposes a managed Streamable HTTP endpoint so agents connect immediately with zero local dependencies, alongside an open-source stdio bridge for desktop clients that require local command transport.

Dimension Xuanji Hosted Streamable HTTP (/mcp) Local npx Stdio MCP Packages
Setup & Runtime Single URL in mcp.json; no Node.js or Python install, zero API key. Requires local Node.js runtime, package download, and manual version updates.
Deterministic Scope BaZi (True Solar Time & Jieqi), Qimen Dunjia, Daily Oracle, and 80-Year Life K-Line. Typically single-domain BaZi calculators without Qimen or Life K-Line integration.
Ziwei Doushu & Compatibility Live on deterministic web engines (/ziwei-doushu, /bazi-compatibility); MCP tool parity planned. Requires installing separate third-party servers per discipline.
DEVELOPER FAQ · 常见问题

Frequently Asked Questions

How does Xuanji's hosted MCP server differ from local npx BaZi MCP packages?

Unlike local stdio packages that require Node.js installation and manual updates, Xuanji exposes a public Streamable HTTP endpoint requiring no API key or local runtime, while supporting an optional stdio bridge for legacy clients.

Are Ziwei Doushu and BaZi Compatibility available through the MCP server?

Currently, the MCP endpoint exposes Four Pillars BaZi (cast_bazi_chart), Qimen Dunjia (cast_qimen_board), Daily Oracle (get_daily_oracle), and 80-Year Life K-Line previews (preview_life_kline). Ziwei Doushu and Compatibility run on deterministic web engines with MCP parity planned.

Why should AI agents call an MCP tool instead of calculating BaZi directly?

Language models cannot reliably compute astronomical solar terms, equation-of-time offsets, or 60-day Jia-Zi cycles from weights alone. Calling cast_bazi_chart enforces a calculate-first, interpret-second workflow with reproducible JSON outputs.