The same engines behind this site — Bazi casting and the classical TCM knowledge base — are open as MCP tools. Claude, GPT, Kimi, Cursor and our Chrome extension all bill through one wallet.
JSON-RPC over stdio or HTTP. Every call is metered per tool; free daily quotas keep experimentation at zero cost.
| Tool | What it does | Price | Free quota/day |
|---|---|---|---|
| bazi_cast | Cast a full Four-Pillars chart: pillars, ten-gods, hidden stems, na-yin, luck cycles | $0.002 | 50 |
| bazi_five_elements | Five-element strength distribution | $0.001 | 50 |
| tcm_search | Search 234 formulas & 50 patterns by symptom | $0.005 | 20 |
| tcm_formula_detail | Formula detail: composition, indication, contraindication | $0.005 | 10 |
| bazi_interpretation | AI prose interpretation (personality / love / career / wealth) | $0.10 | — |
| report_quote | Report prices & order links — your conversion hook | free | unlimited |
| account_usage | Plan, usage & pricing lookup | free | unlimited |
| developer_dashboard | Balance, ledger, call logs, invitees | free | unlimited |
| developer_recharge | Recharge wallet (Stripe in production) | free | unlimited |
| developer_create_key | Create key, optionally bound to inviter | free | unlimited |
| developer_reset_key | Rotate key — old key revoked instantly | free | unlimited |
// 1. 挂进 Claude / Kimi / Cursor — stdio { "mcpServers": { "veilchart": { "command": "node", "args": ["/path/mcp-server/server.js"] } } }
// 2. 或走 HTTP 端点(生产) curl https://api.veilchart.com/mcp \ -H "Authorization: Bearer gy_xxx" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{ "name":"bazi_cast", "arguments":{"apiKey":"gy_xxx","year":1990,"month":5,"day":20, "hour":14,"gender":"female"}}}'
Popup + side panel + right-click menu. When the API is unreachable it casts charts locally — free and unmetered — so the extension always works.
Birth data in, chart out — metered via your key, 50 free casts daily.
Select any text on any page → search the TCM knowledge base instantly.
Built-in calendar engine casts charts without network — a free acquisition hook.
Plan, balance and spend, one click away.
Open chrome://extensions and enable Developer mode
“Load unpacked” → choose the chrome-extension/ folder
Click the toolbar icon and paste your gy_… API key
Pin it — select text anywhere, right-click, look it up