Skip to main content
Glama
molpass

mcp-qimen

by molpass

mcp-qimen

점단 일시를 받아 기문둔갑(奇門遁甲) 9궁 포국(팔문·구성·팔신·천반/지반)을 세워 구조화 텍스트와 9궁 PNG를 반환하는 MCP 서버. (Python 런타임)

구조·네이밍·PNG·설치 규약은 STANDARD.md를 따른다(§6 Python 블록). mcp-liuren과 동일한 Python 패턴.


구성 / 계산

  • 포국 엔진: kinqimen — 時家奇門, 일시를 직접 받아 포국(달력 변환 레이어 불필요).

  • 천체력 의존: sxtwl, ephem (절기/간지 계산용 — kinqimen 내부 사용).

  • 렌더: Pillow — 洛書 3×3 9궁, 한자/한글 폰트.

  • 결정론적: 같은 입력 → 같은 포국.

局(국) 신뢰성: 예제(2024-02-10 14:30, 立春)의 排局 = 陽遁二局下元. 立春 三元局數(陽 8·5·2, 上·中·下元) 표준표에서 下元 = 陽2局과 일치한다.


Related MCP server: Mingli MCP Server

도구

get_qimen

파라미터

타입

필수

기본

설명

datetime_str

string YYYY-MM-DD HH:MM

점단 일시

method

chaibu | zhirun

chaibu

拆補(1) / 置閏(2)

출력 (둘 다 반환):

  1. 구조화 텍스트 — 9궁(神·星·門·天盤/地盤), 排局·節氣·値符値使·旬空·馬星

  2. 9궁 PNG (1080×1176, 洛書 배치 · 値符/値使 궁 강조)

예제 출력: examples/qimen_example.png (2024-02-10 14:30, 拆補).


설치 (Python 3.10/3.11)

⚠️ sxtwl/ephem은 바이너리 휠이 필요하다. Windows에서는 Python 3.10 또는 3.11을 쓴다 (3.12+는 sxtwl 휠 부재 → 빌드 실패). Linux는 3.12도 manylinux 휠로 가능.

git clone https://github.com/molpass/mcp-qimen.git
cd mcp-qimen
python -m venv .venv && . .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -r requirements.txt
pip install --no-deps kinqimen==0.0.6.6

두 번째 줄(--no-deps)이 필요한 이유: kinqimen이 sxtwl==2.0.6/ephem==4.1.3(휠 없음)을 핀하므로, 휠이 있는 상위 버전(requirements.txt)을 먼저 깔고 kinqimen은 의존성 없이 설치한다.

예제 9궁을 직접 생성해 보려면:

python examples/generate-example.py   # examples/qimen_example.png 재생성

폰트: 한자·한글 라벨을 위해 한글 가능 폰트가 필요하다. Windows는 Malgun Gothic 기본 탑재. Linux는 Noto CJK / Nanum 권장.


MCP 등록 (서버명 qimen, STANDARD §6 Python)

{
  "mcpServers": {
    "qimen": {
      "command": "/abs/path/mcp-qimen/.venv/bin/python",
      "args": ["/abs/path/mcp-qimen/server.py"]
    }
  }
}

Windows 예: "command": "C:/Users/<you>/mcp-qimen/.venv/Scripts/python.exe", "args": ["C:/Users/<you>/mcp-qimen/server.py"]


스킬

페어링 스킬: skill/qimen.skill.md.

About / 제작

Hermes Agent용 MCP — molpass의 바이브 코딩(vibe coding) 프로젝트.

  • 아이디어·방향: molpass (이정훈) · https://zeolinex.com

  • 기획: Claude (Chat)

  • 개발: Claude Code

자가 호스팅 Hermes Agent에 도구로 붙여 쓰는 MCP 서버입니다.

같은 모음:

License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Enables traditional Chinese divination calculations through Liu Ren (六壬) chart generation. Provides tools for calculating Liu Ren divination charts based on specified dates and times, along with current time retrieval functionality.
    Last updated
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI tools to perform Chinese fortune-telling analysis including Ziwei Doushu (Purple Star Astrology) and Bazi (Four Pillars) chart generation, fortune reading, and element analysis. Supports multiple calendar systems and output formats for comprehensive divination services.
    Last updated
    7
    5
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Enables traditional Chinese fortune-telling through BaZi (Four Pillars) analysis, including solar/lunar date conversion, Five Element balance calculations, Ten Gods deduction, and destiny interpretation for metaphysics applications.
    Last updated
    30
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Calculates and returns a Ziwei Doushu (Purple Star Astrology) chart based on birth date, time, and gender. Returns both structured text of the 12 palaces and a PNG image of the chart.
    Last updated
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Generate BaZi charts from birth details. Explore Four Pillars, solar terms, and Luck Pillars for d…

  • Chinese metaphysics (bazi, qimen, 5-element) as decision-support tools for AI agents.

  • Zi Wei Dou Shu for AI agents: free natal charts, six transit levels, and optional readings.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/molpass/mcp-qimen'

If you have feedback or need assistance with the MCP directory API, please join our Discord server