# Fatesense MCP

> Fatesense MCP is an open-source MCP server for astronomy. Deterministic BaZi, Zi Wei and Chinese almanac calculations for AI assistants. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/benzema216/fatesense-mcp
- **MCP Registry name:** io.github.BENZEMA216/fatesense-mcp
- **Categories:** [astronomy](https://ai-powered.com/categories/astronomy)
- **Listing updated:** 2026-11-29

## About

Calendar-based Chinese metaphysics calculations are easy for language models to get wrong, especially day pillars and solar term boundaries. This server runs those calculations locally with open-source calendar engines, so an assistant can request exact Four Pillars charts, dual-chart comparisons, Zi Wei Dou Shu palaces and daily almanac entries before it interprets them.

The tools cover true solar time correction, the early and late Zi hour switch, hidden stems, ten gods, decadal luck pillars, 14 major stars and four transformations. A separate lookup tool returns links into a bilingual reference site for classics, zodiac guides and methodology notes.

It suits developers building astrology or cultural apps, and anyone who wants an assistant to work from consistent chart data rather than guessed calendar arithmetic. The server is installed through npm and runs over stdio in Claude Desktop, Cursor or Windsurf.

## Features

- **Four Pillars chart calculation:** Computes BaZi pillars with true solar time correction and the early or late Zi hour rule.
- **Dual-chart compatibility:** Compares two birth charts using stem combinations and spouse palace harmony or clash checks.
- **Zi Wei Dou Shu astrolabe:** Produces a 12-palace chart with major stars, brightness levels and four transformations.
- **Daily Chinese almanac:** Returns the lunar date, solar term, duty officer, lunar mansion and traditional yi and ji activities for a day.
- **Reference link lookup:** Returns links into a bilingual reference library covering classics, zodiac guides and methodology.

## Good for

- Give an AI assistant accurate Four Pillars data before it writes a reading
- Compare two birth charts for compatibility discussions in a companion app
- Generate Zi Wei palace layouts for a astrology learning tool
- Pull the daily almanac entry into a scheduling or lifestyle assistant
- Add verified calendar calculations to a Chinese cultural content workflow

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add fatesense-mcp -- npx -y fatesense-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add fatesense-mcp -- npx -y fatesense-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.fatesense-mcp]
command = "npx"
args = ["-y", "fatesense-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user fatesense-mcp npx -- -y fatesense-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "fatesense-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "fatesense-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 5 tools read data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `calculate_bazi_chart`: Exact Four Pillars, True Solar Time correction, Early/Late Zi-Hour switch, Hidden Stems, Ten Gods, NaYin, Void branches, and 8 Decadal Luck Pillars
- `calculate_bazi_compatibility`: Dual-chart comparison checking Classical Five-Stem Unions, Spouse Palace Six-Harmony / Six-Clash, and combined Five-Element balance
- `calculate_ziwei_astrolabe`: True-lunar Zi Wei Dou Shu 12 Palaces, Five Elements Bureau, Life/Body Master, 14 Major Stars, brightness levels, and Four Transformations
- `get_daily_almanac` (name suggests: reads): Chinese Daily Almanac: lunar date, Solar Term, Twelve Duty Officers, 28 Lunar Mansions, and traditional Yi/Ji activities
- `lookup_fatesense_knowledge` (name suggests: reads): Canonical links into FateSense's bilingual reference library

## FAQ

### How do I install Fatesense MCP?

It is published on npm as fatesense-mcp and can be run with npx -y fatesense-mcp, using a stdio entry in the MCP client configuration. A local clone with npm install is also described.

### Does Fatesense MCP need any API keys or environment variables?

No environment variables are declared in the registry entry.

### Which calendar engines does Fatesense MCP use?

Chart and almanac calculations use the tyme4ts library, and Zi Wei Dou Shu charts use the iztro library, both MIT licensed.

### Are the readings presented as medical or financial advice?

The project describes BaZi, Zi Wei and related practices as cultural frameworks for self-reflection and dialogue, not as medical, legal or financial guarantees.

### Is Fatesense MCP free?

Yes. Fatesense MCP is open source, so you can use and self-host it for free.

### How do I add Fatesense MCP to Claude Code?

Run this command in your terminal: claude mcp add fatesense-mcp -- npx -y fatesense-mcp

### What are the best alternatives to Fatesense MCP?

The closest alternatives to Fatesense MCP are OpenFate Bazi MCP, Freebazi, BaziChart, Fatenava MCP and BaZi Four Pillars MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [OpenFate Bazi MCP](https://ai-powered.com/mcp/openfate-bazi-mcp): OpenFate Bazi MCP is an open-source MCP server for astrology.
- [Freebazi](https://ai-powered.com/mcp/freebazi): Freebazi is an open-source MCP server for astrology.
- [BaziChart](https://ai-powered.com/mcp/bazichart-2): BaziChart is a free MCP server for astrology.
- [Fatenava MCP](https://ai-powered.com/mcp/fatenava-mcp): Fatenava MCP is an open-source MCP server for personal profiles.
- [BaZi Four Pillars MCP](https://ai-powered.com/mcp/bazi-four-pillars-mcp): BaZi Four Pillars MCP is an open-source MCP server for ai models and llm tooling.
- [知己排盘 BaZi](https://ai-powered.com/mcp/bazi): 知己排盘 BaZi is an open-source MCP server for astrology.
- [Yuanzi Zhiyi Bazi Agent Kit](https://ai-powered.com/mcp/yuanzi-zhiyi-bazi-agent-kit): Yuanzi Zhiyi Bazi Agent Kit is an open-source MCP server for astrology.
- [FateSign BaZi](https://ai-powered.com/mcp/fatesign-bazi): FateSign BaZi is a freemium MCP server for personal profiles.

---
Source: https://ai-powered.com/mcp/fatesense-mcp
