# BaZi MCP Server MCP server

Deterministic Chinese BaZi (Four Pillars) astrology MCP server with true solar time correction.

## Facts

- Endpoint: https://www.bazi-lab.com/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: A (97/100, scanned 2026-12-04) · report https://gateturbo.com/report/11e4062b-8857-4e41-9580-5016131afcd3
- Tools: 6
- Category: Lifestyle · source: registry
- Repository: https://github.com/Zsmboom/bazi-lab-mcp
- Last probed: 2026-12-02 · first listed: 2026-11-30
- Directory page: https://gateturbo.com/mcp/bazi-mcp-server · this document: https://gateturbo.com/mcp/bazi-mcp-server.md · JSON: https://gateturbo.com/api/directory/servers/bazi-mcp-server

## Tools (6)

- `calculate_chart`: Calculate a BaZi Four Pillars chart from birth data. The engine applies the true solar time correction (birthplace legal timezone, including
- `luck_pillars`: Compute the ten 10-year luck pillars (大运): direction, start age, day-master strength with favourable/unfavourable elements, and the best and
- `life_trajectory`: Year-by-year life trajectory for roughly 96 years: one OHLC candle per year on a fixed 0-100 scale (open/close from the year first/last flow
- `match_compatibility`: Score love compatibility (0-100) between two people: their year-branch relation (six harmony, triple harmony, clash, harm) and the two day m
- `get_almanac`: Chinese almanac for a date range: day pillar, lunar date and the do (宜) / avoid (忌) lists. For "which day is good for X", pass activity as a
- `search_knowledge`: Search BaZi Lab's own bilingual guides — ten gods, true solar time, BaZi basics, luck pillars and blog articles — for concept explanations. 

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect BaZi MCP Server to your gate (https://gateturbo.com/login?next=/discovery?connect=bazi-mcp-server).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/bazi-mcp-server/claude · Claude Desktop → https://gateturbo.com/mcp/bazi-mcp-server/claude-desktop · ChatGPT → https://gateturbo.com/mcp/bazi-mcp-server/chatgpt · Codex → https://gateturbo.com/mcp/bazi-mcp-server/codex · Cursor → https://gateturbo.com/mcp/bazi-mcp-server/cursor · Windsurf → https://gateturbo.com/mcp/bazi-mcp-server/windsurf · VS Code → https://gateturbo.com/mcp/bazi-mcp-server/vscode · Gemini CLI → https://gateturbo.com/mcp/bazi-mcp-server/gemini-cli · OpenClaw → https://gateturbo.com/mcp/bazi-mcp-server/openclaw · n8n → https://gateturbo.com/mcp/bazi-mcp-server/n8n · A script or server → https://gateturbo.com/mcp/bazi-mcp-server/script

### Direct: Claude Code

Add BaZi MCP Server to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

```bash
claude mcp add --transport http bazi-mcp-server https://www.bazi-lab.com/mcp
```

### Direct: Cursor

Add BaZi MCP Server to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

```json
{
  "mcpServers": {
    "bazi-mcp-server": {
      "url": "https://www.bazi-lab.com/mcp"
    }
  }
}
```

### Direct: VS Code

Add BaZi MCP Server to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

```json
{
  "servers": {
    "bazi-mcp-server": {
      "type": "http",
      "url": "https://www.bazi-lab.com/mcp"
    }
  }
}
```

### Direct: Codex

Add BaZi MCP Server to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

```toml
[mcp_servers.bazi_mcp_server]
url = "https://www.bazi-lab.com/mcp"
```

### Direct: Claude

Add BaZi MCP Server as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "BaZi MCP Server" and paste the URL below.
3. Save; the tools appear in new chats.

```
https://www.bazi-lab.com/mcp
```

### Direct: ChatGPT

Add BaZi MCP Server as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "BaZi MCP Server" with the URL below.
3. Set authentication to none.

```
https://www.bazi-lab.com/mcp
```

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
