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.
Fair trust
41 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
66/100 for listing completeness. Lost points: 1 of 1 tools barely described, short summary, no docs link.
How quality is graded
Where the 41 comes from
0 + 20 + 0 + 10 + 4 + 7 = 41. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.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.
{ "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 capabilitiesAbout
Four Pillars MCP Server
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
| Field | Required | Description |
|---|---|---|
date | yes | Local civil date in YYYY-MM-DD. |
time | yes | Local civil time in HH:mm. |
timezone | yes | IANA identifier such as Asia/Shanghai or America/Los_Angeles. |
longitude | yes | Decimal degrees, east positive, from -180 to 180. |
latitude | no | Decimal degrees, from -90 to 90; retained for traceability. |
Links
- BaZi Calculator — the public calculator project for Four Pillars workflows.
- Free chart entry — the public chart route.
- Four Pillars of Destiny guide — terminology and context.
- What is a BaZi chart? — beginner-friendly explanation.
- True Solar Time MCP Server — the companion standalone time-normalization tool.
- npm package — installable stdio MCP server.
- MCP specification — protocol documentation.
- MCP TypeScript server SDK — server SDK used by this project.
- tyme4ts on npm — calendar and solar-term dependency.
- npm installation guide — package-manager reference.
- Full link inventory and method references.
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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.