fatestar-ziwei
Provides 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.
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.

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:
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.
| Choose | When it fits |
|---|---|
| FateStar | You want a hosted remote MCP now: one URL, anonymous free charting, six transit levels, native structured MCP output, and an official Registry listing. |
| Iztro | You need an open-source Zi Wei engine to embed, inspect, or modify inside your own application. |
| Taibu or Horosa Skill | You 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.
# Codex
gh skill install LouisLin0723/fatestar-ziwei ziwei-paipan --agent codex --scope user
# Claude Code
gh skill install LouisLin0723/fatestar-ziwei ziwei-paipan --agent claude-code --scope user
# Cursor
gh 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:
{
"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:
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
| Integration | Best for | Install | Free charting |
|---|---|---|---|
| Agent Skill | Codex, Claude Code, Cursor, and other coding agents | gh skill install |
Yes |
| Hosted MCP | MCP clients with remote HTTP support | One URL | Yes |
| REST API | Apps, scripts, and backend services | curl or HTTP client |
Yes |
All three routes use the same FateStar engine. Pick the interface that fits your client.
Capabilities
| Capability | Cost | Notes |
|---|---|---|
| Natal chart | Free | Solar or lunar input, 12 palaces, 102 stars, brightness, Four Transformations |
| Six-level transits | Free | Decade, minor cycle, year, month, day, and hour |
| True solar time | Free | Enabled with longitude and timezone input |
| Zheng Da Qian reading | Credits | FateStar 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:
# Free natal chart
python scripts/ziwei_cli.py chart \
--year 1990 --month 7 --day 23 --hour 8 --gender male
# Free 2026 transits
python scripts/ziwei_cli.py transits \
--year 1990 --month 7 --day 23 --hour 8 --gender male \
--target-year 2026
# Hosted reading, requires FATESTAR_API_KEY
python 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:
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
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
python skills/ziwei-paipan/scripts/generate.py --check
python tests/live_contract_check.py
python skills/ziwei-paipan/scripts/ziwei_cli.py doc
node skills/ziwei-paipan/scripts/ziwei_cli.js doc
powershell -ExecutionPolicy Bypass -File skills/ziwei-paipan/scripts/ziwei_cli.ps1 doc
bash 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。