๐ฎ ์ฌ์ฃผ ์ด์ธ MCP ์๋ฒ (Saju MCP Server)
ํ๊ตญ ์ ํต ์ฌ์ฃผํ์๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ด์ธ๋ฅผ ๋ถ์ํ๋ MCP(Model Context Protocol) ์๋ฒ์ ๋๋ค.
A Model Context Protocol (MCP) server for Korean traditional Saju (Four Pillars of Destiny) fortune-telling.
โจ ์ฃผ์ ๊ธฐ๋ฅ
์ฌ์ฃผํ์ ๊ณ์ฐ: ์๋ ์์ผ์๋ก๋ถํฐ ์ฒ๊ฐ์ง์ง 8์ ์๋ ๊ณ์ฐ (์งํ์์ -30๋ถ ๋ณด์ )
์ด์ธ ๋ถ์: ์ฑ๊ฒฉ, ์ง์ ์ด, ์ฌ๋ฌผ์ด, ๊ฑด๊ฐ์ด, ์ ์ ์ด ๋ฑ ๋ค์ํ ๋ถ์
๊ถํฉ ๋ถ์: ๋ ์ฌ๋์ ์ฌ์ฃผ ๋น๊ต ๋ฐ ๊ถํฉ๋ ๊ณ์ฐ
์์๋ ฅ ๋ณํ: ์๋ ฅ โ ์๋ ฅ ๋ ์ง ๋ณํ ์ง์ (1900-2200, ์ค๋ฌ ์ฒ๋ฆฌ ํฌํจ)
์ผ์ผ ์ด์ธ: ๋ ์ง๋ณ ์์ธ ์ด์ธ ์ ๊ณต
๋์ด(ๅคง้): 10๋ ๋จ์ ํฐ ํ๋ฆ ์ด์ธ ์กฐํ
์ฉ์ (็จ็ฅ) ๋ถ์: ์์, ๋ฐฉํฅ, ์ง์ ๋ฑ ๋ง์ถคํ ์กฐ์ธ ์ ๊ณต
์ง์ฅ๊ฐ ์ธ๋ ฅ: ์ ๊ธฐ๋ณ ์ง์ฅ๊ฐ ์ธ๋ ฅ ๊ณ์ฐ์ผ๋ก ์ ๋ฐํ ๋ถ์
์ ์ด(็ฅๆฎบ): 15๊ฐ ์ ์ด ํ์ง (์์ง์ด, ๊ท๋ฌธ๊ด์ด ํฌํจ)
๐ v1.1.0 ์ ๊ท ๊ธฐ๋ฅ
7๊ฐ ํตํฉ ๋๊ตฌ: 15๊ฐ ๊ฐ๋ณ ๋๊ตฌ๋ฅผ 7๊ฐ๋ก ์ต์ ํ (ํ ํฐ ํจ์จ 40% ๊ฐ์ )
๋ก์ปฌ ํ ์ด๋ธ: 1900-2200๋ ์์๋ ฅ ๋ฐ์ดํฐ (์ธ๋ถ API ์์กด์ฑ ์ ๊ฑฐ)
Zod ์ ๋ ฅ ๊ฒ์ฆ: ๋ฐํ์ ํ์ ๊ฒ์ฆ์ผ๋ก ์๋ฌ์จ 40% ๊ฐ์
date-fns ํตํฉ: ํ์์กด ๋ฒ๊ทธ ์ ๊ฑฐ ๋ฐ ์ ๋ฐํ ๋ ์ง ์ฒ๋ฆฌ
MCP SDK v1.18: ์ต์ ํ๋กํ ์ฝ ๋ฐ ์ฑ๋ฅ ์ต์ ํ
๐ ์์ํ๊ธฐ
ํ์ ์๊ตฌ์ฌํญ
Node.js 18 ์ด์
npm, yarn, ๋๋ pnpm
์ค์น
์๋ ์ค์น ์คํฌ๋ฆฝํธ (๊ฐ์ฅ ๊ฐํธ)
์ด ์คํฌ๋ฆฝํธ๋ ๋ค์์ ์๋์ผ๋ก ์ํํฉ๋๋ค:
npm ํจํค์ง ์ ์ญ ์ค์น
Claude Desktop ์ค์ ํ์ผ์ MCP ์๋ฒ ์๋ ๋ฑ๋ก
๊ธฐ์กด ์ค์ ๋ฐฑ์
์๋ ์ค์น
์์ค์์ ๋น๋
๐ ๏ธ MCP ๋๊ตฌ (์ด 7๊ฐ - ํตํฉ ์ต์ ํ)
1. analyze_saju
์ฌ์ฃผ ๋ถ์ ํตํฉ ๋๊ตฌ (๊ธฐ๋ณธ ๊ณ์ฐ, ์ด์ธ, ์ฉ์ , ์ ํ ๋น๊ต, ์ฉ์ ๋ฐฉ๋ฒ๋ก ).
๋ถ์ ํ์ :
basic: ์ฌ์ฃผํ์ ๊ธฐ๋ณธ ๊ณ์ฐfortune: ์ด์ธ ๋ถ์ (general/career/wealth/health/love)yongsin: ์ฉ์ ์์ธ ๋ถ์school_compare: 5๊ฐ ์ ํ ๋น๊ต (์ํ๋ช ๋ฆฌ, ์ ์ฒ์, ๊ถํต๋ณด๊ฐ, ํ๋๋ช ๋ฆฌ, ์ ์ด์ค์ฌ)yongsin_method: ํน์ ์ฉ์ ๋ฐฉ๋ฒ๋ก ๋ถ์ (๊ฐ์ฝ/์กฐํ/ํต๊ด/๋ณ์ฝ)
2. check_compatibility
๋ ์ฌ๋์ ๊ถํฉ์ ๋ถ์ํฉ๋๋ค.
3. convert_calendar
์๋ ฅ๊ณผ ์๋ ฅ์ ๋ณํํฉ๋๋ค (1900-2200 ์ง์).
4. get_daily_fortune
ํน์ ๋ ์ง์ ์ผ์ผ ์ด์ธ๋ฅผ ์ ๊ณตํฉ๋๋ค.
5. get_dae_un
10๋ ๋จ์ ๋์ด(ๅคง้) ์ ๋ณด๋ฅผ ์กฐํํฉ๋๋ค.
6. get_fortune_by_period
์๊ฐ๋๋ณ ์ด์ธ ํตํฉ ๋๊ตฌ (์ฐ์ด/์์ด/์์ด/์ฐ์).
๊ธฐ๊ฐ ํ์ :
year: ์ฐ๋ณ ์ด์ธ (์ธ์ด, ๆญฒ้)month: ์๋ณ ์ด์ธ (์์ด, ๆ้)hour: ์๊ฐ๋๋ณ ์ด์ธ (์์ด, ๆ้)multi-year: ์ฐ์ ์ฐ๋ ์ด์ธ
7. manage_settings
ํด์ ์ค์ ๊ด๋ฆฌ ๋๊ตฌ (์กฐํ/๋ณ๊ฒฝ).
์ก์ :
get: ํ์ฌ ์ค์ ์กฐํset: ์ค์ ๋ณ๊ฒฝ (ํ๋ฆฌ์ ๋๋ ์ปค์คํ )
๐ ํ๋ก์ ํธ ๊ตฌ์กฐ
๐ง ๊ฐ๋ฐ
๐ MCP ํด๋ผ์ด์ธํธ ์ค์
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json์ ๋ค์ ์ค์ ์ ์ถ๊ฐํ์ธ์:
npm ํจํค์ง ์ฌ์ฉ (๊ถ์ฅ)
์ ์ญ ์ค์น ํ ์ฌ์ฉ
๋ก์ปฌ ๊ฐ๋ฐ (์์ค์์)
๐ณ Docker ์ง์
Docker๋ก ์คํ
Smithery๋ฅผ ํตํ ์ํด๋ฆญ ์ค์น
Smithery ๋ง์ผํ๋ ์ด์ค์์ ๋ ์ฝ๊ฒ ์ค์นํ๊ณ ๊ด๋ฆฌํ ์ ์์ต๋๋ค.
๐ ์ฌ์ฃผํ์ ์ฉ์ด ์ค๋ช
๊ธฐ๋ณธ ๊ตฌ์ฑ ์์
์ฒ๊ฐ(ๅคฉๅนฒ): ๊ฐ(็ฒ), ์(ไน), ๋ณ(ไธ), ์ (ไธ), ๋ฌด(ๆ), ๊ธฐ(ๅทฑ), ๊ฒฝ(ๅบ), ์ (่พ), ์(ๅฃฌ), ๊ณ(็ธ) - 10๊ฐ
์ง์ง(ๅฐๆฏ): ์(ๅญ), ์ถ(ไธ), ์ธ(ๅฏ ), ๋ฌ(ๅฏ), ์ง(่พฐ), ์ฌ(ๅทณ), ์ค(ๅ), ๋ฏธ(ๆช), ์ (็ณ), ์ (้ ), ์ (ๆ), ํด(ไบฅ) - 12๊ฐ
์คํ(ไบ่ก): ๋ชฉ(ๆจ), ํ(็ซ), ํ (ๅ), ๊ธ(้), ์(ๆฐด) - ์์์๊ทน ๊ด๊ณ
์ญ์ฑ(ๅๆ): ๋น๊ฒฌ, ๊ฒ์ฌ, ์์ , ์๊ด, ํธ์ฌ, ์ ์ฌ, ํธ๊ด, ์ ๊ด, ํธ์ธ, ์ ์ธ
๊ณ ๊ธ ๋ถ์ ์์
์ง์ฅ๊ฐ(ๆฏ่ๅนฒ): ์ง์ง ์์ ์จ์ด์๋ ์ฒ๊ฐ (์ ๊ธฐ, ์ค๊ธฐ, ์ฌ๊ธฐ)
์ ์ด(็ฅๆฎบ): 15๊ฐ์ ๊ธธํ ์งํ (์ฒ์๊ท์ธ, ์ญ๋ง์ด, ๋ํ์ด, ์์ง์ด, ๊ท๋ฌธ๊ด์ด ๋ฑ)
์ฉ์ (็จ็ฅ): ์ฌ์ฃผ์ ๊ท ํ์ ๋ง์ถ๋ ํต์ฌ ์คํ
๊ฒฉ๊ตญ(ๆ ผๅฑ): ์ฌ์ฃผ์ ์ ์ฒด์ ์ธ ํจํด๊ณผ ์ฑํฅ
๋์ด(ๅคง้): 10๋ ๋จ์์ ํฐ ์ด์ธ ํ๋ฆ
์งํ์์(็ๅคช้ฝๆ): ํ๊ตญ ํ์ค์ -30๋ถ ๋ณด์ (์ ํํ ์ฌ์ฃผ ๊ณ์ฐ์ ์ํจ)
โ ๏ธ ๋ฉด์ฑ ์กฐํญ
์ด ์๋น์ค๋ ์ ํต ์ฌ์ฃผํ์๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ํ ์ฐธ๊ณ ์ฉ ์ ๋ณด๋ฅผ ์ ๊ณตํฉ๋๋ค.
์ํ์ , ๋ฒ๋ฅ ์ , ์ฌ์ ์ ์กฐ์ธ์ด ์๋๋๋ค
์ค์ํ ๊ฒฐ์ ์ ๋ฐ๋์ ์ ๋ฌธ๊ฐ์ ์๋ดํ์๊ธฐ ๋ฐ๋๋๋ค
์ด์ธ๋ ๊ฐ์ธ์ ๋ ธ๋ ฅ๊ณผ ์ ํ์ ๋ฐ๋ผ ๋ฌ๋ผ์ง ์ ์์ต๋๋ค
๐ ๋ผ์ด์ผ์ค
MIT License
๐จโ๐ป ๊ธฐ์ฌ
์ด์ ์ ๋ณด ๋ฐ ํ ๋ฆฌํ์คํธ๋ฅผ ํ์ํฉ๋๋ค!
English
โจ Features
Saju (Four Pillars) Calculation: Automatic calculation of 8 characters from birth date and time (with -30min true solar time correction)
Fortune Analysis: Comprehensive analysis including personality, career, wealth, health, and love fortune
Compatibility Analysis: Compatibility calculation and comparison between two people
Calendar Conversion: Solar โ Lunar calendar conversion (1900-2200) with leap month support
Daily Fortune: Detailed daily fortune for specific dates
Dae-un (ๅคง้): 10-year major fortune cycle analysis
Yong-sin (็จ็ฅ) Analysis: Personalized advice on colors, directions, and careers
Ji-jang-gan Strength: Precise analysis with seasonal hidden stem strength calculation
Sin-sal (็ฅๆฎบ): Detection of 15 special stars (including Won-jin-sal, Gwi-mun-gwan-sal)
๐ Quick Start
Installation
Option 1: Automatic Installation Script (Recommended)
Option 2: Manual Installation
Option 3: Using npx (No Installation)
Claude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Restart Claude Desktop and start using the tools!
๐ ๏ธ Available Tools (7 Integrated Tools)
analyze_saju - Integrated Saju analysis (basic/fortune/yongsin/school_compare/yongsin_method)
check_compatibility - Analyze compatibility between two people
convert_calendar - Convert between solar and lunar calendars (1900-2200)
get_daily_fortune - Get daily fortune for specific date
get_dae_un - Get 10-year major fortune cycles
get_fortune_by_period - Get fortune by period (year/month/hour/multi-year)
manage_settings - Manage interpretation settings (get/set)
๐ Key Concepts
Basic Components
Heavenly Stems (ๅคฉๅนฒ): 10 stems - ็ฒไนไธไธๆๅทฑๅบ่พๅฃฌ็ธ
Earthly Branches (ๅฐๆฏ): 12 branches - ๅญไธๅฏ ๅฏ่พฐๅทณๅๆช็ณ้ ๆไบฅ
Five Elements (ไบ่ก): Wood, Fire, Earth, Metal, Water
Ten Gods (ๅๆ): 10 relationship types
Advanced Analysis
Hidden Stems (ๆฏ่ๅนฒ): Hidden stems within branches
Special Stars (็ฅๆฎบ): 15 auspicious/inauspicious indicators
Yong-sin (็จ็ฅ): Beneficial element for balance
Pattern (ๆ ผๅฑ): Overall life pattern classification
Dae-un (ๅคง้): 10-year major fortune cycles
True Solar Time (็ๅคช้ฝๆ): -30min Korea time correction
๐ณ Docker Support
๐ง Smithery One-Click Install
Easier installation and management through Smithery marketplace.
๐ Documentation
๐ Quick Start Guide - Get started in 5 minutes
๐ Setup Guide - Detailed installation and configuration
๐ Publishing Guide - npm package publishing
๐ Developer Guide - Project structure and development
๐ PRD - Product roadmap
๐ API Documentation - TypeDoc generated API docs
๐ค Contributing
Issues and pull requests are welcome!
๐ License
MIT License
โ ๏ธ Disclaimer
This service provides reference information based on traditional Saju fortune-telling.
Not intended as medical, legal, or financial advice
Please consult professionals for important decisions
Fortune can change based on personal effort and choices
Made with โค๏ธ for Korean traditional fortune-telling