The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Deepnatal listing page.
A natal chart engine that cross-verifies every result three independent ways — and refuses to answer when it can't.
Ships as both a TypeScript library and an MCP server for Claude, Cursor, Codex, Cline and other agents.
Ask any astrology site for a birth chart and you get an answer. You almost never get a way to check it.
That matters more than it sounds, because the ascendant — the rising sign — moves about one degree every four minutes. Get the UTC instant wrong by an hour and it shifts by roughly half a sign. The result still looks completely plausible. Nothing about it announces that it's wrong.
And an hour is easy to lose. Taiwan observed daylight saving in 1945–1961 and again in 1974–1979. Mainland China did from 1986 to 1991. Japan did from 1948 to 1951. Plenty of tools quietly apply today's UTC offset to a 1988 birth date and hand back a chart that's off by exactly one hour.
This package is built around the opposite assumption: a result you can't check is not a result.
Three independent paths compute every chart. Disagreement is an error, not something to average away.
| Layer | Primary | Independent check |
|---|---|---|
| Timezone | Explicit IANA zone, Node ICU historical tzdata | Coordinate-derived zone lookup |
| Planets | circular-natal-horoscope-js | astronomy-engine |
| Ascendant | Astrology-library house calculation | Pure spherical geometry — ecliptic × eastern horizon, no astrology library involved |
Typical agreement in practice is under one arcminute. Past tolerance, the call throws rather than returning a chart.
It also degrades honestly where the math genuinely breaks down:
A README asserting "cross-verified" is worth nothing on its own. The suite ships inside the published package, so you can run it against the exact bytes you installed:
The 21 boundary cases are chosen to be the ones that break things, not the ones that are easy: China's 1986–1991 DST window and a same-year winter control, Taiwan 1979, Japan's 1948–1951 GHQ period, a time that never existed because a DST jump skipped it, and latitudes inside the Arctic Circle where Placidus is undefined.
The 11 external checks compare against values captured from astro-seek. Those exist because the three internal paths share assumptions — tropical zodiac, apparent geocentric positions, true ecliptic of date — and if an assumption itself were wrong, all three would agree on the same wrong answer. Only an outside source catches that.
CI runs the suite on Node 20/22/24 under a deliberately non-UTC system clock, so any accidental dependence on the host timezone fails loudly.
The reason this package exists. Pass a result from any other tool as claim:
Note degreesPerHour: 12.66. The usual rule of thumb says an hour is 15° — that's the Earth's rotation rate, not the ascendant's rate of travel along the ecliptic, and the two only agree near the equator. This library measures it per chart instead of assuming it.
claude_desktop_config.json.cursor/mcp.json| Tool | What it does |
|---|---|
calculate_natal_chart | Ten planets with sign, degree, house, retrograde; ascendant, midheaven, twelve cusps. Fails rather than returning a chart the two engines disagree on. |
calculate_chart_without_birth_time | Only what's knowable without a time. Lists what's missing and why. Flags an ambiguous moon sign. |
verify_ascendant | Recomputes via pure geometry and adjudicates a value from another tool. Accepts Virgo, 處女座, 12 Leo, Leo 12°34', or a bare longitude. |
inspect_historical_timezone | What the historical tzdata actually did on that date, and whether DST was in effect. |
Everything runs locally in the agent's own process. Birth data is about as sensitive as personal data gets, and none of it leaves the machine — there is no network call anywhere in this package.
Why let an agent call this instead of reasoning it out? Because a language model asked to work out a rising sign will produce a confident, plausible, wrong answer, and nothing downstream can detect that. This server returns computed facts and its own uncertainty. It never interprets.
deepnatal 是一套會自我驗算的本命盤計算引擎——算不出來時它會拒絕回答,而不是給你一個看起來合理的答案。
上升星座每四分鐘移動約一度。時區算錯一小時,上升就偏掉大半個星座,而結果看起來完全正常,不會有任何地方提示你它是錯的。
而一小時很容易丟。台灣在 1945–1961、1974–1979 實施過夏令時間,中國大陸是 1986–1991,日本是 1948–1951。不少工具會把今天的時區偏移直接套到 1988 年的出生日期上。
三條獨立路徑同時計算,彼此不一致就報錯:
circular-natal-horoscope-js × astronomy-engine 兩套獨立演算法實測吻合度在 1 角分以內。超過容許值就丟出錯誤,不回傳星盤。
verifyAscendant() 可以用來檢查任何其他工具算出的上升是否正確。它不猜原因——而是實際重算前後各一小時的上升點,如果對方的答案正好落在那裡,就能證明差異來自時區處理而非天文計算。
完整工具與說明見 deepnatal.com。
Being straight about the boundaries is part of the point.
verify_ascendant distinguishes a one-hour offset from these, but it doesn't declare a winner in matters of convention.MIT. The dependency chain is deliberately kept clear for redistribution:
| Package | License |
|---|---|
circular-natal-horoscope-js | Unlicense (public domain) |
astronomy-engine | MIT |
Notably not Swiss Ephemeris (sweph / swisseph). Its dual AGPL-3.0-or-later OR LGPL-3.0-or-later listing is misleading: the LGPL option requires purchasing an Astrodienst commercial license first. Without one you're on AGPL, which reaches network services and would require open-sourcing everything that touches it. That constraint is why most hosted astrology products can't ship their calculation layer as an open package — this one can.
This is the calculation layer of deepnatal.com, extracted verbatim — the site runs the same code that ships here, so any chart it produces can be reproduced locally against this package.
Issues and PRs: github.com/breezefeng/deepnatal