cafe-mcp

v2.1.1
io.github.dangamsoft/cafe-mcp Checked 4 hours ago Published 9 days ago

Saju & BaZi (Four Pillars) charts, luck cycles, manseryeok and classics.

Disconnect any time from My account > Connected AI. Guides: connect from any app · build a Saju assistant with Claude · why Saju apps disagree · 24 boundary cases A chart you have already looked up does not count again. Engine judgments and use inside your own product go through the CAFE Core API under a business agreement: https://24plus.ai.kr/business

Summary extracted from the README.

cafe-mcp: Saju & BaZi (Four Pillars of Destiny) MCP server

Korean astrology (Saju, 사주) and Chinese BaZi (八字) for AI agents. Computed, not guessed. Give Claude, ChatGPT, Cursor or any MCP client a birth date and time. cafe-mcp returns the Four Pillars chart, luck cycles, a manseryeok (만세력) calendar and the classical texts as structured, reproducible data from the CAFE engine. Your AI writes the reading in the user's language.

Remote Auth Version License

Why not just ask the LLM? A general model improvises the chart: the same birth data gives a different Day Master on different days, and solar-term boundaries, hidden stems and luck cycles are routinely wrong. cafe-mcp calculates them with an engine built since 2019: solar terms to the second, birthplace longitude, historical time zones and daylight saving. Same input, same chart, every time.


Quick start

Server URL:

https://mcp.24plus.ai.kr/mcp

claude.ai, Claude apps, ChatGPT: add a custom connector with the URL above, sign in to 24PLUS, then allow. No key needed.

Claude Code, Cursor and other clients: either add the URL and sign in (OAuth), or create a key at https://24plus.ai.kr/my and send it as a bearer token:

claude mcp add --transport http cafe-mcp https://mcp.24plus.ai.kr/mcp --header "Authorization: Bearer mcp_live_..."
{ "mcpServers": { "cafe-mcp": { "url": "https://mcp.24plus.ai.kr/mcp", "headers": { "Authorization": "Bearer mcp_live_..." } } } }

Clients that only start local (stdio) servers: run the npm bridge with your key. It forwards every request to the server above; nothing is calculated on your machine.

{ "mcpServers": { "cafe-mcp": { "command": "npx", "args": ["-y", "@dangamsoft/cafe-mcp"], "env": { "CAFE_MCP_KEY": "mcp_live_..." } } } }

Disconnect any time from My account > Connected AI.

Guides: connect from any app · build a Saju assistant with Claude · why Saju apps disagree · 24 boundary cases

Plans

cafe-mcp is free with a 24PLUS account.

Free Business
Different charts per month 10 by agreement
Tool calls per month 300 by agreement
Calls per minute 20 by agreement
Tools the 9 tools below CAFE Core API
Engine judgments (useful element, chart structure, luck index, personality, compatibility, fortune) – ✓
Classics 3 results, translation excerpt, table of contents full translation, full chapters

A chart you have already looked up does not count again. Engine judgments and use inside your own product go through the CAFE Core API under a business agreement: https://24plus.ai.kr/business

Tools

The server lists 9 read-only tools, all free.

Tool What it does
saju_chart Four pillars with Hanja, Five Elements, Ten Gods, hidden stems, twelve life stages, stars, combinations, clashes and void
luck_cycles Ten-year cycles with start ages, yearly and monthly pillars
saju_reading_context Chart facts, current luck, term meanings and reading principles in one prompt-ready bundle. The best first call for a reading
manse_calendar A month of solar and lunar dates, day pillars, exact solar-term times, auspicious days
find_dates_by_pillars Reverse lookup: the dates and times that produce given pillars
find_birthplace City search for longitude correction (births outside Korea)
lookup_term 980 Saju terms in Korean, Hanja and English
search_classics Ziping Zhenquan, Ditian Sui, Qiongtong Baojian and more, original with a Korean translation excerpt
read_classic The library and each book's table of contents

Full reference with inputs and example prompts: https://24plus.ai.kr/docs/tools

About the useful element

The useful element (yongshin) and other engine judgments are not part of the public tools; they are available through the CAFE Core API under a business agreement.

Values come back in Korean with Hanja; pass lang="en" for English term names.

Calculation basis (every saju_chart result also returns it as basis): the year changes at Lichun (입춘), the month at each solar term, birth times are corrected to the birthplace longitude, and Korean daylight-saving years are taken out automatically. The Rat hour (子時) defaults to zi_hour: "early" (조자시): the day changes when the Rat hour starts. Pass zi_hour: "late" (야자시) to keep a birth before midnight on the same day.

Principles

  • Calculation is deterministic; interpretation is left to your AI, grounded in the returned data.
  • No scores, grades or fixed predictions.
  • Birth data is used only for the calculation. The server keeps a one-way fingerprint for the monthly chart count, never the birth date itself. See PRIVACY.md.
  • The old local npx wrapper (npx @dangamsoft/cafe-mcp) does not calculate on your machine either: it sends the birth date, time and sex to the 24PLUS server to compute the chart.

Before v1.1.0

Until 2026-10-18 this URL served an open server with six tools and no sign-in, and the npm package @dangamsoft/cafe-mcp ran it locally over stdio. Both are retired. Since 2.0.0 the npm package is a stdio bridge to the signed-in server (see Quick start). See CHANGELOG.md.

About

cafe-mcp is run by 24PLUS (Dangamsoft, Korea), built on the CAFE engine. Website: https://24plus.ai.kr · Business API (Core API): https://24plus.ai.kr/business

License: Apache-2.0 for the code in this repository.