MCP.Market

OpenFate Bazi MCP server

by openfate-ai·io.github.openfate-ai/bazi-mcp·v0.3.1·160 stars

OpenFate Bazi MCP with True Solar Time, Four Pillars, Da Yun, and branch interactions.

A85/100grade A
What users say
No reviews yet
Be the first
Safety scan
A85/100

full report

Adoption
Growing

160 stars177 downloads/wk

Reviews

Write one

Nobody has reviewed OpenFate Bazi MCP yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

OpenFate Bazi MCP tools (6)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • calculate_bazi_chart

    Calculate a deterministic OpenFate Bazi/Four Pillars chart with True Solar Time correction, Day Master, DAYUN_SECOND_V2 onset receipts, Da Yun cycles, and branch interactions. Pass an exact birth time plus timezone or timezoneId for a calculated V2 onset; otherwise inspect the explicit unavailable/fallback receipt.

  • calculate_true_solar_time

    Calculate OpenFate True Solar Time from civil birth time, longitude, timezone, and optional DST offset. Use this when explaining why the hour pillar may differ from ordinary clock-time tools.

  • detect_bazi_interactions

    Detect raw Earthly Branch relationship occurrences for a natal chart and optional annual and Da Yun branches. Preserves every matching pillar position, including repeated branches. Covers clashes, six-combinations, the eight central-branch half-trines (COMBINATION_HALF), full trines, directionals, punishments, destructions, and harms. Results establish relationship presence, not weights, cancellat

  • get_openfate_bazi_policy

    Return OpenFate calculation policy and LLM guidance for Bazi chart calls.

  • get_openfate_bazi_resources

    Return canonical OpenFate URLs for charting, readings, compatibility, wealth, true solar time, and AI crawler metadata.

  • reverse_bazi_to_solar_times

    Find possible Gregorian datetimes that produce a given four-pillar Bazi string. This is useful when a user only has a Bazi chart or screenshot. This lookup uses clock-time pillars without location-based true solar correction.

Public scan report

scanner v0.1.10 · 2026-10-30 · same rubric, same numbers if you re-run it

no findings
  • Code scan7 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 40 days ago12/15
  • Maintainer identityregistry namespace matches repository owner6/10
Overall 85/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How OpenFate Bazi MCP compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
85/100
higher than 70% of 48,255 servers
Tools
6
the typical server has 7
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
160
more than 95% of 28,688 servers
Downloads a week
177
more than 73% of 12,191 servers with a package

What its tools let an agent do: 6 read

Release history: 2 versions in the registry since 2026-07-02, latest 2026-09-20, typically one every 81 days.

Install OpenFate Bazi MCP in Claude Code, Cursor or VS Code

Runs npx -y @openfate/bazi-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add bazi-mcp -- npx -y @openfate/bazi-mcp
Add to Cursor

What the publisher says

From the OpenFate Bazi MCP repository's README, as published. We do not edit it. Read it on GitHub

@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:

npx -y @openfate/bazi-mcp

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

npm run mcpb:pack

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

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

npm run smithery:publish

Claude Desktop

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

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

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

Cursor

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

Cline

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

Agent Skill

This repository also includes a portable Agent Skill:

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:

.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

calculatebazichart

Calculates a deterministic Bazi chart.

Inputs:

  • year
  • month
  • day
  • hour
  • minute
  • second
  • gender
  • calendarType
  • isLeapMonth
  • longitude
  • timezone
  • timezoneId

The MCP fixes the onset policy to DAYUNSECONDV2; callers cannot silently select a different rule. Pass an exact birth time plus timezone or timezoneId for a calculated receipt. Present an exact onset only when chart.daYun.timing.status is CALCULATED and its version is DAYUNSECONDV2. An UNAVAILABLE receipt identifies the reason and marks the retained legacy scalar fields as a fallback. Pass longitude as well for True Solar Time correction.

detectbaziinteractions

Detects raw Earthly Branch relationship occurrences for a natal chart, with optional annual and Da Yun branches.

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

OpenFate Bazi MCP: common questions

Is OpenFate Bazi MCP server safe?
Yes, by our scan: it is graded A (85/100). Read the OpenFate Bazi MCP safety report
How do I install OpenFate Bazi MCP?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does OpenFate Bazi MCP need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is OpenFate Bazi MCP maintained?
The last commit was 44 days ago (2026-09-20). The latest release is v0.3.1.
How does OpenFate Bazi MCP compare with other MCP servers?
safety score 85/100 (higher than 70% of 48,255 servers); tools 6 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.