npm astral-mcpstdioMITupdated 10d ago
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.
What can you do with astral mcp?
β‘ 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.
Astral MCP is Delx's focused astrology product. See the Delx platform map for its boundary with the separate Protocol, Security, Wellness and Commerce properties.
Built by David Mosiah. The astrology engine is ported from the Alkhemia app.
New to the protocol pattern? Read What Is an Astrology MCP Server? for the separation between deterministic chart computation and model interpretation, the recommended agent workflow, and the precision/privacy boundaries.
Ready to calculate one? Follow How to Generate a Natal Chart with MCP for the exact birthplace, timezone, unknown birth-time, payload and precision-audit workflow.
Handling sensitive inputs? Read How to Protect Birth Data in Astrology Agent Workflows for payload minimization, local computation, the optional OpenStreetMap boundary and the limits of privacy_mode=summary.
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.
HTTP (v2 stateless)
Default is stdio. Optional Streamable HTTP β no session id, JSON responses, loopback only:
npx -y astral-mcp --http
# GET http://127.0.0.1:3000/health
# POST http://127.0.0.1:3000/mcp (sessionless)
Env: ASTRAL_MCP_HOST, ASTRAL_MCP_PORT, ASTRAL_MCP_TRANSPORT=http.
Skill or MCP
npx -y astral-mcp call astral_connection_status --json '{}'
Install
Add astral mcp to your client. Pick the one you use.
claude mcp add astral-mcp -- npx -y astral-mcpcodex mcp add astral-mcp -- npx -y astral-mcpamp mcp add astral-mcp -- npx -y astral-mcp{
"mcpServers": {
"astral-mcp": {
"command": "npx",
"args": [
"-y",
"astral-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"astral-mcp": {
"command": "npx",
"args": [
"-y",
"astral-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"astral-mcp","command":"npx","args":["-y","astral-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"astral-mcp": {
"command": "npx",
"args": [
"-y",
"astral-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"astral-mcp": {
"command": "npx",
"args": [
"-y",
"astral-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"astral-mcp": {
"command": "npx",
"args": [
"-y",
"astral-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"astral-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"astral-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"astral-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"astral-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y astral-mcpRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
10 tools
astral mcp exposes 10 tools to a connected agent.
- astral_compute_natal_chart
- full natal chart, precision-audited by default
- astral_current_transits
- current + upcoming transits to a chart, with moon phase
- astral_synastry
- compare two charts (harmony / chemistry / communication / growth)
- astral_moon_phase
- moon phase, sign and illumination for any date
- astral_search_birthplace
- geocode a place to latitude / longitude / timezone
- astral_demo
- worked example chart, no input needed
- astral_capabilities
- what this server supports and what it doesn't
- astral_data_inventory
- data domains and recommended first calls
- astral_agent_manifest
- install + usage rules for agents
- astral_connection_status
- health check via a sample chart + dual-engine audit
Score
77 / 100
Good
- Documentation25/25
- Maintenance19/25
- Trust13/20
- Capability8/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 3 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 10 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 0.2.0Latest | Jun 7, 2026 |
| 0.1.0 | Jun 5, 2026 |