davidmosiah/astral-mcp
๐ ๐ ๐ ๐ช ๐ง - Zero-setup astrology MCP server for natal charts, current transits, synastry, Moon phases and birthplace lookup, with privacy modes for compact agent payloads.
Quick Install
{
"mcpServers": {
"davidmosiah-astral-mcp": {
"command": "npx",
"args": [
"-y",
"davidmosiah-astral-mcp"
]
}
}
}Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.
Documentation Overview
Astral MCP
Give your AI agent real astrology โ natal charts, transits, synastry & moon phases.
Computed locally, cross-checked by two independent ephemerides. No API key, no account.
โก Zero-setup install. Wire it into Claude Desktop / Cursor / Hermes and call it immediately โ no API key, no OAuth, no account:
npx -y astral-mcp
A local-first MCP server that turns birth data into a full, precision-audited astrological reading for AI agents. Stateless and computational โ nothing is stored, no credentials exist, and every tool but optional geocoding runs fully offline.
Built by David Mosiah. The astrology engine is ported from the Alkhemia app.
Why this exists
Most astrology libraries are fragile single-engine wrappers, and most "astrology APIs" want a key and a subscription. Agents need something they can trust and call instantly. Astral MCP does two things differently:
- It just works.
npx -y astral-mcpand you're calling charts โ no OAuth, no account, no birthplace database to install. - It checks itself. Every natal chart is computed with one ephemeris and then independently re-derived, planet by planet, with a second one. If they disagree beyond a tight tolerance, the chart is flagged
reviewinstead of silently returning a wrong placement.
Setup in 60 seconds
Add it to your MCP client (Claude Desktop, Cursor, Hermes, โฆ):
{
"mcpServers": {
"astral": {
"command": "npx",
"args": ["-y", "astral-mcp"]
}
}
}
That's the whole setup. There is nothing to authenticate.
Run it directly if you want:
npx -y astral-mcp # stdio (default)
ASTRAL_MCP_TRANSPORT=http npx -y astral-mcp # streamable HTTP on 127.0.0.1:3000
See it before you connect
Call astral_demo for a fully-worked example chart (Greenwich, noon, Y2K) including its precision audit โ no input, no network, no auth. It shows you the exact payload shape before you send real birth data.
Try it with your agent
"What's my natal chart? I was born 23 Feb 1989, 14:30, in Fortaleza, Brazil."
The agent calls astral_search_birthplace to resolve Fortaleza โ lat/lon/timezone, then astral_compute_natal_chart.
"Any big transits hitting my chart this week?" โ
astral_current_transits"How compatible are we?" (two birth datas) โastral_synastry"What phase is the moon in today?" โastral_moon_phase
Precision
Astral MCP ships every natal chart with a precision audit. The primary engine (circular-natal-horoscope-js) computes the chart; the verifier (astronomy-engine) re-derives each planet's ecliptic longitude independently. A chart is verified only when every planet agrees within tolerance and lands in the same sign.
Across a built-in accuracy suite of charts spanning 1945โ2010 and six timezones, the worst cross-engine disagreement is under 0.01ยฐ. Run it yourself:
npm run test:accuracy
Data availability
| Capability | Supported |
|---|---|
| Planets (SunโฆPluto), Ascendant, MC/IC | โ |
| Houses (placidus, koch, campanus, regiomontanus, topocentric, equal-house, whole-sign) | โ |
| Major aspects with orb, strength, applying/separating | โ |
| Chart signature (dominant element/modality, pattern, stelliums, angular planets) | โ |
| Retrogrades ยท timezone/DST handling | โ |
| Transits (current + upcoming) ยท moon phase | โ |
| Synastry (two-chart comparison, scored) | โ |
| Tropical & sidereal zodiac | โ |
| Lunar nodes, Chiron, asteroids, fixed stars | โณ planned |
| Minor aspects | โณ planned |
| Interpretation text | โ by design โ astral-mcp returns structured data; your model writes the reading |
Tools
astral_compute_natal_chartโ full natal chart, precision-audited by defaultastral_current_transitsโ current + upcoming transits to a chart, with moon phaseastral_synastryโ compare two charts (harmony / chemistry / communication / growth)astral_moon_phaseโ moon phase, sign and illumination for any dateastral_search_birthplaceโ geocode a place to latitude / longitude / timezoneastral_demoโ worked example chart, no input neededastral_capabilitiesโ what this server supports and what it doesn'tastral_data_inventoryโ data domains and recommended first callsastral_agent_manifestโ install + usage rules for agentsastral_connection_statusโ health check via a sample chart + dual-engine audit
The three chart tools (astral_compute_natal_chart, astral_current_transits, astral_synastry) take a privacy_mode parameter โ a payload-verbosity axis separate from response_format:
full(default) โ the complete payload, including the per-planet precision auditstructuredโ same structure, redundant/derivable fields droppedsummaryโ only the high-signal essentials (luminaries + Ascendant, chart signature, top aspects)
A full Greenwich natal payload is ~6.9 KB; summary is ~1.2 KB (~80% smaller), so an agent that only needs a quick read can ask for less and spend fewer tokens.
Notes for accurate readings
- Pass the birthplace timezone, not the caller's.
astral_search_birthplacereturns it. birth_timeis optional. Without it, noon is assumed: planet signs stay accurate, but the Ascendant and houses are unreliable.
Privacy & Security
Astral MCP stores nothing and holds no secrets. The only optional network call is astral_search_birthplace (OpenStreetMap), which sends just the place-name string you pass. See SECURITY.md.
Contributing
The computation core in src/engine/ is ported from Alkhemia โ keep it framework-free. See AGENTS.md for the development rules and the test gate (npm test).
License
MIT โ see LICENSE.