Skip to content
Skillpedia
βœ“ Official Β· OpenFate● Free and open sourceπŸ’» LocalπŸ”“ No API keyOther

OpenFate Bazi MCP

Lets your AI agent calculate Bazi (Four Pillars) charts, True Solar Time and branch interactions with a deterministic engine.

162 stars on GitHubby OpenFateLicense MITUpdated 2 months ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add bazi -- npx -y @openfate/bazi-mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Calculate the Bazi chart for a man born on 1990-05-12 at 14:30 in Taipei.
What is the True Solar Time for this birth time and longitude?

What it is

This server gives your AI agent a reliable engine for Bazi, the Chinese Four Pillars system. The agent passes birth data and gets a computed chart as JSON, so it does not guess calendar math. It handles solar terms, longitude, time zones, daylight saving and the Zi-hour day boundary. Calculations run locally.

What it can do

  • calculate_bazi_chart: compute a Bazi chart with Da Yun timing
  • detect_bazi_interactions: find clashes, combinations, punishments and harms between branches
  • calculate_true_solar_time: True Solar Time from time and longitude
  • reverse_bazi_to_solar_times: find candidate dates for a four-pillar string
  • get_openfate_bazi_policy: the calculation rules used
  • get_openfate_bazi_resources: links to OpenFate pages

When to use

  • β€ΊWhen you want a Bazi chart that is calculated, not guessed by the model
  • β€ΊWhen you need to explain why an hour pillar differs from a clock-time tool
  • β€ΊWhen you want candidate birth times for a known set of four pillars

What you need

Node.js, to run it with npx -y @openfate/bazi-mcp. No account or key.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free?

Yes. It is MIT licensed.

Does it send data out?

The readme says it does not phone home. Calculations run locally.

Why use it instead of the model?

The model should not do calendar math. The engine gives stable JSON, and the model explains it.

Is reverse lookup exact?

No. The readme treats it as a candidate search to recheck with exact longitude, time zone and True Solar Time.

Which clients work?

Claude Desktop, Cursor, Cline and Continue.

Is there a skill too?

Yes. The repository includes an Agent Skill to teach tools how to use it.

If it does not work

  • β€ΊOn macOS, if Claude Desktop cannot find npx, use its absolute path such as /opt/homebrew/bin/npx.
  • β€ΊCheck that Node.js is installed.
  • β€ΊPass the exact birth time plus timezone, and longitude for True Solar Time, to get a calculated Da Yun result.

5 new skills a week. 1 minute to read.