cafe-mcp is an MCP (Model Context Protocol) server that provides Korean Four Pillars (Saju, 사주) and Chinese BaZi (八字) chart calculation services for AI agents. Built by 24PLUS (Dangamsoft, South Korea) on the CAFE engine, it is designed to solve the problems of error-proneness and inconsistent results that general-purpose large language models have in chart calculation.
Purpose: Users provide their birth date and time to Claude, ChatGPT, Cursor, or another MCP client, and cafe-mcp returns structured Four Pillars charts, major luck cycles, the ten-thousand-year calendar (manseryeok), and classical text data. The AI then writes an interpretation in the user's language based on this data. Calculations are deterministic: the same input always yields the same chart.
Main capabilities: The server provides 9 read-only tools, all free. The calculation basis includes: the year pillar is bounded by Ipchun (입춘, the start of spring), the month pillar is bounded by each solar term, birth time is corrected by birth-place longitude, and Korean historical daylight saving time is handled automatically. For the zi hour, the default is "early zi hour" (조자시), meaning the day changes as soon as the zi hour begins; zi_hour: "late" (야자시) can be passed to keep a birth before midnight on the same day. Return values default to Korean and Hanja; passing lang="en" gives English term names. Each saju_chart result also returns a basis field explaining the calculation basis.
Usage: For claude.ai, the Claude app, and ChatGPT, add a custom connector and enter the server URL, then log in to 24PLUS and authorize; no key is needed. For clients such as Claude Code and Cursor, you can add the URL and log in via OAuth, or https://24plus.ai.kr/my create a key and send it as a Bearer Token. For clients that only support local (stdio) servers, you can use the npm bridge package and run it with a key; the bridge forwards all requests to the remote server and performs no calculations locally. Users can disconnect at any time under "My account > Connected AI".
Use cases: Suitable for developers, astrology researchers, and general users who need to provide reliable chart calculation capabilities for AI assistants, for building BaZi interpretation assistants, astrology consultation tools, or related educational applications.
Limitations: Yongshin (用神) and other engine judgments are not in the public tools and require a commercial agreement via the CAFE Core API. The service does not provide scores, grades, or fixed predictions. Birth data is used only for calculation; the server retains a one-way fingerprint for monthly chart counting and does not store the birth date itself. The old local npx wrapper (npx @dangamsoft/cafe-mcp) has been retired, and since 2.0.0 the npm package serves only as a stdio bridge. The code is licensed under Apache-2.0.