Skip to content
appsgit

OpenFate Bazi MCP

OpenFate Bazi MCP is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. OpenFate Bazi MCP with True Solar Time, Four Pillars, Da Yun, and branch interactions. It has 157 GitHub stars, is released under the MIT license and runs locally with npx -y @openfate/bazi-mcp.

github.com/openfate-ai/openfate-mcp (opens in a new tab)

Install OpenFate Bazi MCP

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

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

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

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

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "openfate-bazi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@openfate/bazi-mcp"
      ]
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "servers": {
    "openfate-bazi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@openfate/bazi-mcp"
      ]
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Tools (14)

Parsed from the Tools section of the README; check the repository for the current list.

  • calculate_bazi_chart

    Calculates a deterministic Bazi chart.

  • year
  • month
  • hour
  • minute
  • second
  • gender
  • longitude
  • timezone
  • detect_bazi_interactions

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

  • 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.

About OpenFate Bazi MCP

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.

  • claude-skills
  • four-pillars
  • mcp
  • openfate
  • true-solar-time

FAQ

OpenFate Bazi MCP FAQ

Still curious? Email info@appsgit.com.

What is OpenFate Bazi MCP?

OpenFate Bazi MCP is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. OpenFate Bazi MCP with True Solar Time, Four Pillars, Da Yun, and branch interactions. It has 157 GitHub stars, is released under the MIT license and runs locally with npx -y @openfate/bazi-mcp. The source code is at github.com/openfate-ai/openfate-mcp.

How do I install the OpenFate Bazi MCP MCP server?

Add the command npx -y @openfate/bazi-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is OpenFate Bazi MCP free?

The server is open source under the MIT license, so running it is free. It does not declare any required API key.

Is OpenFate Bazi MCP actively maintained?

The most recent commit was on Sep 20, 2026. The latest release is v0.3.1, published Sep 20, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.