npm @dangamsoft/cafe-mcpstdioApache-2.0updated 2mo ago
CAFE = Cross-weighted Analysis of the Five Elements Public OWL ontology for Korean Saju (์ฌ์ฃผ๋ช ๋ฆฌํ), with live MCP integration (v0.6.0) via the CAFE engine.
What can you do with cafe mcp?
cafe-mcp
CAFE = Cross-weighted Analysis of the Five Elements
Public OWL ontology for Korean Saju (์ฌ์ฃผ๋ช ๋ฆฌํ), with live MCP integration (v0.6.0) via the CAFE engine.
โ v0.6.0 โ The MCP server is live. A local (stdio) server exposing 5 free birth-chart tools โ
saju_chart,ohaeng_balance,gyeokguk,eumyang_johu,yongshin_candidatesโ alongside the public W3C OWL ontology. See Install below.
What this is
A formal W3C OWL 2 ontology for Korean Saju (์ฌ์ฃผ๋ช ๋ฆฌํ), grounded in classical Myeongli theory and six canonical treatises. Released under CC BY 4.0 for academic use, system integration, and downstream development.
The ontology is the public layer of the CAFE engine โ a deterministic Saju analysis system combining classical theory with ML-based yongshin classification.
W3C OWL 2 ์จํจ๋ก์ง ํํ๋ก ๊ณต๊ฐ๋ ํ๊ตญ ์ฌ์ฃผ๋ช ๋ฆฌํ ๋๋ฉ์ธ ๋ชจ๋ธ์ ๋๋ค. 6๋ ๊ณ ์ (์ ์ฒ์ยท์ํ์ง์ ยท๋๊ฐ๋งยท๊ถํต๋ณด๊ฐยท์ฐํด์ํยท์ผ๋ช ํตํ)์ ๊ทผ๊ฑฐํ๋ฉฐ, CC BY 4.0์ผ๋ก ํ์ ยท์์คํ ํตํฉยทํ์ ๊ฐ๋ฐ์ ์์ ๋กญ๊ฒ ์ฌ์ฉํ ์ ์์ต๋๋ค.
์ด ์จํจ๋ก์ง๋ CAFE ์์ง์ ๊ณต๊ฐ ๋ ์ด์ด์ ๋๋ค โ ๊ฒฐ์ ์ (deterministic) ์ฌ์ฃผ ๋ถ์ ์์คํ ์ผ๋ก, ๋ช ๋ฆฌํ ๊ณ ์ ์ด๋ก ๊ณผ ML ๊ธฐ๋ฐ ์ฉ์ ๋ถ๋ฅ๋ฅผ ๊ฒฐํฉํฉ๋๋ค.
Install (MCP server)
The server runs locally over stdio and talks to the hosted CAFE backend โ no API key, no local engine, no database required.
Claude Desktop โ add to claude_desktop_config.json:
{
"mcpServers": {
"cafe-mcp": {
"command": "npx",
"args": ["-y", "@dangamsoft/cafe-mcp"]
}
}
}
Cursor โ add the same mcpServers entry to ~/.cursor/mcp.json.
Then ask, e.g. "Show my saju for 1990-01-15 10:30, male."
Tools (5, free)
| Tool | Returns |
|---|---|
saju_chart |
Four Pillars chart โ stems/branches, Ten Gods, Spirit Stars |
ohaeng_balance |
Five Elements (ไบ่ก) distribution |
gyeokguk |
Chart structure/pattern (ๆ ผๅฑ) |
eumyang_johu |
Yin-Yang & Climate (้ฐ้ฝยท่ชฟๅ) balance |
yongshin_candidates |
Classical 5-type Yongshin (็จ็ฅ) candidates |
All tools take birth (YYYYMMDDHHMM) and gender (0 = female, 1 = male);
name and is_lunar are optional.
The AI-selected final Yongshin (91.1%-accuracy classifier), full Yongshin report, NCODE personality profile and AI naming are part of the 24Plus service and are not exposed here.
Custom backend: set CAFE_MCP_API_URL (the server POSTs to
${CAFE_MCP_API_URL}/try/panels; default https://24plus.ai.kr/api).
Ontology
- 1,711 RDF triples ยท SPARQL-queryable ยท W3C OWL 2 conformant
- Models:
- 60๊ฐ์ (Sexagenary cycle)
- 75 sinsal (special-star annotations)
- 18 patterns โ ์ ๊ฒฉ 10 + ํน์๊ฒฉ 8
- 5 yongshin types โ ๊ฒฉ๊ตญยท์ต๋ถยท๋ณ์ฝยท์กฐํยทํต๊ด
- 12 life stages (12์ด์ฑ)
- Grounded in 6 classical treatises:
- ์ ์ฒ์ (Diqianshui)
- ์ํ์ง์ (Zipingzhenquan)
- ๋๊ฐ๋ง (Lanjiangwang)
- ๊ถํต๋ณด๊ฐ (Qiongtongbaojian)
- ์ฐํด์ํ (Yuanhaiziping)
- ์ผ๋ช ํตํ (Sanmingtonghui)
See ontology/ for module structure, SPARQL examples, and
the integrated turtle file (cafe-ontology.ttl).
CAFE engine performance
The CAFE engine โ the inference system this ontology models โ operates inside the 24Plus platform. Validated performance on 5-class yongshin classification (๋ชฉ/ํ/ํ /๊ธ/์, 5-fold cross-validated):
| Metric | Result |
|---|---|
| Accuracy | 91.10% |
| F1-Score (Macro) | 91.08% |
| Precision (Macro) | 91.16% |
| Recall (Macro) | 91.10% |
| ROC AUC (Macro) | 97.76% |
Random baseline = 20% (5 classes). 4.56ร better than random. ML ensemble with weighted voting and probability calibration.
The engine itself remains proprietary; the ontology models the domain structure it operates on.
Note on East Asian Myeongli traditions
This MCP focuses on the Korean Myeongli (์ฌ์ฃผ๋ช ๋ฆฌํ) tradition, which shares its classical roots โ ๅญๅนณ็่ฉฎ (Zipingzhenquan), ๆปดๅคฉ้ซ (Diqianshui), ็ชฎ้ๅฏถ้ (Qiongtongbaojian), ๆทตๆตทๅญๅนณ (Yuanhaiziping), ไธๅฝ้ๆ (Sanmingtonghui), ๆฌๆฑ็ถฒ (Lanjiangwang) โ with the Chinese Bazi (ๅ ซๅญ) tradition.
Romanization uses Korean Revised Romanization (e.g., Yongshin, Sinsal). Hanja (์ ์) is preserved throughout the ontology.
๋ณธ MCP๋ ํ๊ตญ ๋ช ๋ฆฌํ(์ฌ์ฃผ๋ช ๋ฆฌํ) ์ ํต์ ๊ธฐ๋ฐํ๋ฉฐ, ์ค๊ตญ ๅ ซๅญ ์ ํต๊ณผ 6๋ ๊ณ ์ (์ํ์ง์ ยท์ ์ฒ์ยท๊ถํต๋ณด๊ฐยท์ฐํด์ํยท์ผ๋ช ํตํยท๋๊ฐ๋ง)์ ๊ณต์ ํฉ๋๋ค.
Documentation
- ๐ Ontology specification โ formal OWL ontology with SPARQL examples
Built by
Dangamsoft (๋จ๊ฐ์ํํธ) โ Korean AI company specializing in classical East Asian knowledge systems.
๐ https://24plus.ai.kr
License
- Code (live since v0.6.0): Apache 2.0
- Public OWL ontology (
ontology/): CC BY 4.0
The CAFE inference engine, scoring algorithms, ML model weights, and interpretation templates remain proprietary.
๋ ๊น์ ๋ถ์(AI ์ ์ ์ฉ์ ยท ์ ์ฒด ๋ฆฌํฌํธ)์ https://24plus.ai.kr
Install
Add cafe mcp to your client. Pick the one you use.
claude mcp add cafe-mcp -- npx -y @dangamsoft/cafe-mcpcodex mcp add cafe-mcp -- npx -y @dangamsoft/cafe-mcpamp mcp add cafe-mcp -- npx -y @dangamsoft/cafe-mcp{
"mcpServers": {
"cafe-mcp": {
"command": "npx",
"args": [
"-y",
"@dangamsoft/cafe-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"cafe-mcp": {
"command": "npx",
"args": [
"-y",
"@dangamsoft/cafe-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"cafe-mcp","command":"npx","args":["-y","@dangamsoft/cafe-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"cafe-mcp": {
"command": "npx",
"args": [
"-y",
"@dangamsoft/cafe-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"cafe-mcp": {
"command": "npx",
"args": [
"-y",
"@dangamsoft/cafe-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"cafe-mcp": {
"command": "npx",
"args": [
"-y",
"@dangamsoft/cafe-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"cafe-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@dangamsoft/cafe-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"cafe-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@dangamsoft/cafe-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @dangamsoft/cafe-mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
4 tools
cafe mcp exposes 4 tools to a connected agent.
- saju_chart
- Four Pillars chart โ stems/branches, Ten Gods, Spirit Stars
- ohaeng_balance
- Five Elements (ไบ่ก) distribution
- eumyang_johu
- Yin-Yang & Climate (้ฐ้ฝยท่ชฟๅ) balance
- yongshin_candidates
- Classical 5-type Yongshin (็จ็ฅ) candidates
Score
81 / 100
Excellent
- Documentation25/25
- Maintenance22/25
- Trust16/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 73 days ago
- Has a release history
- Repository is not archived
- Licensed Apache-2.0
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 4 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.6.4Latest | Jun 20, 2026 |
| 0.6.3 | Jun 18, 2026 |
| 0.6.2 | Jun 11, 2026 |
| 0.6.1 | Jun 11, 2026 |