# BaziChart

> BaziChart is a free MCP server for astrology. Hosted MCP server that casts BaZi and Zi Wei Dou Shu charts with true solar time. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://bazichart.ai/en/mcp/
- **Repository:** https://github.com/bazichart/bazichart-mcp
- **MCP Registry name:** io.github.bazichart/bazichart-mcp
- **Categories:** [astrology](https://ai-powered.com/categories/astrology)
- **Listing updated:** 2026-11-20

## About

The README describes BaziChart MCP as a remote Model Context Protocol server that gives an AI assistant a chart engine for BaZi (Four Pillars) and Zi Wei Dou Shu natal charts. Birth date, clock time, gender, birthplace longitude and IANA time zone are passed in, and the server returns structured chart data rather than a written reading.

The main difference from a plain calendar lookup is the time correction. Charts are adjusted for birthplace longitude, the equation of time and daylight-saving years, and each response includes a record of every adjustment in minutes. The server also requires a birthplace rather than defaulting to Beijing, and it lets the user choose between two documented school conventions for the day boundary (BaZi) and the year boundary (Zi Wei).

It suits people building or using AI chat workflows around Chinese metaphysics who want consistent chart calculations. The README states that no interpretation is included and that charts are offered for entertainment only.

## Features

- **True solar time correction:** Adjusts birth times for longitude, equation of time and daylight saving, and reports each adjustment.
- **No sign-in required:** Connects over streamable HTTP at a single URL with no API key or account, according to the README.
- **Selectable school conventions:** Offers alternative day and year boundary settings, and states which one was applied in each response.
- **BaZi and Zi Wei tools:** Provides cast_bazi for four pillars and luck cycles, and cast_ziwei for palaces and stars.
- **Birthplace required:** Returns an error instead of guessing the birthplace when longitude is missing.

## Good for

- Casting a BaZi chart inside a chat with an AI assistant
- Generating a Zi Wei Dou Shu natal chart from a birth date and place
- Checking how a birthplace-based time correction changes the hour pillar
- Adding chart calculation to an agent or app built on MCP

## Install

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

```sh
claude mcp add --transport http bazichart-mcp https://mcp.bazichart.ai/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": {
    "bazichart-mcp": {
      "type": "http",
      "url": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.bazichart.ai/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "bazichart-mcp": {
      "url": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "bazichart-mcp": {
      "type": "http",
      "url": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

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

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.bazichart.ai/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

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

```sh
codex mcp add bazichart-mcp --url https://mcp.bazichart.ai/mcp
```

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

```toml
[mcp_servers.bazichart-mcp]
url = "https://mcp.bazichart.ai/mcp"
```

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

```json
{
  "mcpServers": {
    "bazichart-mcp": {
      "httpUrl": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http bazichart-mcp https://mcp.bazichart.ai/mcp

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

```json
{
  "mcpServers": {
    "bazichart-mcp": {
      "serverUrl": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "bazichart-mcp": {
      "url": "https://mcp.bazichart.ai/mcp",
      "transport": "http"
    }
  }
}
```

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": {
    "bazichart-mcp": {
      "type": "streamableHttp",
      "url": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "bazichart-mcp": {
      "url": "https://mcp.bazichart.ai/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": {
    "bazichart-mcp": {
      "url": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "bazichart-mcp": {
      "url": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "bazichart-mcp": {
      "url": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

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

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.bazichart.ai/mcp
```

Enter a Name (for example "BaziChart"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "bazichart-mcp": {
      "type": "http",
      "url": "https://mcp.bazichart.ai/mcp"
    }
  }
}
```

## Tools

The server marks all 2 tools read-only. From the server's own tool labels and tool names; not verified by us.

- `cast_bazi` (says read-only): Calculate BaZi from a known local Gregorian birth time and birthplace. Returns four pillars, luck cycles, ten gods, hidden stems and time correction. Each result includes source.url and attribution. No interpretation. Births at 23:00-23:59 true solar time take the next day's day pillar by default (day_boundary="midnight_00" keeps the same day). 返回八字四柱、大运、十神、藏干及时间校正；结果含 source.url 和署名。只排盘，不解盘。真太阳时 
- `cast_ziwei` (says read-only): Calculate a Ziwei natal chart. Overseas birthplaces (including HK/Macao/Taiwan) use local true solar time; longitude required. Returns palaces, major stars and four transformations. Each result includes source.url and attribution. No interpretation or accuracy certification. The year stem-branch changes on Lunar New Year by default (year_boundary="lichun" switches to Start of Spring). 返回紫微十二宫、主星、四

## FAQ

### Does BaziChart require an account or API key?

The README says no installation, API key, account or sign-in is needed to connect to the hosted endpoint.

### Does BaziChart interpret the charts?

No. The README says the tools return chart structure without interpretation and that readings are not included.

### What birth years are supported?

Gregorian birth years from 1900 to 2100, according to the README.

### What are the rate limits?

The README lists 30 chart calls per minute and 1,000 per day per IP address.

### Is BaziChart free?

Yes. BaziChart is free to use.

### How do I add BaziChart to Claude Code?

Run this command in your terminal: claude mcp add --transport http bazichart-mcp https://mcp.bazichart.ai/mcp

### What are the best alternatives to BaziChart?

The closest alternatives to BaziChart are Freebazi, True Solar Time, BaZi Four Pillars MCP, 小道 Xiaodao and InsightBaZi.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Freebazi](https://ai-powered.com/mcp/freebazi): Freebazi is an open-source MCP server for astrology.
- [True Solar Time](https://ai-powered.com/mcp/true-solar-time): True Solar Time is an open-source MCP server for astrology.
- [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.
- [小道 Xiaodao](https://ai-powered.com/mcp/xiaodao): 小道 Xiaodao is a free MCP server for astrology.
- [InsightBaZi](https://ai-powered.com/mcp/insightbazi): InsightBaZi is a freemium MCP server for astrology.
- [BaziTools — True Solar Time BaZi Four Pillars & Classical Chinese Name Engine](https://ai-powered.com/mcp/bazitools-true-solar-time-bazi-four-pillars-and-classical-ch): BaziTools — True Solar Time BaZi Four Pillars & Classical Chinese Name Engine is a free MCP server for astrology.
- [FateSign BaZi](https://ai-powered.com/mcp/fatesign-bazi): FateSign BaZi is a freemium MCP server for personal profiles.
- [Ba-Zi.ai Chinese Astrology](https://ai-powered.com/mcp/ba-zi-ai-chinese-astrology): Ba-Zi.ai Chinese Astrology is a free MCP server for astrology.

---
Source: https://ai-powered.com/mcp/bazichart-2
