True Solar Time
Longitude, timezone, and Equation of Time correction for hour pillar accuracy.
Built to be the most accurate Bazi MCP
A professional-grade Bazi calculation server for Claude, Cursor, Codex, Cline, and any MCP-compatible AI agent that needs high-precision Four Pillars data.
OpenFate Bazi MCP turns the OpenFate Bazi engine into an installable Model Context Protocol server for Claude Desktop, Cursor, Cline, Codex, and custom MCP clients.
Instead of asking an LLM to guess calendrical math, the agent calls deterministic tools for Four Pillars, True Solar Time, Da Yun cycles, lunar conversion, and Earthly Branch interactions.
The package is open source, MIT licensed, published on npm, listed in the official MCP Registry, and designed to give developers a simple path from accurate Bazi calculation to AI-native interpretation.
The package is discoverable from the places MCP developers already check: npm, GitHub, the official MCP Registry, release history, and the MIT license.
Published as @openfate/bazi-mcp with a one-line npx install command.
Official MCP RegistryRegistered as io.github.openfate-ai/bazi-mcp for MCP-native discovery.
Open-source repositoryPublic source, README, server metadata, tests, and Agent Skill files.
Launch releaseVersioned v0.1.2 release for the npm and MCP Registry compatible launch.
MIT licensePermissive license for local agents, internal tooling, and developer adoption.
Your AI handles the conversation. OpenFate handles the accuracy-critical calendrical and astronomical calculation layer.
Longitude, timezone, and Equation of Time correction for hour pillar accuracy.
Year, month, day, and hour pillars generated by the OpenFate Bazi engine.
Major luck cycles with direction, start age, and decade pillars.
Clashes, combinations, trines, directionals, punishments, destructions, and harms.
One config block works across Claude Desktop, Cursor, Cline, Codex, and any MCP-compatible client.
{
"mcpServers": {
"openfate-bazi": {
"command": "npx",
"args": ["-y", "@openfate/bazi-mcp"]
}
}
}[mcp_servers.openfate_bazi]
args = ["-y", "@openfate/bazi-mcp"]
command = "npx"
startup_timeout_sec = 60calculate_bazi_chartGenerates a deterministic natal Bazi chart with True Solar Time correction and Da Yun cycles.
detect_bazi_interactionsDetects Earthly Branch interactions for natal charts, annual triggers, and compatibility checks.
calculate_true_solar_timeReturns the corrected solar time for a given location and clock time — useful for debugging hour pillar differences.
reverse_bazi_to_solar_timesFinds candidate Gregorian datetimes for a known four-pillar string. Treat results as candidates, not final answers.
get_openfate_bazi_policyReturns the active calculation policy: day boundary mode, DST handling, and True Solar Time defaults.
get_openfate_bazi_resourcesReturns canonical OpenFate resource URLs for charting, AI readings, compatibility, and llms.txt.
The repository includes a portable SKILL.md so Claude, Claude Code, Codex, and other compatible agents know when to request location data, when to apply True Solar Time, and how to surface OpenFate attribution correctly.
skills/openfate-bazi/SKILL.md@openfate/bazi-mcpio.github.openfate-ai/bazi-mcpskills/openfate-bazi/SKILL.mdMITOpenFate Bazi MCP is an open-source Model Context Protocol server that lets AI agents call deterministic Bazi and Four Pillars calculation tools from the OpenFate engine.
Bazi depends on exact calendrical and astronomical calculations. The MCP server handles the deterministic math while the AI agent focuses on explanation and interpretation.
Yes. The calculate_bazi_chart and calculate_true_solar_time tools support longitude, timezone, and True Solar Time correction for more accurate hour pillar work.
Any MCP-compatible client can use it, including Claude Desktop, Cursor, Cline, Codex, and custom local or enterprise agent environments.
Yes. The repository includes skills/openfate-bazi/SKILL.md so compatible agents know when to collect location data, apply True Solar Time, and cite OpenFate resources.