Ziwei & Bazi Astrology — Claude Code MCP server: install
The Ziwei & Bazi Astrology MCP server builds Ziwei Dou Shu and Bazi charts, then inspects palaces and the five elements. Use it for date and fortune-period queries.
MIT 976 installs ★ 6 updated 2026-10-08
claude mcp add --transport http mingli-mcp https://mingli-mcp--spyfree.run.toolsWhat Ziwei & Bazi Astrology does
The server turns birth details into structured Ziwei Dou Shu or Bazi results. Ziwei Dou Shu covers the 12 palaces, stars, and focused palace analysis. Bazi returns the Four Pillars, Ten Gods, hidden stems, and five-element scores. Results can be formatted as JSON or Markdown.
Its tools cover fortune periods by decade, year, month, day, and hour, along with elemental strength, balance, and missing elements. Solar and lunar calendar inputs are supported. Ziwei Dou Shu output has language options, while the Bazi fortune tool uses a simplified ten-year age-period view rather than a full major-cycle calculation.
Claude Code connects to the HTTP server at https://mingli-mcp--spyfree.run.tools; Codex, Cursor, GitHub Copilot, and other listed clients can use it too. The calculations are intended for cultural, educational, and entertainment use, so they should not guide medical, legal, or financial decisions.
What it helps with
- generate a Ziwei Dou Shu birth chart
- build a Bazi chart with the Four Pillars and Ten Gods
- inspect one Ziwei palace and its stars
- compare five-element balance across Bazi charts
- retrieve fortune periods for a date or age
Example prompts for the agent
- Generate a Ziwei Dou Shu chart for birth date
1990-01-01, the午时time slot, and a male subject. - Create a Bazi chart for
2000-08-16at辰时and assess the five-element balance. - Analyze the finance palace in this Ziwei Dou Shu chart and list its main stars.
How to install Ziwei & Bazi Astrology
Platform CLI: remote server
claude mcp add --transport http mingli-mcp https://mingli-mcp--spyfree.run.toolsPlatform CLI: remote server
codex mcp add ziwei-bazi-astrology --url https://mingli-mcp--spyfree.run.toolsConfig file
{
"mcpServers": {
"ziwei-bazi-astrology": {
"url": "https://mingli-mcp--spyfree.run.tools"
}
}
}Config file
{
"servers": {
"ziwei-bazi-astrology": {
"type": "http",
"url": "https://mingli-mcp--spyfree.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http ziwei-bazi-astrology https://mingli-mcp--spyfree.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Ziwei & Bazi Astrology
How do I install Ziwei & Bazi Astrology in Claude Code?
Run claude mcp add --transport http mingli-mcp https://mingli-mcp--spyfree.run.tools, then run claude mcp add --transport http ziwei-bazi-astrology https://mingli-mcp--spyfree.run.tools.
What does Ziwei & Bazi Astrology do?
It generates Ziwei Dou Shu and Bazi charts, examines palaces, stars, the Four Pillars, and the five elements. It can also return fortune-period and date-based analysis.
What information is required for a chart?
Provide a birth date, time index, and gender. The chart can use a solar or lunar calendar, with output format and language options available for Ziwei Dou Shu.