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 集成