shunshi-ziwei-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shunshi-ziwei-mcp Generate a Zi Wei Dou Shu chart for a man born March 24, 1990 at 10 AM."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ziwei-mcp
Zi Wei Dou Shu · 紫微斗数 · 紫微斗數 · 자미두수
Shunshi.AI local calculation core + Model Context Protocol server. Python 3.11+, MIT. No API key, database connection or hosted LLM is required.
Local natal charts with twelve palaces, stars, brightness and transformations. Two named algorithms: default and zhongzhou. Core derived from iztro under MIT; see NOTICE. Lunar New Year is the default year boundary. Late 子时 uses the existing engine default (forward day). No solar-time correction: provide the intended date/hour.
Install and connect
Install uv from its official source. Add this configuration to an MCP client supporting stdio (Claude Desktop, Cursor, Cline or Codex):
{
"mcpServers": {
"shunshi-ziwei": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/shunshi-ai/ziwei-mcp@v0.1.0",
"shunshi-ziwei-mcp"
]
}
}
}This uses a tagged GitHub source release, not a PyPI package. Dependencies are installed from PyPI by uv; the source tag is pinned. Restart the client after adding the server.
For a local checkout:
git clone https://github.com/shunshi-ai/ziwei-mcp.git
cd ziwei-mcp
uv sync --locked
uv run shunshi-ziwei-mcpThe server speaks JSON-RPC on stdout; it intentionally does not print a welcome message.
Related MCP server: 命盘 Mingpan
Tools
getZiweiChart— inspect its MCP schema for validated parameters.
Example parameters for getZiweiChart:
{
"date": "1990-03-24",
"hour": 10,
"gender": "男"
}Results include a source URL. Computed values and reference text are separate from the calling AI's interpretation; this server does not promise future outcomes.
Structure and development
packages/core/src/ contains the reusable core; src/shunshi_ziwei_mcp/ contains the MCP adapter. Both ship in one wheel, so no unpublished sibling package is needed. The core can be imported without starting MCP. Calculation provenance is documented in SOURCE.md.
uv sync --locked
uv run pytest -q
uv buildTests include a real stdio MCP client handshake, tool calls, invalid inputs and recovery. Core reference tests are included where available. No production services are contacted.
Privacy and license
Inputs stay in the local process; there is no product telemetry. Your MCP client's own model provider may receive tool inputs and outputs according to that client's configuration. Standard Python package installation downloads dependencies. Images, where present, are links; opening them is a separate client action.
MIT © 2026 Shunshi.AI. Preserve any upstream copyright in NOTICE.
Website: https://shunshi.ai
CI template
docs/github-actions-test.yml is a ready-to-use GitHub Actions template for Python 3.11–3.13. It is not enabled in this initial release because the publishing credential does not have workflow scope. Tests and installation checks were run locally; enabling hosted CI is a separate step.
Available Tools
1 toolgetZiweiChartA
Calculate a 紫微斗数 / 자미두수 natal chart. date is YYYY-MM-DD (lunar date when calendar=lunar); hour is local 0–23, with 23 mapped to late 子时. Supply a known hour; never guess an unknown birth time. leap_month only applies to lunar input. Returns twelve palaces, stars, brightness, transformations and the algorithm used. No predictive readings or live transit stars.
Inputs: date (required), hour (required), gender (required), calendar, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no risk of confusion with another operation. Its purpose is clearly stated as calculating a Ziwei natal chart.
The single tool name getZiweiChart is clear, action-oriented, and uses consistent camelCase. With only one tool, there is no broader naming pattern to demonstrate full consistency.
A single tool is thin for a server surface, even if the domain is narrowly focused on natal chart calculation. The scope is reasonable, but one operation limits flexibility.
The tool covers the core natal chart calculation output, including palaces, stars, brightness, and transformations. Predictive readings and live transit stars are explicitly excluded, so coverage is reasonable but intentionally limited.
Maintenance
Related MCP Connectors
Zi Wei Dou Shu for AI agents: free natal charts, six transit levels, and optional readings.
Deterministic BaZi and Chinese metaphysics tools for AI agents: charts, divination, almanac.
Professional Vedic astrology tools for AI agents via MCP.
Free Qimen Dunjia and BaZi charts via MCP - deterministic engine, nine palaces and four pillars.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables traditional Chinese metaphysics tools like Bazi, Ziwei, and Qimen via MCP, integrating AI analysis for divination and fortune-telling.788AGPL 3.0
- AlicenseAqualityBmaintenanceProvides traditional Chinese astrology (Bazi, Ziwei) and divination (Liuyao, Meihua, Qimen, etc.) calculations as MCP tools for AI assistants.18760 npm139Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides free hosted Zi Wei Dou Shu (Purple Star Astrology) natal charts and six-level transits as MCP tools, enabling AI agents to compute charts and transits through natural language.MIT

fatenava-mcpofficial
AlicenseAqualityDmaintenanceEnables AI agents to cast deterministic BaZi, Zi Wei Dou Shu, and Western astrology natal charts from birth details, with no setup or API key.158 npmMIT