mcpField
M
mcp-ephemeris

mcp-ephemeris

Local
llmastro.comGames & Entertainment0Updated 14w ago

About mcp-ephemeris

mcp-ephemeris is a local MCP server for astrology users and assistants, returning computed planetary positions and chart data from ephemeris engines. It offers 19 tools and can validate results against JPL Horizons; birth data stays on the machine.

Key features

  1. 01Computed planetary positions and aspects
  2. 02Natal, transit, and relationship charts
  3. 03Eclipse and retrograde event tools
  4. 04Astrocartography and numerology tools
  5. 05Compare positions with JPL Horizons

Use cases

  1. 01Retrieve current sky positions for a location
  2. 02Generate natal and relationship charts
  3. 03Check planetary events over a date range

MCP support

Exposes 19 astrology and ephemeris tools to MCP clients, including chart, position, and event calculations. It runs locally; only validation against JPL Horizons makes an external request.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"kairosastro-sketch-mcp-ephemeris": {
"command": "npx",
"args": [
"-y",
"@cosmosos/mcp-ephemeris"
]
}
}
}
Run commandnpx -y @cosmosos/mcp-ephemeris

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@cosmosos/mcp-ephemeris0.2.3

Tools

19

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
datetimestringYesInstant in ISO 8601 UTC, e.g. "2026-07-18T14:00:00Z". Without a time zone, interpreted as UTC.

Details

From the project README

@cosmosos/mcp-ephemeris

The real sky, for your AI. An MCP server that gives any assistant (Claude, Cursor, agents) computed planetary positions — never guessed — powered by the Swiss Ephemeris engine, and validated against JPL Horizons (NASA) to under one arcsecond.

Cardinal rule: the LLM never computes. This server is a facade over an ephemeris engine. The model interprets; the sky is a fact.

(Version française : https://llmastro.com/notre-moteur)

Quick start (Claude Desktop)

Open Settings → Developer → Edit Config, then add:

{
  "mcpServers": {
    "llmastro": {
      "command": "npx",
      "args": ["-y", "@cosmosos/mcp-ephemeris"]
    }
  }
}

Fully quit Claude Desktop (system tray) and relaunch it. Then ask: "What's the moon phase today?" — Claude calls the server and answers from genuinely computed positions.

Cursor / Windsurf / others: add the same llmastro entry (command: npx, args: ["-y", "@cosmosos/mcp-ephemeris"]) to your client's MCP configuration.

Tools exposed

19 tools, all backed by the same server-side computed engine.

Positions & sky
ToolInputOutput
get_planet_positionsdatetime (ISO UTC)ecliptic positions of all bodies (sign, degree, retro)
get_moon_phasedatetime (ISO UTC)moon phase, illumination %, description
get_current_skylatitude, longitudethe sky right now (current transits) for a place
get_aspectsdatetime (ISO UTC)grid of major + minor aspects between bodies
Natal chart & relationships
ToolInputOutput
get_natal_chartbirth + zodiac (tropical/sidereal), houseSystem (7 systems)full chart: houses, aspects, ASC/MC, moon phase, Hermetic Lots
get_transitsbirth + optional datetimetransit→natal aspects, sorted by orb
get_synastrytwo birthsinter-chart aspects + harmony/tension summary
get_composite_charttwo birthsmidpoint composite chart
get_secondary_progressionsbirth + targetDateprogressed positions ("a day for a year")
get_solar_returnbirth + year (+ optional place)instant + chart of the solar return
get_lunar_returnbirth + optional afterinstant + chart of the next lunar return
Celestial events
ToolInputOutput
get_ingressesbody, start, endsign-change dates (retrograde-robust)
get_retrograde_windowsbody, start, endretrograde/direct stations over the range
get_eclipse_detailsdatetime, kindmagnitude, obscuration, Saros of a known eclipse (swisseph)
get_next_eclipsefrom, kind, optional backwardnext/previous eclipse: maximum, type, contacts (swisseph)
Astrocartography, numerology, authority
ToolInputOutput
get_astrocartographydatetime (ISO UTC)planetary MC/IC lines + parans (crossings)
get_life_pathdate (YYYY-MM-DD)life-path number (numerology)
get_engine_diagnostic—active engine, native addon load status, real precision
validate_against_horizonsdatetime, optional bodiesdelta of our positions vs JPL Horizons (NASA) in arcseconds — network required

(swisseph) = requires the native Swiss Ephemeris addon; returns null on the AstraCore fallback.

Precision

Under Swiss Ephemeris, positions match the world reference JPL Horizons (NASA) to under one arcsecond (measured 2026-07-19):

BodyDifference vs NASA
Sun0.2″
Moon1.5″
Jupiter0.1″
Pluto0.4″

Check it yourself with the validate_against_horizons tool.

Two engines

Computation is routed by the ASTRO_ENGINE variable:

  • swisseph (default) — Swiss Ephemeris, native addon, sub-arcsecond precision. Compiles automatically wherever a C++ build chain is present (Linux, macOS, most servers).
  • astracore — in-house pure-TypeScript engine (VSOP/Meeus), no native binary. Used as an automatic fallback when swisseph couldn't be compiled (common on Windows). Sun and Moon stay accurate; outer planets drift by a few arcminutes.

To force an engine: ASTRO_ENGINE=swisseph or ASTRO_ENGINE=astracore.

Privacy

The server runs on your machine: your birth data is sent nowhere. Only validate_against_horizons makes an outbound request (to NASA's public API).

Requirements

  • Node.js ≥ 20.
  • For maximum precision (swisseph): a C++ build chain (python3, make, a compiler) on the machine. Otherwise, automatic fallback to astracore, with no configuration.

About

Powered by the astrology engine of Llmastro. Learn more about the precision and architecture: https://llmastro.com/notre-moteur.

License

Free for non-commercial use (personal, research, education, non-profit organizations) — under the PolyForm Noncommercial 1.0.0 license.

Commercial / professional use: a paid license is required. To obtain one, contact KAIROSAST LTD via https://llmastro.com/contact.

Note: the optional swisseph dependency (Swiss Ephemeris, Astrodienst) has its own license (AGPL or a commercial Swiss Ephemeris license) and is not covered by this one. Professional use must comply with it separately.

Development

This repository is self-contained: the ephemeris engine is vendored in vendor/ephemeris/ (source), and the build inlines it into dist/ via tsup.

pnpm install          # or npm install
pnpm build            # bundles dist/index.js (engine inlined)
pnpm start            # runs the MCP server (stdio) locally
  • Default engine: swisseph (sub-arcsecond precision) if the native addon compiles, otherwise automatic fallback to astracore (pure TypeScript, no binary). Force via ASTRO_ENGINE=swisseph|astracore.
  • The vendored engine is a snapshot of @astro-platform/ephemeris (Llmastro), re-synced manually.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.