AstroSaju

Developers · JSON API · MCP serverSaju data for your app or your assistant

The engine behind AstroSaju, as a free JSON API and a remote MCP server. Four pillars, ten gods, hidden stems, luck pillars, Lunar New Year and Ipchun dates, computed from real solar positions with historical time zones. No key, no sign-up. Free with a visible link back.

Saju is a traditional calendar system. Every value here is deterministic calendar and astronomy math, for reflection and entertainment. It does not predict events and is not advice.

Quick start

curl "https://astrosaju.pages.dev/api/v1/chart?date=1990-05-17&time=14:30&city=Seoul&sex=F"

Response, shortened:

{
  "input": {
    "date": "1990-05-17",
    "time": "14:30",
    "city": "Seoul, KR",
    "timezone": "Asia/Seoul",
    "utc_offset": "+09:00",
    "longitude": 127,
    "sex": "F"
  },
  "pillars": {
    "year": {
      "hanja": "庚午",
      "en": "Yang Metal Horse",
      "...": "stem, branch, ten_gods, hidden_stems, twelve_stage"
    },
    "month": {
      "hanja": "辛巳",
      "en": "Yin Metal Snake",
      "...": "stem, branch, ten_gods, hidden_stems, twelve_stage"
    },
    "day": {
      "hanja": "壬午",
      "en": "Yang Water Horse",
      "...": "stem, branch, ten_gods, hidden_stems, twelve_stage"
    },
    "hour": {
      "hanja": "丁未",
      "en": "Yin Fire Goat",
      "...": "stem, branch, ten_gods, hidden_stems, twelve_stage"
    }
  },
  "day_master": {
    "hanja": "壬",
    "name": "Yang Water",
    "persona": "Ocean"
  },
  "five_elements": "{ counts, missing }",
  "luck_pillars": "{ direction, start_age, current, pillars[] }",
  "year_boundary": "{ saju_year, ipchun, lunar_new_year, ... }",
  "archetype": {
    "name": "Ocean Horse",
    "slug": "ocean-horse",
    "card_url": "https://astrosaju.pages.dev/cards/ocean-horse/",
    "image_url": "https://astrosaju.pages.dev/assets/cards/600/p18.webp"
  },
  "attribution": {
    "name": "AstroSaju",
    "url": "https://astrosaju.pages.dev/",
    "card_url": "https://astrosaju.pages.dev/cards/ocean-horse/",
    "reading_url": "https://astrosaju.pages.dev/?ref=api#d=1990-05-17&t=14%3A30&c=Seoul%2C+KR&g=F"
  },
  "terms": "Free for any use ... with a visible link to card_url ..."
}

The same birth data in the app gives the same pillars: the API runs the app's own engine files.

Endpoints

All are GET, return JSON, and send Access-Control-Allow-Origin: *. Errors return HTTP 400 with { "error", "message", "field" }.

EndpointParametersReturns
/api/v1/chartdate, time (HH:MM), city or tz + lon, sex (M/F, optional), unknown_time=1, calendar=lunar + leap=1Four pillars with stems, branches, ten gods, hidden stems, twelve stages; day master; five elements; luck pillars; Ipchun and Lunar New Year facts; the day-pillar card
/api/v1/pillardateThe day pillar (1 of 60), day master and card, and the next three dates with the same pillar
/api/v1/year/2027stem (甲..癸, yang-water, or Ocean) or date, optionalYear pillar, start and end instants, the twelve month starts, roles for each day master, and the written 2027 reading. Any year 1900 to 2100; only 2027 has the written reading
/api/v1/lunar-new-yearyear (1900 to 2100)Chinese New Year (UTC+8), Seollal (UTC+9), the Ipchun instant, the year pillar and a one-sentence summary
/api/v1/todaytz (IANA, default UTC)Today's day, month and year pillars, and today's card

Machine-readable: OpenAPI 3.1 description · llms.txt. Examples:

curl "https://astrosaju.pages.dev/api/v1/pillar?date=2027-02-04"
curl "https://astrosaju.pages.dev/api/v1/year/2027?stem=%E5%A3%AC"   # 壬, Yang Water
curl "https://astrosaju.pages.dev/api/v1/lunar-new-year?year=2027"
curl "https://astrosaju.pages.dev/api/v1/chart?date=1985-11-02&time=07:15&tz=America/Chicago&lon=-87.6&sex=M"

MCP server

Remote, stateless, Streamable HTTP, no authentication: https://astrosaju.pages.dev/mcp. Protocol versions 2026-07-28 (per-request metadata) and 2025-11-25 back to 2024-11-05 (initialize handshake).

ToolWhat it returns
compute_sajuA full chart. Same input schema as the original manseryeok MCP server (y, m, d, hour, minute, gender, calendar, isLeap, longitude), plus city or tz for births outside Korea.
day_pillarThe day pillar and card for a date.
year_2027_for_day_masterThe 2027 Fire Goat year for one day master or all ten, with the twelve month starts.
lunar_new_yearChinese New Year, Seollal and Ipchun for any year 1900 to 2100.

Claude Code

claude mcp add --transport http astrosaju https://astrosaju.pages.dev/mcp

Claude and ChatGPT

Add a custom connector and paste https://astrosaju.pages.dev/mcp. No authentication. In ChatGPT, custom connectors need developer mode.

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "astrosaju": {
      "url": "https://astrosaju.pages.dev/mcp"
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "astrosaju": {
      "type": "http",
      "url": "https://astrosaju.pages.dev/mcp"
    }
  }
}

Raw JSON-RPC

curl -s https://astrosaju.pages.dev/mcp \
  -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -H "MCP-Protocol-Version: 2025-06-18" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"lunar_new_year","arguments":{"year":2027}}}'

Terms

Free for any use, commercial included, with attribution. Wherever you show a result, show a visible link to its card_url (or to astrosaju.pages.dev). Every response carries an attribution object with the link and a ready-made line of text.

Limits. About 60 requests a minute and 2000 a day per IP address, shared by the API and MCP tool calls. Over the limit you get HTTP 429 with a Retry-After header.

Bulk or high volume. For batch jobs, use the paid manseryeok calculator actor on Apify, which runs the same kind of computation at scale.

Privacy. Inputs are used to compute one response. AstroSaju does not store them or write them to any log or database. The site runs on Cloudflare, which processes requests under its own privacy policy. The rate limit keeps only a keyed hash of your IP address with a counter. GET parameters travel in the URL, so for birth data prefer the MCP endpoint (a POST body) or keep calls server-side. See the privacy policy.

Accuracy. Sun positions from VSOP87, new moons from Meeus, corrected for Delta T; time zones and daylight saving from the IANA database for the birth date. Dates from 1900 to 2100. The day changes at midnight; some schools change it at 11 pm.