
nmhaaa3218/tuvimcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Tử Vi Horoscope MCP Server - a Python MCP server for generating, analyzing, and managing Vietnamese Tử Vi astrology charts with clean JSON output for LLM agents.
概要
This is a Model Context Protocol (MCP) server developed in Python that calculates and manages Vietnamese "Tử Vi" horoscope charts. It is optimized to output clean, structured JSON data that LLM agents can easily read, interpret, and explain to users. - Converts Solar or Lunar birth dates and times into a full Tử Vi chart (Thiên Bàn and Địa Bàn with 12 houses and over 100 stars). - Automatically recognizes all 51 traditional astrological formations (51 Cách Cục Trung Châu Phái) during chart generation, returning matched patterns with descriptions, poems (Cổ Ca), commentary (Bình Chú), and pros/cons (Ưu/Khuyết điểm). - Generates beautiful, print-ready chart images with element-based colored text (Green for Wood, Red for Fire, Yellow for Earth, Gray for Metal, Blue for Water), custom badge boxes for Tuần & Triệt, and geometric connecting lines highlighting the Mệnh and Thân relationship.
README
以下は原文 README の抜粋です。原文を見る。
Tu Vi Horoscope MCP Server
This is a Model Context Protocol (MCP) server developed in Python that calculates and manages Vietnamese “Tử Vi” horoscope charts. It is optimized to output clean, structured JSON data that LLM agents can easily read, interpret, and explain to users.
English Documentation
Quick Links
- Full Documentation
- Contributing Guidelines
- Changelog / Release History
- Example JSON Outputs & Scripts
Features
- Horoscope Generation: Converts Solar or Lunar birth dates and times into a full Tử Vi chart (Thiên Bàn and Địa Bàn with 12 houses and over 100 stars).
- 51 Cách Cục Evaluation Engine: Automatically recognizes all 51 traditional astrological formations (51 Cách Cục Trung Châu Phái) during chart generation, returning matched patterns with descriptions, poems (Cổ Ca), commentary (Bình Chú), and pros/cons (Ưu/Khuyết điểm).
- High-Quality Image Rendering: Generates beautiful, print-ready chart images with element-based colored text (Green for Wood, Red for Fire, Yellow for Earth, Gray for Metal, Blue for Water), custom badge boxes for Tuần & Triệt, and geometric connecting lines highlighting the Mệnh and Thân relationship.
- Vận Hạn (Transit Analysis): Computes transit stars (Lưu tinh) and maps the active 10-year period (Đại Hạn), yearly period (Tiểu Hạn), monthly period (Nguyệt Hạn), and daily period (Nhật Hạn) for any target year, month, and day (e.g., 2026).
- Auspicious Date & Time Checker: Evaluates Hoàng Đạo/Hắc Đạo, 12 Trực, 28 Tú, Tiết Khí, travel directions, and auspicious hours for any calendar date.
- Local Persistence (Python Library): Includes built-in SQLite database utilities (
tuvi_mcp.database) for Python library consumers to save, retrieve, list, and delete horoscope profiles. (MCP tools are stateless and do not require a database.) - Flexible Hour Mapping: Automatically maps calendar hours (e.g., “14:30”) or string names (e.g., “Ngọ”, “Tý”) to the correct Earthly Branch hour index.
- Local Inlining (Independent): Includes the core
ansaotuvicalculation logic internally with custom Tuần/Triệt double-cung fixes.
Python Library API
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"tuvi-horoscope": {
"command": "/path/to/TuViMCP/.venv/bin/tuvi-mcp",
"args": []
}
}
}