FateStar Ziwei

io.github.LouisLin0723Published by GitHub account LouisLin0723v2.0.0Updated Oct 24, 2026

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

The publisher's own server: FateStar · Zi Wei Dou Shu (紫微斗数)

VerifiedStreamable HTTPWeb executableLocation & LifestyleAI & ML

Overview

AI-generated overview

Hosted Zi Wei Dou Shu astrology MCP that lets an assistant generate free natal charts and six-level transits, with an optional paid AI reading.

What you can do
Generate a full natal chart from solar or lunar birth data, including 12 palaces, stars, brightness, Four Transformations and pattern detection, with true-solar-time correction when longitude and timezone are given. Compute six transit levels: decade, minor cycle, year, month, day and hour, each with its own transformations and stems and branches. Request an optional hosted AI reading on topics such as relationships, career, wealth or health, drawing on the provider's knowledge engine.
When to use it
Use it when an assistant should answer Zi Wei Dou Shu chart and transit questions from structured, deterministic chart data rather than improvising, and when a hosted endpoint is preferred over running a local astrology engine.
Requirements
A remote Streamable HTTP endpoint; no local server, package install or account is needed for charts and transits. The paid reading tool needs a FateStar developer key sent as an Authorization bearer token, plus credits on the account.
Before you install
The reading tool is paid: it may deduct credits based on question length and mode, and should only be called after the user explicitly chooses it. The key is a secret and should be kept out of source control and issues. Birth details are sent to the hosted provider. Chart and transit calls are free and anonymous.

Installation

In SourceWeft

  1. Open FateStar Ziwei in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.LouisLin0723%2Ffatestar-ziwei/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "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.

Source: README.md at commit ad840ff

Tools

3

ziwei_chart

紫微斗数本命盘

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

ParametersdayrequiredhourrequiredyearrequiredmonthrequiredgenderrequiredminutelongitudeisLeapMonthcalendarTypetimezoneOffset

ziwei_transits

紫微斗数运限盘

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

ParametersdayrequiredhourrequiredyearrequiredmonthrequiredgenderrequiredminutelongitudetargetDaytargetHourtargetYearisLeapMonthtargetMonth+2 more

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 拿命盘数据 + 你自己解读。

ParametersdayrequiredhourrequiredyearrequiredmonthrequiredapiKeygenderrequiredminutequestionrequiredlongitudeisLeapMonthcalendarTypetimezoneOffset

Version history

1
  1. v2.0.0LatestSep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Fatestar integrations