Back to Browse

Bazi Lab MCP Server

Developer ToolsModerate5.3MCP RegistryRemote
Free

Server data from the Official MCP Registry

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

About

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

Remote endpoints: streamable-http: https://www.bazi-lab.com/mcp

Security Report

5.3
Moderate5.3Moderate Risk

This is a thin stdio bridge that forwards every tool call, including birth data, to the documented hosted engine at bazi-lab.com, and it has no shell execution, filesystem access, or hardcoded secrets. The main points to be aware of are that personal birth data leaves the machine by design and that the BAZI_MCP_URL override could redirect that data to another endpoint. Permissions match the stated purpose, so the server scores well. Supply chain analysis found 6 known vulnerabilities in dependencies (0 critical, 4 high severity).

6 files analyzed ยท 11 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

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

Documentation

View on GitHub

From the project's GitHub README.

bazi-lab-mcp

bazi-lab-mcp MCP server

MCP server for accurate BaZi (Four Pillars of Destiny) โ€” bridges Claude, ChatGPT, Cursor and other MCP clients to the free, deterministic engine hosted at bazi-lab.com.

๐ŸŒ Website: bazi-lab.com โ€” the free calculator, luck-pillars curve and on-site agent behind this engine ๐Ÿ“– Developer docs: bazi-lab.com/developers/mcp

This process stores nothing and calls no AI model. It is a thin stdio bridge: every tool call is forwarded to the hosted engine, which computes with calendar code and returns structured JSON. Results carry a source attribution with canonical page URLs so any answer can be verified on the site.

Why not let the LLM compute BaZi?

LLMs asked from memory reliably get BaZi wrong: the month pillar turns at exact solar-term moments (not month boundaries), the year turns at ็ซ‹ๆ˜ฅ (not Chinese New Year), and the hour pillar must be corrected to the birthplace's true solar time โ€” legal UTC offset including historical daylight saving (China used DST in 1986โ€“1991) plus longitude ร— 4 minutes. This server does all of that with calendar code, so the model only interprets โ€” it never calculates.

Tools

ToolWhat it returns
calculate_chartFour pillars with ten gods, day master element, zodiac, true-solar-time correction
luck_pillarsTen 10-year pillars (ๅคง่ฟ) with direction, start age, favourable elements, best/worst years
life_trajectoryYear-by-year OHLC candles on a fixed 0โ€“100 scale for ~96 years (comparable across people)
match_compatibility0โ€“100 love score from year-branch relations and the two day masters
get_almanacChinese almanac (้ป„ๅކ): day pillar, lunar date, do (ๅฎœ) / avoid (ๅฟŒ) lists, activity matching
search_knowledgeBM25 search over BaZi Lab's bilingual guides, returning excerpts with page URLs

Setup

Hosted (recommended, no install) โ€” point any client that supports remote MCP at:

https://www.bazi-lab.com/mcp
  • Claude (desktop, web, mobile): Settings โ†’ Connectors โ†’ Add custom connector โ†’ paste the URL.
  • ChatGPT: enable Developer mode under Settings โ†’ Apps & Connectors โ†’ add the URL as a connector.
  • Cursor / other remote-capable clients: add a remote MCP server with the URL.

stdio via this package โ€” for clients that only support local servers:

{
  "mcpServers": {
    "bazi-lab": {
      "command": "npx",
      "args": ["-y", "bazi-lab-mcp"]
    }
  }
}

Claude Code: claude mcp add bazi-lab -- npx bazi-lab-mcp

Environment: set BAZI_MCP_URL to override the hosted endpoint (defaults to https://www.bazi-lab.com/mcp; useful for tests).

Privacy & fair use

  • No API key, no signup, no account.
  • Birth data sent to a tool call is used to compute the response and is not persisted.
  • Fair-use rate limits apply per IP: 30 requests/minute and 600/day (one tool call โ‰ˆ 2โ€“3 requests through this bridge). The server is read-only โ€” it cannot write data or spend credits. Reports, saved charts and sharing live on the website.

Accuracy notes

  • Hour pillar: corrected from the birthplace legal clock time to local solar time (legal UTC offset + longitude ร— 4 minutes). Historical DST is included โ€” a June-1990 Beijing birth is corrected by UTC+9, not UTC+8.
  • Year pillar turns at ็ซ‹ๆ˜ฅ, months at exact solar-term moments.
  • The 0โ€“100 trajectory is a pure function of the twelve flow months of each year: same input, same output, two charts are directly comparable.
  • Pass longitude (and country) whenever known โ€” without them the engine falls back to 120ยฐE and the nominal timezone, which shifts the true solar time by minutes (the four pillars usually stay the same).

Development

npm install
npm run build   # tsc -> dist/
npm test        # stdio smoke test (initialize + tools/list, no network)
node test/live-check.mjs   # optional: one real call through the hosted engine

BAZI_MCP_URL points the bridge elsewhere for local testing.

Related

License

MIT

Reviews

No reviews yet

Be the first to review this server!