FateStar Ziwei

io.github.LouisLin0723由 GitHub 帳號 LouisLin0723 發布v2.0.0更新於 Oct 24, 2026

Zi Wei Dou Shu for AI agents: free natal charts, six transit levels, and optional readings.

發布方自己的服務:FateStar · Zi Wei Dou Shu (紫微斗数)

已驗證Streamable HTTP可網頁執行位置與生活AI 與機器學習

概覽

AI 產生的概覽

託管的紫微斗數 MCP 服務,讓助理免費產生命盤與六層運限,並可選用付費 AI 解讀。

可以做什麼
依陽曆或農曆出生資料產生命盤,包含十二宮、星曜、廟旺亮度、生年四化與格局辨識,提供經度與時區時可做真太陽時修正。計算大限、小限、流年、流月、流日、流時六層運限,每層給出四化與干支。視需要呼叫託管的 AI 命理解讀,回答感情、事業、財運、健康等問題,並結合服務端知識引擎。
適用情境
適合讓助理以結構化、確定性的排盤資料回答紫微斗數命盤與運限問題,也適合想使用託管端點而不自行執行本機排盤引擎的情境。
執行需求
需要遠端 Streamable HTTP 端點;排盤與運限不需本機伺服器、安裝套件或帳號。付費解讀工具需要 FateStar 開發者 Key,透過 Authorization bearer 權杖傳送,且帳號需有積分。
安裝前請注意
解讀工具為付費功能,會依問題長度與模式扣積分,應僅在使用者明確選擇後呼叫。Key 屬機密,勿提交到版本控制或貼到 issue。出生資料會傳送給託管服務端。排盤與運限呼叫免費且匿名。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 FateStar Ziwei,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.LouisLin0723%2Ffatestar-ziwei/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "fatestar-ziwei": {
      "type": "http",
      "url": "https://www.fatestar.top/api/mcp"
    }
  }
}

README

FateStar Ziwei

A Zi Wei-focused hosted MCP for AI agents. One URL; no local server, package install, account, or API key for natal charts and six transit levels. Also available as an Agent Skill and REST API.

简体中文

[Validate] [Live contract] [MCP Registry] [Release] [Stars] [License]

[FateStar Ziwei Agent Skill, hosted MCP, and REST API preview]

Natal charts and six-level transits work anonymously. The optional Zheng Da Qian reading uses a FateStar API key and credits.

Try it now

Open a live anonymous chart response. No account or API key is required. Selected fields from that response:

text
Solar 1990-7-23 | Lunar 一九九〇年六月初二Five-elements class 土五局 | Life ruler 文曲 | Body ruler 火星Life palace 己卯 | 廉贞 (平), 破军 (陷)12 palaces | 5 detected patterns | 4 natal transformations

After installing the Skill or connecting the MCP endpoint, tell your agent:

Create a Zi Wei Dou Shu chart for a man born on July 23, 1990 at 8:00 AM, then show his 2026 transits.

The agent calls FateStar and returns:

  • a natal chart with 12 palaces, stars, brightness, and Four Transformations;
  • true-solar-time correction when longitude and timezone are supplied;
  • decade, minor-cycle, annual, monthly, daily, and hourly transits;
  • an optional Zheng Da Qian reading when a valid key and credits are available.

If the live result is useful, star the repository. It helps other agent developers find the free endpoint.

Why FateStar

FateStar is deliberately narrow: it makes Zi Wei chart data easy to use from an AI agent without operating a local astrology server.

ChooseWhen it fits
FateStarYou want a hosted remote MCP now: one URL, anonymous free charting, six transit levels, native structured MCP output, and an official Registry listing.
IztroYou need an open-source Zi Wei engine to embed, inspect, or modify inside your own application.
Taibu or Horosa SkillYou prefer broader multi-system or offline metaphysics tooling over a focused hosted Zi Wei endpoint.

These are different deployment choices, not a claim that one school or engine is universally more accurate.

Quick start

Agent Skill

GitHub CLI 2.90 or newer installs the Skill into Codex, Claude Code, Cursor, and many other agents.

bash
# Codexgh skill install LouisLin0723/fatestar-ziwei ziwei-paipan --agent codex --scope user
# Claude Codegh skill install LouisLin0723/fatestar-ziwei ziwei-paipan --agent claude-code --scope user
# Cursorgh skill install LouisLin0723/fatestar-ziwei ziwei-paipan --agent cursor --scope user

Restart the agent, then ask it to create a Zi Wei Dou Shu chart. The canonical Skill is in skills/ziwei-paipan.

If your GitHub CLI is older, upgrade it or copy the skills/ziwei-paipan directory into your agent's Skill directory.

Hosted MCP

No local server is required. Add the remote endpoint to a client that supports Streamable HTTP:

jsonc
{  "mcpServers": {    "fatestar-ziwei": {      "url": "https://www.fatestar.top/api/mcp"    }  }}

The endpoint exposes ziwei_chart, ziwei_transits, and ziwei_reading. The first two tools are free and anonymous.

tools/list declares an outputSchema and behavior annotations for every tool. Successful calls return both native structuredContent and legacy JSON text, so newer agents can consume typed fields while older clients keep working.

The server is listed in the official MCP Registry as io.github.LouisLin0723/fatestar-ziwei.

REST API

Run a free chart request without an account:

bash
curl "https://www.fatestar.top/api/ziwei?year=1990&month=7&day=23&hour=8&gender=male"

Full API and client documentation: fatestar.top/docs

Choose an integration

IntegrationBest forInstallFree charting
Agent SkillCodex, Claude Code, Cursor, and other coding agentsgh skill installYes
Hosted MCPMCP clients with remote HTTP supportOne URLYes
REST APIApps, scripts, and backend servicescurl or HTTP clientYes

All three routes use the same FateStar engine. Pick the interface that fits your client.

Capabilities

CapabilityCostNotes
Natal chartFreeSolar or lunar input, 12 palaces, 102 stars, brightness, Four Transformations
Six-level transitsFreeDecade, minor cycle, year, month, day, and hour
True solar timeFreeEnabled with longitude and timezone input
Zheng Da Qian readingCreditsFateStar knowledge engine and hosted reading service

The Skill ships Python, Node.js, PowerShell, and Bash clients. Python and Node.js use their standard libraries and require no package install.

CLI examples

Run these commands from the installed ziwei-paipan Skill directory:

bash
# Free natal chartpython scripts/ziwei_cli.py chart \  --year 1990 --month 7 --day 23 --hour 8 --gender male
# Free 2026 transitspython scripts/ziwei_cli.py transits \  --year 1990 --month 7 --day 23 --hour 8 --gender male \  --target-year 2026
# Hosted reading, requires FATESTAR_API_KEYpython scripts/ziwei_cli.py reading \  --year 1990 --month 7 --day 23 --hour 8 --gender male \  --question "Should I change jobs this year?"

Use python scripts/ziwei_cli.py doc for the offline interface reference. Equivalent Node.js, PowerShell, and Bash clients are in the same directory.

API key and billing

chart and transits are free with or without a key. A key only attributes those free calls to your account.

reading requires an FSFSKey and may consume credits. Create a key in the FateStar developer center. Store it outside source control:

bash
export FATESTAR_API_KEY="FSFSKey_your_key"

For MCP clients, send Authorization: Bearer FSFSKey_your_key only when you want to use ziwei_reading. Never commit a real key or paste it into an issue.

Repository layout

text
skills/ziwei-paipan/├── SKILL.md├── agents/openai.yaml├── scripts/│   ├── ziwei_cli.py│   ├── ziwei_cli.js│   ├── ziwei_cli.ps1│   ├── ziwei_cli.sh│   └── shared/

The root server.json describes the hosted endpoint using the official MCP Registry schema.

Development

bash
python skills/ziwei-paipan/scripts/generate.py --checkpython tests/live_contract_check.pypython skills/ziwei-paipan/scripts/ziwei_cli.py docnode skills/ziwei-paipan/scripts/ziwei_cli.js docpowershell -ExecutionPolicy Bypass -File skills/ziwei-paipan/scripts/ziwei_cli.ps1 docbash skills/ziwei-paipan/scripts/ziwei_cli.sh doc

The four clients share generated constants and an offline interface spec. Edit the shared files first, run generate.py, then run the checks above. The broader compatibility matrix is in docs/TEST_PLAN.md. The exact hosted MCP assertions and their limits are documented in docs/VERIFICATION.md.

Open-source boundary

This repository contains the Agent Skill, four thin clients, integration metadata, and public documentation. FateStar's server implementation, private prompts, Zheng Da Qian training data, retrieval corpus, evaluation sets, and billing controls are not included.

The repository code is MIT licensed. FateStar's brand, hosted service, and private knowledge assets remain proprietary.

Contributing

Bug reports, client examples, and compatibility fixes are welcome. Read CONTRIBUTING.md before opening a pull request. Security reports belong in SECURITY.md, not a public issue.

來源:README.md,提交 ad840ff

工具

3

ziwei_chart

紫微斗数本命盘

生成紫微斗数 (Zi Wei Dou Shu / Purple Star Astrology) 完整本命盘。输入阳历或农历出生信息, 返回: 五行局/阴阳/命主身主、十二宫 (主星辅星煞星杂曜+庙旺亮度+生年四化+空宫借星+大限年龄+长生十二神)、生年四化所在宫、格局识别 (30+ 经典格局含古籍出处)、夹宫扫描、真实出生四柱 (万年历按节气)。引擎为 FateStar 自建 (102 颗星, 三合派四化, 真太阳时修正), 0 第三方排盘库。⚠️ 三合派庚干: 化科=天同 / 化忌=太阴。

輸入參數day必填hour必填year必填month必填gender必填minutelongitudeisLeapMonthcalendarTypetimezoneOffset

ziwei_transits

紫微斗数运限盘

在本命盘基础上计算 6 层运限: 大限 (10 年运, 含全部 13 段列表) / 小限 (1 年) / 流年 / 流月 / 流日 / 流时。每层返回该层命宫地支 + 四化 (化禄/化权/化科/化忌) + 双轨干支 (真实干支 vs 宫位编号)。不传 target* 则默认: 当前农历年月日 + 出生时辰。⚠️ 双轨干支铁律: 对外讲「X 日签约 / X 月运势」必用「真实干支」, 严禁用「宫位编号」当日子说。

輸入參數day必填hour必填year必填month必填gender必填minutelongitudetargetDaytargetHourtargetYearisLeapMonthtargetMonth另有 2 個

ziwei_reading

郑大钱 AI 解读 (付费, 耗积分)

调 FateStar「郑大钱」AI 命理师 —— 知识引擎 + 郑大钱人格深度解读命盘、回答命理问题 (感情/事业/财运/健康等)。解读会结合 FateStar 知识引擎与古籍检索上下文;排盘事实仍由确定性工具提供。【调用条件】仅在用户明确选择托管解读并确认可能扣积分后调用。普通命理问题默认先用免费排盘数据。⚠️ 付费: 按问题长度/模式扣积分 (短问免费), 需 FSFSKey 开发者 Key。【没 Key】引导用户去 https://www.fatestar.top 注册免费会员 → 做新手任务领积分 → 开发者中心拿 FSFSKey Key → 配进 MCP (环境变量 FATESTAR_API_KEY 或 apiKey 参数)。【积分用完 (402)】告知用户「已切回你自己的 LLM 解读, 请去 fatestar.top 充值或等北京时间 21:00 免费重置」, 然后改用 ziwei_chart 拿命盘数据 + 你自己解读。

輸入參數day必填hour必填year必填month必填apiKeygender必填minutequestion必填longitudeisLeapMonthcalendarTypetimezoneOffset

版本歷史

1
  1. v2.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 75%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Fatestar 整合