Korean Four Pillars of Destiny (Saju/Bazi): calculate, interpret, compatibility & daily fortune.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP (Model Context Protocol) server that wraps the Saju API β Korean Four Pillars of Destiny (μ¬μ£Όνμ / BaZi / ε «ε) β so any MCP-capable AI client (Claude Desktop, Cursor, VS Code, Windsurf, and custom agents) can compute, interpret, and compare Korean Saju charts directly in a conversation.
30-second path: get a free key β add the config β ask your AI client "calculate the saju for someone born 1990-05-15 14:00, male."
Backed by the live API at https://saju-api.pages.dev.
Ask your AI client a natural-language question; it calls saju_calculate and gets
back structured data it can reason over. This is a real, unedited response from
the live API for { year: 1990, month: 5, day: 15, hour: 14, gender: "M", lang: "en" }:
Every response is returned to the model as both human-readable text and
structuredContent, so agents can branch on day_master.element, elements, a
compatibility score, etc. without re-parsing prose.
| Tool | Upstream endpoint | What it does |
|---|---|---|
saju_calculate | POST /api/v1/calculate | Four Pillars (stem+branch+hanja), five-element distribution, Day Master, zodiac, from a solar birthdate. |
saju_interpret | POST /api/v1/interpret | Full reading: Ten Gods (μμ ), hidden stems, Yongshin (μ©μ ), Daeun (λμ΄), localized summaries. |
saju_compatibility | POST /api/v1/compatibility | Two-person κΆν© score (0β100) with breakdown (element balance, Day Master relation, branch harmony/clash). |
saju_daily | GET /api/v1/daily | Daily fortune snapshot (score + advice) for a Day Master and date. |
The free tier is 100 requests/day, no credit card:
The response contains an api_key of the form sajuapi_free_...:
The key is shown only once β store it now. It is passed to the server via the
SAJU_API_KEYenvironment variable, never hardcoded. (Disposable /example.comemail domains are rejected β use a real address.)
npx runs the server straight from npm β no clone, no local build:
It speaks MCP over stdio and exposes the four saju_* tools. Press Ctrl-C to exit.
The server is stdio-based, so every MCP client uses the same three pieces:
command: npx, args: ["-y", "saju-mcp"], and an env with your SAJU_API_KEY.
Edit your config file, then restart Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project), then
reload:
Add to .vscode/mcp.json in your workspace:
Add to ~/.codeium/windsurf/mcp_config.json, then refresh MCP servers:
Restart / reload your client. The four saju_* tools appear in its tool list.
saju_calculate / saju_interpret:
(hour: -1 if the birth hour is unknown.)
saju_compatibility:
saju_daily (Day Master from a prior calculate/interpret call):
Input bounds (validated server-side, mirrors the API): year 1920β2050,
month 1β12, day 1β31, hour -1β23, gender "M"|"F", lang one of the 10
supported codes (default ko).
| Variable | Required | Default | Notes |
|---|---|---|---|
SAJU_API_KEY | yes (for real calls) | (empty) | Your sajuapi_* key, sent as the X-API-Key header. Without it, every call returns 401 invalid_api_key. |
SAJU_API_BASE | no | https://saju-api.pages.dev | Override the upstream base URL (e.g. a staging deploy). |
When an upstream call fails, the tool returns an MCP error result (isError: true)
whose text is Saju API error <status>: <body> plus a hint. Common cases:
| Symptom | HTTP status | Cause | Fix |
|---|---|---|---|
401 invalid_api_key | 401 | SAJU_API_KEY is missing, mistyped, or revoked. | Set the env var to a valid sajuapi_* key. Get a free one. |
429 (daily quota exceeded) | 429 | Free tier is 100 req/day, 1 rps. | Wait for the daily reset, or upgrade to a paid tier for production volume. |
invalid_input | 400 | A field is out of bounds (e.g. month: 13) or missing. | Check the input bounds above; the reason field names the offending field. |
| Tools don't appear in the client | β | Client not restarted, or npx can't fetch the package. | Restart the client; run npx -y saju-mcp once in a terminal to confirm it starts. |
non_json_response | any | Upstream returned non-JSON (rare; network/proxy). | Retry; if persistent, check SAJU_API_BASE is correct. |
Keys never appear in tool output or logs. If a key leaks, mint a new one β the old one keeps its own quota and can be abandoned.
Run the local build directly:
Requires Node.js 18+ (uses the built-in global fetch).
The free tier (100 req/day, 1 rps) is for building and evaluation. When your app ships, higher-volume tiers are available on the same API β see https://saju-api.pages.dev for current plans and the key endpoint. Your code and config don't change; only the key does.
Proprietary β KunStudio. Wraps the Saju API; subject to that API's terms.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/saju-mcp)<a href="https://allmcps.com/mcp/saju-mcp"><img src="https://allmcps.com/api/badge/saju-mcp?style=directory" alt="Saju MCP on AllMCPs" /></a>