The Bazi MCP server provides accurate calculations for Chinese metaphysics applications, specifically the Four Pillars of Destiny (Bazi) system. With this server, you can:
- Calculate detailed Bazi information based on solar or lunar datetime, with options for gender and midnight time configurations
- Retrieve traditional Chinese calendar details for any specified solar date
- Convert Bazi to solar times by generating possible solar calendar dates from a given Bazi
- Integrate reliable Bazi data with AI agents for personality analysis and destiny forecasting
Required as the runtime environment for the MCP server, with version 22 or above specified as a prerequisite
Offers contact information via WeChat for users to connect with the Cantian AI team for support and community engagement around Bazi calculations
Bazi MCP (八字 MCP) by Cantian AI
Unlock precise Bazi insights with the Bazi MCP, the first AI-powered Bazi calculator. Built to address inaccuracies in existing AI fortune-telling tools like GPT and DeepSeek, our MCP delivers reliable Bazi data for personality analysis, destiny forecasting, and more.
Why Bazi MCP?
- Accurate Bazi Calculations: Provide insightful Bazi information.
- AI Agent Integration: Empowers AI agents with precise Bazi data.
- Community-Driven: Join enthusiasts to advance Chinese metaphysics.
Originating from the popular Chinese Bazi Fortune Teller GPTs in the GPT Store, this project is now integrated with Cantian AI (cantian.ai). We invite Bazi practitioners and AI enthusiasts to collaborate, share insights, and contribute to our open-source community.
Get Involved
- Contact: support@cantian.ai
中文
八字 MCP是参天 AI 推出的首个面向玄学领域的 MCP,针对 GPT 和 DeepSeek 等算命工具常出现的排盘错误,提供精准的八字数据,助力性格分析、命运预测等应用。
八字 MCP 亮点
- 精准排盘:提供全面的八字排盘信息。
- AI 赋能:为 AI 智能体提供可靠八字服务。
- 社区共建:欢迎命理爱好者参与交流与开发。
项目源于 GPT Store 热门应用Chinese Bazi Fortune Teller,现已融入参天 AI平台 (cantian.ai)。我们诚邀命理研究者与 AI 开发者加入,共同推动中国传统文化的传承与创新。
联系我们
- 邮箱:support@cantian.ai
- 微信:
前置需求 | Prerequisite
Node.js 22 版本或以上。
Node.js 22 or above.
开始使用 | Start
配置 AI 应用(例如 Claude Descktop)。
Configure AI application (e.g. Claude Desktop).
Installing via Smithery
To install bazi-mcp for Claude Desktop automatically via Smithery:
工具列表 | Tools
getBaziDetail
根据给定的公历或农历时间计算八字信息。 Calculate the Bazi results based on the solar/lunar datetime.
参数 | Arguments
- solarDatetime:
String
ISO 格式的阳历时间。例如:
2000-05-15T12:00:00+08:00
。
Solar datetime in ISO format. Example:2000-05-15T12:00:00+08:00
. - lunarDatetime:
String
农历时间。例如:
2000-05-15 12:00:00
。
Lunar datetime. Example:2000-05-15 12:00:00
. - gender:
Number
性别。可选。0 - 女,1-男。默认 1。
Gender. Optional. 0 for female, 1 for male. 1 by default. - eightCharProviderSect:
Number
早晚子时配置。可选。1 - 表示 23:00-23:59 日干支为明天,2 - 表示 23:00-23:59 日干支为当天。默认 2。 Configuration for eight char provider. Optional. 1 for meaning the day stem of 23:00-23:59 is for tomorrow, 2 for meaning the day stem of 23:00-23:59 is for today. 2 by default.
结果示例 | Result example
getSolarTimes
根据给定的八字返回可能的公历时间列表。 Return a list of possible solar calendar datetime based on the given Bazi.
参数 | Arguments
- bazi:
String
八字,各柱用空格隔开。 Bazi, with each pillar separated by a space.
结果示例 | Result example
getChineseCalendar
获取指定公历时间(默认今天)的黄历信息。 Get chinese calendar information for the specified solar calendar date (default is today).
参数 | Arguments
- solarDatetime
ISO 格式的阳历时间。例如:
2000-05-15T12:00:00+08:00
。
Solar datetime in ISO format. Example:2000-05-15T12:00:00+08:00
.
结果示例 | Result example
buildBaziFromLunarDatetime (deprecated)
根据
农历
时间计算八字结果。
Calculate the BaZi results based on the lunar datetime.
参数 | Arguments
- lunarDatetime:
String
农历时间。例如:
2000-05-15 12:00:00
。
Lunar datetime. Example:2000-05-15 12:00:00
. - gender:
Number
性别。可选。0 - 女,1-男。默认 1。
Gender. Optional. 0 for female, 1 for male. 1 by default. - eightCharProviderSect:
Number
早晚子时配置。可选。1 - 表示 23:00-23:59 日干支为明天,2 - 表示 23:00-23:59 日干支为当天。默认 2。 Configuration for eight char provider. Optional. 1 for meaning the day stem of 23:00-23:59 is for tomorrow, 2 for meaning the day stem of 23:00-23:59 is for today. 2 by default.
buildBaziFromSolarDatetime (deprecated)
根据
阳历
时间计算八字结果。
Calculate the BaZi results based on the solar datetime.
参数 | Arguments
- solarDatetime:
String
ISO 格式的阳历时间。例如:
2000-05-15T12:00:00+08:00
。
Solar datetime in ISO format. Example:2000-05-15T12:00:00+08:00
. - gender:
Number
性别。可选。0 - 女,1-男。
Gender. Optional. 0 for female, 1 for male. - eightCharProviderSect:
Number
早晚子时配置。可选。1 - 表示 23:00-23:59 日干支为明天,2 - 表示 23:00-23:59 日干支为当天。默认 2。 Configuration for eight char provider. Optional. 1 for meaning the day stem of 23:00-23:59 is for tomorrow, 2 for meaning the day stem of 23:00-23:59 is for today. 2 by default.
Keywords: Bazi MCP, Bazi AI Agent, Fengshui AI Agent, Bazi Calculator MCP, Bazi Calculator AI, Cantian AI
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An AI-powered metaphysical Bazi calculator that provides accurate Chinese astrological chart calculations for personality analysis and destiny forecasting, addressing inaccuracies in existing AI fortune-telling tools.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that provides access to Jina AI's powerful web services (page reading, web search, fact checking) through Claude.Last updated -318912JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol plugin for Chinese Tung Shing (黄历/通勝/通胜) almanac calculationsLast updated -13027TypeScriptMIT License
Chronulus MCP Serverofficial
AsecurityAlicenseAqualityEnables integration of Chronulus AI Forecasting & Prediction Agents with Claude, allowing users to access AI-powered forecasting and prediction capabilities directly through Claude's interface.Last updated -955PythonMIT License- -securityFlicense-qualityAn MCP server that provides AI assistants with access to Astro documentation, enabling them to search and reference Astro docs when helping users with Astro-related tasks.Last updated -JavaScript