跳到正文
DEV Community· BENZEMA·· 2 小時前AI 評分43

為何 LLM 在中國八字與占星上持續產生幻覺?FateSense 開源 MCP 伺服器,並以 $0 Cloudflare 部署 459 個靜態頁面

Why LLMs Keep Hallucinating Chinese BaZi & Astrology — So We Open-Sourced an MCP Server + 459 Static Pages on $0 Cloudflare

AI 導讀

FateSense 開源 MIT 授權的 fatesense-mcp,為 Claude Desktop、Cursor 及自訂 AI agents 提供可審核的確定性八字與紫微鬥數計算。

正文

f you ask a frontier LLM to calculate a Chinese BaZi (Four Pillars of Destiny) or Zi Wei Dou Shu birth chart from a Gregorian birthday, it will happily write a poetic three-paragraph reading—and get the Day Pillar or Month Pillar completely wrong more than half the time.

The reason is simple: Chinese metaphysics runs on exact astronomical 24 Solar Terms (Jieqi), 60-cycle Sexagenary calendar math, True Solar Time longitude corrections, and true-lunar leap-month rules. Predicting tokens cannot replace deterministic calendar astronomy.

As a bootstrapped 3-person team (2 devs + 1 content), we built FateSense
(知命) around one principle: keep calculation 100% deterministic and auditable, and keep all core web tools free with zero sign-up walls.

  1. The Open-Source MCP Server (fatesense-mcp)

Today we open-sourced fatesense-mcp
(MIT license), a lightweight Node.js Model Context Protocol (MCP) server for Claude Desktop, Cursor, and custom AI agents that wraps two battle-tested MIT astronomical libraries:

tyme4ts for exact 24 Solar Terms, True Solar Time (Spencer Equation of Time + longitude), Early/Late Zi-Hour (23:00–00:00) day-boundary toggling, Hidden Stems, Ten Gods, NaYin, and 8 Decadal Luck Pillars.
iztro for true-lunar Zi Wei Dou Shu 12 Palaces, Five Elements Bureau, 14 Major Stars, brightness ratings, and Four Transformations.

Out of the box, fatesense-mcp exposes 5 hallucination-free tools:

calculate_bazi_chart
calculate_bazi_compatibility
calculate_ziwei_astrolabe
get_daily_almanac
lookup_fatesense_knowledge

Drop it into claude_desktop_config.json or Cursor mcp.json:

json
{
"mcpServers": {
"fatesense": {
"command": "node",
"args": ["/path/to/fatesense-mcp/index.js"]
}
}
}

  1. The $0 Cloudflare Web Architecture (459 Bilingual Static Pages)

Alongside the MCP server, we shipped 6 zero-login client-side tools and 459 static bilingual pages (English / + Traditional Chinese /zh-tw/) using Next.js App Router (output: "export") on Cloudflare Pages:

Pro BaZi Calculator: fatesense.app/tools/bazi-calculator
Free BaZi Compatibility (Dual-Chart Synergy + 9:16 Card Export): fatesense.app/tools/bazi-compatibility
True-Lunar Zi Wei 12 Palaces: fatesense.app/tools/zi-wei-birth-chart
Chinese Daily Almanac: fatesense.app/tools/daily-almanac
60 Jiazi Fortune Sticks & 3-Coin I Ching Oracle: fatesense.app/tools/i-ching-reading
Pop-Culture pSEO Experiment (GTA 6 Cast in Classical BaZi): fatesense.app/guides/gta6-characters
— decoding all 9 officially revealed GTA 6 characters (Lucia's Ren-Wu "Ocean on Wildfire" × Jason's Wu-Xu "Kui Gang Mountain") with an interactive Destiny Twin matcher.

For telemetry and early-access waitlists without heavy SaaS fees or cookie banners, we deployed one <200-line Cloudflare Worker + Workers KV endpoint that tracks waitlist sign-ups and classifies incoming AI referrals (chatgpt.com, perplexity.ai, claude.ai, copilot.microsoft.com, Google, Bing).

  1. Designing for GEO (AI Search Readiness) From Day 1

In addition to traditional SEO (sitemap.xml with 453 hreflang URLs), we published:

Explicit AI-crawler openness in robots.txt (OAI-SearchBot, GPTBot, ClaudeBot, PerplexityBot)
A structured machine-readable index at fatesense.app/llms.txt
Full calculation transparency & non-deterministic boundaries at fatesense.app/methodology

Within 24 hours of deploying, Cloudflare AI Crawl Control recorded 218 hits from ClaudeBot and 78 hits from Googlebot with zero errors—all on a $0/month infrastructure bill.

Would love feedback from anyone building MCP servers, static Next.js pSEO sites, or domain-specific deterministic tools for LLMs!

GitHub (MIT): https://github.com/BENZEMA216/fatesense-mcp
Live Tools (Zero Login): https://fatesense.app
MCP Integration Page: https://fatesense.app/mcp

來源:DEV Community · dev.to