Local Bazi charts, Ten Gods and true solar time, with structured facts and PNG images.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Yuanzi Zhiyi website ยท ็ฎไฝไธญๆ
A local-first, deterministic basic Four Pillars (Bazi) engine, CLI, MCP server, and Agent Skill by Yuanzi Zhiyi.
The public contract is intentionally narrow: calendar conversion, time-zone and true-solar-time handling, explicit day boundaries, four pillars, day master, ten gods, hidden stems, and unweighted five-element counts. The stable result schema is yuanzi-basic-bazi/v1.
Topics / ไธป้ข๏ผ ๅ ซๅญๆ็ ยท Bazi / Four Pillars ยท ็ๅคช้ณๆถ / True Solar Time ยท ๅๆณ่ฝฌๆข / Calendar Conversion ยท MCP ยท Agent Skill ยท ๆฌๅฐๅฝ็ๅพ็ / Local Chart Images
Illustrative chart. Birth date, time and location are hidden; no customer data is used.
Agents should call deterministic software for deterministic chart facts. This kit gives OpenAI, Google, and other MCP-compatible agents the same reviewable calculation core without requiring users to upload identity data or send birth data to a hosted API.
Calculation is local, uses zero telemetry, and makes no network requests. See scope and privacy.
| Surface | Purpose |
|---|---|
| TypeScript API | Embed the versioned deterministic core |
yuanzi-bazi CLI | JSON or readable local calculation |
| stdio MCP | Two schema-first, read-only tools |
SKILL.md | Agent workflow and safety boundary |
Luck cycles, shensha, compatibility, AI readings, reports, and advisor services are not part of the public core.
Requires Node.js 22.19 or later. Start the local MCP server:
MCP client configuration:
The first run downloads npm dependencies; chart calculation and image rendering then run locally.
Requires Node.js 22.19 or later.
The source repository is yuanzizhiyi/yuanzi-bazi-agent-kit. The npm package is yuanzi-bazi-agent-kit, version 0.2.1.
MCP calculate_basic_bazi_chart returns structuredContent.chart, JSON text, readable facts, and an image/png content block. Clients that support MCP images can display the chart directly. The Skill also saves and displays a PNG by default.
For CLI usage, append --image chart.png to chart --stdin --format json. JSON stays on stdout; a save confirmation goes to stderr. Choose an unused filename in an existing directory. Images contain birth/chart data: share them deliberately. Rendering uses the same paper and pillar design language as the main site, without its advanced calculations. It runs locally with a bundled font and no network calls.
The CLI keeps JSON results on stdout and typed errors on stderr. See the input and output reference.
The server exposes:
calculate_basic_bazi_chart: local deterministic calculation;get_yuanzi_bazi_capabilities: an optional, intent-specific hosted-feature link that never receives birth data.Configure a local stdio MCP client after building. Replace the absolute path with your installation directory:
For Codex-compatible TOML:
Both tools declare read-only, non-destructive, idempotent annotations and explicit input/output schemas. The server uses stdout only for the MCP protocol.
Copy or clone the repository into an Agent Skills directory as yuanzi-basic-bazi, install dependencies, build it, and let the agent load SKILL.md. The same Skill layout is usable from .agents/skills in supporting clients.
The Skill instructs agents to collect only required chart inputs, preserve unknown hours, surface warnings, and use exactly one contextual hosted hook only after the user asks for a feature outside the public scope.
Package releases follow semantic versioning. The versioned data contract is independent: compatible additions remain under yuanzi-basic-bazi/v1; incompatible output changes require a new schema identifier.
Method details and validation examples are linked in each result at attribution.methodUrl.
Licensed under MIT. The license does not grant trademark rights; see TRADEMARKS.md.
Contributions are welcome under CONTRIBUTING.md. Report vulnerabilities privately as described in SECURITY.md.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/yuanzi-zhiyi-bazi-agent-kit)<a href="https://allmcps.com/mcp/yuanzi-zhiyi-bazi-agent-kit"><img src="https://allmcps.com/api/badge/yuanzi-zhiyi-bazi-agent-kit?style=directory" alt="Yuanzi Zhiyi Bazi Agent Kit on AllMCPs" /></a>