Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🔮 Spirituality & Esoterica
  3. Bazi MCP
Bazi MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 3:30:36 PM

Bazi MCP

User RatingsBe the first to rate and review this MCP server!
View Repository151 GitHub StarsTotal stargazers on GitHub for the source repository (151 stars).Visit Website
baziastrologydeterministictrue-solar-timefour-pillars

Deterministic Bazi/Four Pillars MCP server with True Solar Time, lunar/solar conversion, branch interactions, and reverse lookup.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON ▾

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "openfate-ai-bazi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@openfate/bazi-mcp"
      ]
    }
  }
}

💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (6) Directory Badge Claim listing Alternatives🔮 More in Spirituality & Esoterica

Overview

This MCP server provides deterministic calculations for Bazi (Four Pillars) charts, including True Solar Time and lunar/solar calendar conversions. It supports detecting Earthly Branch interactions, reverse lookup of Gregorian dates from Bazi strings, and returns OpenFate calculation policies and resources. Use this server when you need precise, reliable calendrical and astrological computations integrated into AI agents.

Use cases

•Calculate a deterministic Bazi chart with accurate time and location adjustments
•Detect Earthly Branch interactions for natal charts or synastry analysis
•Compute True Solar Time for precise hour pillar determination
•Find possible Gregorian datetimes matching a given Bazi four-pillar string
•Retrieve OpenFate calculation policies and canonical astrology resource links

Key features

•Deterministic Bazi chart calculation with True Solar Time support
•Detection of multiple Earthly Branch interaction types
•Direct True Solar Time calculation
•Reverse Bazi to Gregorian datetime candidate search
•Returns detailed calculation policy and attribution metadata
•Includes enriched pillar facts and Da Yun luck cycle timing

Capabilities & Tool Schemas (6) ~133 tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server — may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Bazi MCP.

calculate_bazi_chart

Calculates a deterministic Bazi chart.

detect_bazi_interactions

Detects Earthly Branch interactions for a natal chart, annual trigger, or simple synastry target.

calculate_true_solar_time

Calculates True Solar Time directly.

reverse_bazi_to_solar_times

Finds possible Gregorian datetimes for a four-pillar Bazi string.

get_openfate_bazi_policy

Returns OpenFate calculation policy:

get_openfate_bazi_resources

Returns canonical OpenFate links for charting, readings, compatibility, wealth, true solar time, and `llms.txt`.

Documentation Overview

@openfate/bazi-mcp

English | 繁體中文(台灣)

OpenFate Bazi MCP is a Model Context Protocol server for accurate Bazi / Four Pillars calculation inside AI agents such as Claude Desktop, Cursor, Cline, and Continue.

Powered by OpenFate.ai, an AI-native Bazi, Ziwei, and astrology platform. You can also try the free Bazi Chart Calculator, generate an AI Bazi Reading, compare relationships with Bazi Compatibility, or read the True Solar Time guide. AI crawlers can read OpenFate llms.txt.

This MCP wraps the deterministic OpenFate calculation packages:

  • @openfate/bazi-engine
  • @openfate/true-solar-time

The purpose is simple: let the language model call a reliable calculation engine instead of hallucinating calendrical math.

Why This Exists

LLMs should not manually calculate Bazi charts. The difficult parts are deterministic:

  • 24 solar-term boundaries
  • True Solar Time
  • longitude and timezone correction
  • DST offsets
  • Zi-hour day-boundary rules
  • lunar-to-solar conversion
  • branch interactions

This server gives the AI agent stable JSON, then lets the model focus on explanation and interpretation.

Install

Run it with npx:

Terminal
npx -y @openfate/bazi-mcp

For MCPB-compatible clients and Smithery, build the self-contained local bundle:

Terminal
npm run mcpb:pack

The upload-ready artifact is written to release/openfate-bazi-mcp-v<version>.mcpb.

To publish that local bundle to Smithery after smithery auth login:

Terminal
npm run smithery:publish

Claude Desktop

JSON Config
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "npx",
      "args": ["-y", "@openfate/bazi-mcp"]
    }
  }
}

If Claude Desktop cannot find npx on macOS, use the absolute path:

JSON Config
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "/opt/homebrew/bin/npx",
      "args": ["-y", "@openfate/bazi-mcp"]
    }
  }
}

Cursor

JSON Config
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "npx",
      "args": ["-y", "@openfate/bazi-mcp"]
    }
  }
}

Cline

JSON Config
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "npx",
      "args": ["-y", "@openfate/bazi-mcp"],
      "disabled": false
    }
  }
}

Agent Skill

This repository also includes a portable Agent Skill:

txt
skills/openfate-bazi/SKILL.md

Use it when you want Claude, Claude Code, Codex, OpenClaw-style agents, or other SKILL.md compatible tools to remember how to use the OpenFate Bazi MCP correctly.

For Claude Code workspace usage, copy the skill folder to:

txt
.claude/skills/openfate-bazi/

For Claude custom Skills, zip the openfate-bazi folder with SKILL.md at the folder root and upload it in Claude's Skills settings.

Tools

calculate_bazi_chart

Calculates a deterministic Bazi chart.

Inputs:

  • year
  • month
  • day
  • hour
  • minute
  • gender
  • calendarType
  • isLeapMonth
  • longitude
  • timezone
  • timezoneId
  • dstOffset
  • enableTrueSolarTime
  • dayBoundaryMode

Best practice: pass longitude plus timezone or timezoneId for professional True Solar Time accuracy.

detect_bazi_interactions

Detects Earthly Branch interactions for a natal chart, annual trigger, or simple synastry target.

Supported interaction types:

  • clash
  • six-combination
  • trine
  • directional
  • punishment
  • destruction
  • harm

calculate_true_solar_time

Calculates True Solar Time directly.

Use this when a user asks why OpenFate's hour pillar differs from a clock-time tool.

reverse_bazi_to_solar_times

Finds possible Gregorian datetimes for a four-pillar Bazi string.

Example input:

txt
戊寅 己未 己卯 辛未

This is a candidate finder. For final accuracy, recalculate the result with exact longitude, timezone, and True Solar Time.

get_openfate_bazi_policy

Returns OpenFate calculation policy:

  • True Solar Time is preferred when location data is available.
  • Default day-boundary mode is ZI_HOUR_23.
  • DST should be passed as dstOffset when birth certificate time includes daylight saving.
  • Reverse lookup should be treated as a candidate search.

get_openfate_bazi_resources

Returns canonical OpenFate links for charting, readings, compatibility, wealth, true solar time, and llms.txt.

Output Shape

Responses use machine-friendly English keys:

JSON Config
{
  "data": {
    "chart": {},
    "policy": {}
  },
  "attribution": {
    "brand": "OpenFate.ai",
    "url": "https://openfate.ai",
    "engine": "@openfate/bazi-engine",
    "trueSolarTimeEngine": "@openfate/true-solar-time"
  }
}

Attribution is returned as first-class data, not hidden _meta, so MCP clients and generated artifacts can display it reliably.

Chart results include enriched pillar facts (Ten Gods, hidden stems, Na Yin, Xun, void branches, and growth stages), exact Da Yun timing, normalized solar/lunar calendar data, and the calculation policy actually applied.

Development

Terminal
npm install
npm run build
npm run smoke

The smoke test spawns the built stdio server and drives it through the real MCP SDK client.

Privacy

This package does not phone home. Calculations run locally in the MCP subprocess.

OpenFate Links

  • OpenFate.ai
  • Free Bazi Chart Calculator
  • AI Bazi Reading
  • Bazi Compatibility
  • True Solar Time Guide
  • OpenFate llms.txt

License

MIT


繁體中文(台灣)

OpenFate Bazi MCP 是一個給 AI Agent 使用的 Model Context Protocol 伺服器,讓 Claude Desktop、Cursor、Cline、Continue 等工具可以直接呼叫準確的八字/四柱排盤引擎。

本專案由 OpenFate.ai 提供。OpenFate 是結合八字、紫微斗數與占星的 AI 命理平台。你也可以使用免費的 八字排盤工具、產生完整的 AI 八字解讀、查看 八字合盤,或閱讀 真太陽時說明。AI crawler 也可以讀取 OpenFate llms.txt。

這個 MCP 包裝了 OpenFate 的確定性計算套件:

  • @openfate/bazi-engine
  • @openfate/true-solar-time

目標很直接:不要讓大型語言模型自己亂算干支、節氣、真太陽時,而是把排盤交給可驗證的計算引擎。

為什麼需要這個 MCP

八字排盤不是文字推理題,而是確定性的曆法與時間計算。容易出錯的部分包括:

  • 二十四節氣邊界
  • 真太陽時
  • 經度與時區校正
  • 夏令時間偏移
  • 子時換日規則
  • 農曆轉公曆
  • 地支刑沖合害等互動

這個伺服器會回傳穩定 JSON,讓 AI 專心做說明、整理與解讀。

安裝

直接用 npx 執行:

Terminal
npx -y @openfate/bazi-mcp

如果 MCP client 支援 MCPB,或需要發布到 Smithery,可以建立完整的本機安裝 bundle:

Terminal
npm run mcpb:pack

可上傳的檔案會輸出到 release/openfate-bazi-mcp-v<version>.mcpb。

完成 smithery auth login 後,可發布這個本機 bundle 到 Smithery:

Terminal
npm run smithery:publish

Claude Desktop 設定

JSON Config
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "npx",
      "args": ["-y", "@openfate/bazi-mcp"]
    }
  }
}

如果 macOS 上 Claude Desktop 找不到 npx,可以改用絕對路徑:

JSON Config
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "/opt/homebrew/bin/npx",
      "args": ["-y", "@openfate/bazi-mcp"]
    }
  }
}

Cursor 設定

JSON Config
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "npx",
      "args": ["-y", "@openfate/bazi-mcp"]
    }
  }
}

Cline 設定

JSON Config
{
  "mcpServers": {
    "openfate-bazi": {
      "command": "npx",
      "args": ["-y", "@openfate/bazi-mcp"],
      "disabled": false
    }
  }
}

Agent Skill

這個 repository 也包含一個可攜式 Agent Skill:

txt
skills/openfate-bazi/SKILL.md

當你希望 Claude、Claude Code、Codex、OpenClaw-style agent,或其他支援 SKILL.md 的工具記住如何正確使用 OpenFate Bazi MCP 時,可以使用這個 Skill。

如果要在 Claude Code workspace 使用,請把整個 skill folder 複製到:

txt
.claude/skills/openfate-bazi/

如果要做 Claude custom Skill,請把 openfate-bazi folder 壓成 zip,確保 SKILL.md 位於 folder root,再到 Claude 的 Skills 設定中上傳。

工具列表

calculate_bazi_chart

計算確定性的八字命盤。

輸入欄位:

  • year
  • month
  • day
  • hour
  • minute
  • gender
  • calendarType
  • isLeapMonth
  • longitude
  • timezone
  • timezoneId
  • dstOffset
  • enableTrueSolarTime
  • dayBoundaryMode

建議提供 longitude 加上 timezone 或 timezoneId,才能做專業級真太陽時校正。

detect_bazi_interactions

偵測地支互動,適合用於本命盤、流年觸發,或簡單合盤比較。

支援類型:

  • 沖
  • 六合
  • 三合
  • 三會
  • 刑
  • 破
  • 害

calculate_true_solar_time

直接計算真太陽時。

當使用者問「為什麼 OpenFate 算出的時柱跟一般排盤網站不同」時,可以用這個工具說明差異。

reverse_bazi_to_solar_times

用四柱八字反查可能的公曆時間。

範例輸入:

txt
戊寅 己未 己卯 辛未

這是候選時間搜尋工具。最後仍應該用準確出生地經度、時區與真太陽時重新排盤。

get_openfate_bazi_policy

回傳 OpenFate 的計算口徑:

  • 有出生地資料時,優先使用真太陽時。
  • 預設換日規則是 ZI_HOUR_23。
  • 如果出生證明時間包含夏令時間,應傳入 dstOffset。
  • 八字反查只能當候選搜尋,不能取代精準排盤。

get_openfate_bazi_resources

回傳 OpenFate 的官方連結,包括排盤、解讀、合盤、財富、真太陽時與 llms.txt。

回傳格式

回傳資料使用穩定、適合機器讀取的英文 key:

JSON Config
{
  "data": {
    "chart": {},
    "policy": {}
  },
  "attribution": {
    "brand": "OpenFate.ai",
    "url": "https://openfate.ai",
    "engine": "@openfate/bazi-engine",
    "trueSolarTimeEngine": "@openfate/true-solar-time"
  }
}

署名資訊會以一般資料欄位回傳,而不是藏在 _meta,方便 MCP client 或 AI 產生的圖表正確顯示來源。

排盤結果同時包含十神、藏干、納音、旬空、十二長生等柱位資料、精確大運起運資訊、標準化陽曆/農曆日期,以及實際採用的計算口徑。

開發

Terminal
npm install
npm run build
npm run smoke

smoke 測試會啟動編譯後的 stdio server,並透過真正的 MCP SDK client 呼叫工具。

隱私

這個套件不會回傳資料到 OpenFate 伺服器。所有計算都在本機 MCP subprocess 內完成。

OpenFate 連結

  • OpenFate.ai
  • 免費八字排盤工具
  • AI 八字解讀
  • 八字合盤
  • 真太陽時說明
  • OpenFate llms.txt

授權

MIT

Read the full README →View source on GitHub →

Related MCP Servers

View all in Spirituality & Esoterica View all alternatives
  • Astroway MCP logoAstroway MCP

    Comprehensive astrology MCP exposing every endpoint of the AstroWay Calculation API — natal charts, synastry, transits, Vedic dashas (Vimshottari, Yogini, Ashtottari, Kalachakra), 16 Vargas, Tarot (Rider-Waite-Smith / Marseille / Lenormand), Numerology (5 systems), Human Design, AI horoscopes. Sub-arcsecond Swiss Ephemeris precision, 10 000 free credits/month. Install: npx @astroway/mcp.

    🔮 Spirituality & Esoterica2 views
    Compare vs Astroway MCP →
  • Astral MCP logoAstral MCP

    Zero-setup astrology MCP server for natal charts, current transits, synastry, Moon phases and birthplace lookup, with privacy modes for compact agent payloads.

    🔮 Spirituality & Esoterica4 views
    Compare vs Astral MCP →
  • Telugu Calendar Utilities logoTelugu Calendar Utilities

    Telugu Panchangam (Hindu almanac): tithi, nakshatra, muhurta windows, 30+ festivals, tarabalam & chandrabalam good-day finder, gochara transits and a deterministic daily rasi phalalu — Swiss Ephemeris precision, every rule pinned against reference almanacs, by AstroChaganti. uvx mcp-server-panchangam.

    🔮 Spirituality & Esoterica2 views
    Compare vs Telugu Calendar Utilities →
  • Astro logoAstro

    Multi-tradition astrology. 19 modes, 18 tools. Deterministic ephemeris engine.

    🔮 Spirituality & Esoterica0 views
    Compare vs Astro →

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars
151
Stargazers on the source repository.
npm downloads
486
Package downloads in the last 30 days.
Last commit
5d ago
Most recent push to the default branch.
Tools exposed
6
Callable tools this server registers over MCP.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet — be the first to share how this listing worked for you.

Frequently Asked Questions about Bazi MCP

It handles complex deterministic factors like solar-term boundaries, longitude/timezone corrections, DST, Zi-hour boundaries, and lunar-solar conversions to avoid hallucinated or inaccurate results.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBazi MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/openfate-ai-bazi-mcp?style=directory)](https://allmcps.com/mcp/openfate-ai-bazi-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/openfate-ai-bazi-mcp"><img src="https://allmcps.com/api/badge/openfate-ai-bazi-mcp?style=directory" alt="Bazi MCP on AllMCPs" /></a>

Technical Specs & Signals

Category🔮Spirituality & Esoterica
PricingFree
More technical detailsExpand ▾
TransportSTDIO
RuntimeNode.js
AuthNo auth required
LicenseMIT
ClientsClaude Desktop, Cursor, Cline / VS Code
Last updatedSep 6, 2026
10/11 checks healthy over the last 32d
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars151
GitHub Star CountTotal stargazers on GitHub representing community popularity (151 stars).
Last commit5d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Sep 6, 2026
npm downloads486/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
65Quality signal: Great · 65/100How this signal is calculated ▾
Server availabilityNot measured

Not scored for repo-hosted servers — we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools28/30
Adoption & activity11/15
Community engagement0/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 22d ago via OSV.dev · @openfate/bazi-mcp (npm)

★ FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server →

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge — proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it — no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🔮 Spirituality & Esoterica →Alternatives to Bazi MCP →Install in Claude DesktopInstall in CursorInstall in VS Code