Skip to content
MCP server
Registry

BaZi Four Pillars MCP Server

Deterministic BaZi Four Pillars calculation with true solar time and solar terms.

BaZi Four Pillars MCP scores 41 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 1 tool. Filed under Productivity. GitHub shows 0 stars. Package registries report about 121 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by cdaily1995-createMITTypeScript0 stars
Trust score
41Fair
Trust score 41 of 100, Fair

Fair trust

41 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 41 comes from

0 + 20 + 0 + 10 + 4 + 7 = 41. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cdaily1995-create-four-pillars-mcp": {      "command": "npx",      "args": [        "-y",        "bazi-four-pillars-mcp@0.1.1"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools1Tool docs quality grade F

All capabilities

About

Four Pillars MCP Server

MCP server npm package License: MIT AllMCPs Verified

An MCP server for deterministic BaZi (八字) Four Pillars calculation from a local date, time, IANA timezone, and longitude.

Built for transparent calendrical and software workflows that need year, month, day, and hour pillars without address geocoding, gender-dependent luck cycles, stored birth data, or automated interpretation.

Why this is useful

  • Coordinates in, no hidden location lookup. Callers pass the timezone and longitude they already trust.
  • True solar time included. Day and hour calculations use local apparent solar time; the response exposes the correction details.
  • Solar-term aware. Year and month use astronomical solar-term boundaries.
  • Facts before interpretation. The tool returns versioned chart facts, not guaranteed predictions.

Tool

calculate_four_pillars

Input:

{
  "date": "1990-05-20",
  "time": "14:30",
  "timezone": "Asia/Shanghai",
  "longitude": 104.0668,
  "latitude": 30.5728
}

The calculation uses:

  • local apparent true solar time for day and hour calculations;
  • astronomical solar-term boundaries for year and month;
  • 23:00 Zi-hour as the next-day boundary;
  • explicit engine and rules versions in every result.

The result contains the year, month, day, and hour pillars, stem and branch elements, yin-yang labels, Day Master, time correction details, nearby solar-term information, warnings, and provenance.

Quick start

Run directly from npm:

npx -y bazi-four-pillars-mcp

Or inspect and build from source:

git clone https://github.com/cdaily1995-create/four-pillars-mcp.git
cd four-pillars-mcp
pnpm install
pnpm build
node dist/server.js

MCP client configuration:

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

Example

calculate_four_pillars {
  "date": "2005-12-23",
  "time": "08:37",
  "timezone": "Asia/Shanghai",
  "longitude": 121.4737,
  "latitude": 31.2304
}

The response contains the four pillar names, stem and branch elements, yin-yang labels, Day Master, true-solar correction details, nearby solar-term information, warnings, and engine/rules versions.

Input contract

FieldRequiredDescription
dateyesLocal civil date in YYYY-MM-DD.
timeyesLocal civil time in HH:mm.
timezoneyesIANA identifier such as Asia/Shanghai or America/Los_Angeles.
longitudeyesDecimal degrees, east positive, from -180 to 180.
latitudenoDecimal degrees, from -90 to 90; retained for traceability.

Links

Search-friendly description

This project is a Four Pillars of Destiny calculator for BaZi birth-chart normalization. It provides reproducible year, month, day, and hour pillars from date, time, timezone, and longitude, including true solar time and solar-term handling. It is intended for calendrical and software workflows that need transparent calculation facts rather than automated fortune-telling claims.

Privacy and scope

The server accepts coordinates and time-zone identifiers only. There is no address search, analytics, database, account, payment, or remote API requirement. Results are calculated locally by the process running the MCP server.

Traditional BaZi meanings are culturally interpretive and are not presented here as scientific proof, diagnosis, or guaranteed prediction.

License

MIT

Frequently asked questions

What is BaZi Four Pillars MCP Server?

Deterministic BaZi Four Pillars calculation with true solar time and solar terms.

How do I install BaZi Four Pillars MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. BaZi Four Pillars MCP Server runs locally from the npm package bazi-four-pillars-mcp with the command npx -y bazi-four-pillars-mcp@0.1.1.

Is BaZi Four Pillars MCP Server free and open source?

Yes. BaZi Four Pillars MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does BaZi Four Pillars MCP Server support remote (HTTP) connections?

No remote endpoint is listed for BaZi Four Pillars MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does BaZi Four Pillars MCP Server provide?

BaZi Four Pillars MCP Server provides 1 tool: calculate_four_pillars. See the full tool list for descriptions and parameters.

How is BaZi Four Pillars MCP Server's trust score calculated?

BaZi Four Pillars MCP Server scores 41 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server