timemap-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@timemap-mcp What's the day quality for today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
timemap-mcp
Chinese metaphysics calculations for AI agents — BaZi, Tong Shu, Feng Shui, and more.
An MCP (Model Context Protocol) server that gives AI agents access to accurate Chinese metaphysics calculations. Built on a verified engine with 740+ tests checked against Joey Yap reference data.
About
I discovered BaZi in 2017 and approached it with healthy skepticism — it wasn't the first system of correspondences I'd studied. But this one stayed with me.
Over the years I've studied under Master Joey Yap through courses, seminars, his Telegram community, and many books. As a developer, I naturally started building tools — small "clocks" that map the cyclic energy movements described in Chinese metaphysics.
timemap-mcp is born from those years of study and building. I wanted to make these calculations accessible to everyone through AI, with the accuracy that practitioners expect. A full interactive app (TimeMap) is on the way — this MCP server is the engine that powers it, now available for any AI agent to use.
Related MCP server: mcp-luopan
Quick Start
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"timemap": {
"command": "uvx",
"args": ["timemap-mcp"]
}
}
}Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"timemap": {
"command": "uvx",
"args": ["timemap-mcp"]
}
}
}That's it. No API keys, no config needed.
Note: The first run downloads the DE421 ephemeris file (~31 MB) for precise solar term calculations. This is a one-time download cached in
~/.skyfield/.
Tools
Tool | Description | Natal needed? |
| Complete BaZi chart — Four Pillars, Luck Pillars, Life Gua, 10 Gods, auxiliary stars | Yes |
| Year, Month, Day pillars for any date | No |
| Tong Shu indicators — Day Officer, 28 Constellation, Flying Star | No |
| Check natal clashes, combinations, and breakers for a date | Yes |
| 12 two-hour energy blocks for any day | No |
| 10-year Luck Pillar timeline (decades of fortune) | Yes |
| Xuan Kong Da Gua hexagram by stem-branch pair | No |
| Exact date of any of the 24 solar terms | No |
Example Prompts
Try asking your AI agent:
"Calculate my BaZi chart. I was born January 26, 1994 at 7:11 AM, male."
"What's the day quality for today?"
"Show me the hourly pillars for tomorrow."
"What are my luck pillars? Born March 15, 1985 at 10:30 AM, female."
"Look up the hexagram for Ren Zi."
"When is Lichun (Start of Spring) in 2026?"
"Check if today has any clashes with my natal chart."
Input Formats
Dates: ISO 8601 —
1994-01-26Times: 24-hour local time —
07:11Gender:
maleorfemaleStems: Chinese (
壬), pinyin (Ren), or index (8)Branches: Chinese (
子), pinyin (Zi), animal (Rat), or index (0)Timezone (optional): IANA format —
Asia/Kuala_Lumpur,Europe/Bucharest
Engine Accuracy
The calculation engine behind this server is not a toy:
740+ automated tests covering every module
Verified against Joey Yap's Power Planner — pillar characters, Day Officers, 10 Gods mappings
Solar term boundaries computed via NASA JPL DE421 ephemeris (not table approximations)
Month boundaries follow Jie Qi (solar terms), not Gregorian dates — February pillar may start Feb 3 or 4 depending on the year
Roadmap
The free tier covers the fundamentals. Coming in v2 (premium):
10 Gods Strength — proprietary percentage algorithm (reverse-engineered, MSE=0.5)
Daily Score (0-100) — composite score with transparent 6-factor breakdown
Qi Men Dun Jia — destiny palace, annual chart, hourly interpretation
Monthly Energy — 10 Gods deltas, life area radar, emotional profiling
Daily Briefing — complete orchestrated daily digest
Development
git clone https://github.com/cnick26/timemap-mcp.git
cd timemap-mcp
python -m venv .venv
.venv/Scripts/pip install -e ".[dev]" # Windows
# or: .venv/bin/pip install -e ".[dev]" # Linux/macOS
pytest -q # 740+ testsSyncing the engine from TimeMap
python scripts/sync_engine.py --source ../TimeMap/backend/app/engine
pytest -q # Verify everything still passesSupport
If this project helps you, consider:
Starring the repo
License
Built with care, verified with rigor, shared with humility.
Available Tools
8 toolsget_daily_interactionsA
Check natal chart clashes and combinations for a specific date.
Args: date: ISO 8601 date to check, e.g. '2026-04-10' birth_date: Your birth date, e.g. '1994-01-26' birth_time: Your birth time as 'HH:MM', e.g. '07:11' timezone: IANA timezone (optional)
Inputs: date (required), birth_date (required), birth_time (required), timezone. Returns: result
get_daily_pillarsA
Get the Year, Month, and Day pillars for any date.
Args: date: ISO 8601 date, e.g. '2026-04-10'
Inputs: date (required). Returns: result
get_day_qualityA
Get Tong Shu day quality indicators — Day Officer, 28 Constellation, and Flying Star. No natal chart needed. Instant calculation.
Args: date: ISO 8601 date, e.g. '2026-04-10'
Inputs: date (required). Returns: result
get_hourly_pillarsA
Get the 12 two-hour pillar blocks for any date (23:00-22:59).
Args: date: ISO 8601 date, e.g. '2026-04-10'
Inputs: date (required). Returns: result
get_luck_pillarsB
Calculate the 10-year Luck Pillar timeline (decades of fortune).
Args: birth_date: ISO 8601 date, e.g. '1994-01-26' birth_time: Local time as 'HH:MM', e.g. '07:11' gender: 'male' or 'female' timezone: IANA timezone (optional)
Inputs: birth_date (required), birth_time (required), gender (required), timezone. Returns: result
get_natal_chartA
Calculate a complete BaZi natal chart with Four Pillars, Luck Pillars, Life Gua, and stars.
Args: birth_date: ISO 8601 date, e.g. '1994-01-26' birth_time: Local time as 'HH:MM', e.g. '07:11' gender: 'male' or 'female' timezone: IANA timezone, e.g. 'Asia/Kuala_Lumpur' (optional, improves accuracy near solar term boundaries)
Inputs: birth_date (required), birth_time (required), gender (required), timezone. Returns: result
get_solar_termA
Get the exact date of a solar term (Jie Qi) for any year.
There are 24 solar terms per year. Term 1 = Lichun (Start of Spring, ~Feb 4).
Args: year: Year to query, e.g. 2026 term_number: Solar term number 1-24 (1=Lichun, 2=Yushui, ..., 24=Dahan)
Inputs: year (required), term_number (required). Returns: result
lookup_hexagramA
Look up the Xuan Kong Da Gua hexagram for a stem-branch pillar.
Args: stem: Heavenly Stem — Chinese ('壬'), pinyin ('Ren'), or index (0-9) branch: Earthly Branch — Chinese ('子'), pinyin ('Zi'), animal ('Rat'), or index (0-11)
Inputs: stem (required), branch (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct aspect of Chinese astrology: daily interactions, pillars, quality, hourly pillars, luck pillars, natal chart, solar terms, and hexagrams. There is no overlap in purpose.
All tools follow a verb_noun pattern in snake_case, with most using 'get_' and one using 'lookup_'. This minor deviation is still consistent and predictable.
8 tools cover a comprehensive range of BaZi functionalities without being excessive. Each tool serves a clear purpose and contributes to the server's domain.
The tool set covers core BaZi operations: chart creation, pillar calculations, daily quality, solar terms, and hexagrams. A minor gap is the lack of a compatibility or relationship analysis tool, but the set is largely complete for individual chart analysis.
Related MCP Connectors
Deterministic BaZi and Chinese metaphysics tools for AI agents: charts, divination, almanac.
BaZi four pillars, Chinese zodiac, lunisolar calendar and almanac days for AI agents.
Generate BaZi charts from birth details. Explore Four Pillars, solar terms, and Luck Pillars for d…
Free BaZi, I Ching, tarot, Zi Wei and bilingual learning tools with transparent methods. No API key.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables 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.712 npm27 PyPI6MIT
- AlicenseAqualityDmaintenanceProvides tools for Bazi (Chinese astrology) chart calculation and analysis, enabling LLMs to generate accurate birth charts, determine patterns, and answer follow-up questions based on actual calculations rather than model knowledge.2MIT
- AlicenseAqualityBmaintenanceProvides traditional Chinese astrology (Bazi, Ziwei) and divination (Liuyao, Meihua, Qimen, etc.) calculations as MCP tools for AI assistants.18266 npm131Apache 2.0

OpenFate Bazi MCPofficial
AlicenseAqualityBmaintenanceEnables AI agents to calculate deterministic Bazi (Four Pillars) charts with True Solar Time and Earthly Branch interactions, avoiding LLM hallucination of calendrical math.6161 npm162MIT