Fatesense MCP
Deterministic BaZi, Zi Wei and Chinese almanac calculations for AI assistants
Fatesense MCP is an open-source MCP server for astronomy. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 1.0.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add fatesense-mcp -- npx -y fatesense-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"fatesense-mcp": {
"command": "npx",
"args": [
"-y",
"fatesense-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"fatesense-mcp": {
"command": "npx",
"args": [
"-y",
"fatesense-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"fatesense-mcp": {
"command": "npx",
"args": [
"-y",
"fatesense-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"fatesense-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fatesense-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add fatesense-mcp -- npx -y fatesense-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.fatesense-mcp]
command = "npx"
args = ["-y", "fatesense-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"fatesense-mcp": {
"command": "npx",
"args": [
"-y",
"fatesense-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "fatesense-mcp": { "command": "npx", "args": [ "-y", "fatesense-mcp" ] } } }Or run: gemini mcp add -s user fatesense-mcp npx -- -y fatesense-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "fatesense-mcp": { "command": "npx", "args": [ "-y", "fatesense-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "fatesense-mcp": { "command": "npx", "args": [ "-y", "fatesense-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "fatesense-mcp": { "command": "npx", "args": [ "-y", "fatesense-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "fatesense-mcp": { "command": "npx", "args": [ "-y", "fatesense-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "fatesense-mcp": { "command": "npx", "args": [ "-y", "fatesense-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "fatesense-mcp": { "command": "npx", "args": [ "-y", "fatesense-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "fatesense-mcp": { "command": "npx", "args": [ "-y", "fatesense-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Fatesense MCP
Calendar-based Chinese metaphysics calculations are easy for language models to get wrong, especially day pillars and solar term boundaries. This server runs those calculations locally with open-source calendar engines, so an assistant can request exact Four Pillars charts, dual-chart comparisons, Zi Wei Dou Shu palaces and daily almanac entries before it interprets them.
The tools cover true solar time correction, the early and late Zi hour switch, hidden stems, ten gods, decadal luck pillars, 14 major stars and four transformations. A separate lookup tool returns links into a bilingual reference site for classics, zodiac guides and methodology notes.
It suits developers building astrology or cultural apps, and anyone who wants an assistant to work from consistent chart data rather than guessed calendar arithmetic. The server is installed through npm and runs over stdio in Claude Desktop, Cursor or Windsurf.
Tools this server provides (5)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 5 tools read data; 3 names don't say.
From the server's own tool labels and tool names; not verified by us.
- calculate_bazi_chart
- Exact Four Pillars, True Solar Time correction, Early/Late Zi-Hour switch, Hidden Stems, Ten Gods, NaYin, Void branches, and 8 Decadal Luck Pillars
- calculate_bazi_compatibility
- Dual-chart comparison checking Classical Five-Stem Unions, Spouse Palace Six-Harmony / Six-Clash, and combined Five-Element balance
- calculate_ziwei_astrolabe
- True-lunar Zi Wei Dou Shu 12 Palaces, Five Elements Bureau, Life/Body Master, 14 Major Stars, brightness levels, and Four Transformations
- get_daily_almanacName suggests: reads
- Chinese Daily Almanac: lunar date, Solar Term, Twelve Duty Officers, 28 Lunar Mansions, and traditional Yi/Ji activities
- lookup_fatesense_knowledgeName suggests: reads
- Canonical links into FateSense's bilingual reference library
What it does
- Four Pillars chart calculation
- Computes BaZi pillars with true solar time correction and the early or late Zi hour rule.
- Dual-chart compatibility
- Compares two birth charts using stem combinations and spouse palace harmony or clash checks.
- Zi Wei Dou Shu astrolabe
- Produces a 12-palace chart with major stars, brightness levels and four transformations.
- Daily Chinese almanac
- Returns the lunar date, solar term, duty officer, lunar mansion and traditional yi and ji activities for a day.
- Reference link lookup
- Returns links into a bilingual reference library covering classics, zodiac guides and methodology.
Good for
- Give an AI assistant accurate Four Pillars data before it writes a reading
- Compare two birth charts for compatibility discussions in a companion app
- Generate Zi Wei palace layouts for a astrology learning tool
- Pull the daily almanac entry into a scheduling or lifestyle assistant
- Add verified calendar calculations to a Chinese cultural content workflow
Pricing
Open source
Free MIT-licensed MCP server; a free web version is also offered.
Fatesense MCP FAQ
How do I install Fatesense MCP?
It is published on npm as fatesense-mcp and can be run with npx -y fatesense-mcp, using a stdio entry in the MCP client configuration. A local clone with npm install is also described.
Does Fatesense MCP need any API keys or environment variables?
No environment variables are declared in the registry entry.
Which calendar engines does Fatesense MCP use?
Chart and almanac calculations use the tyme4ts library, and Zi Wei Dou Shu charts use the iztro library, both MIT licensed.
Are the readings presented as medical or financial advice?
The project describes BaZi, Zi Wei and related practices as cultural frameworks for self-reflection and dialogue, not as medical, legal or financial guarantees.
Is Fatesense MCP free?
Yes. Fatesense MCP is open source, so you can use and self-host it for free.
How do I add Fatesense MCP to Claude Code?
Run this command in your terminal: claude mcp add fatesense-mcp -- npx -y fatesense-mcp
What are the best alternatives to Fatesense MCP?
The closest alternatives to Fatesense MCP are OpenFate Bazi MCP, Freebazi, BaziChart, Fatenava MCP and BaZi Four Pillars MCP.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.
