Astronomy MCP Server logo

Astronomy MCP Server

Offline astronomy calculations for sky positions, visibility, rise/set times, lunar phases, and celestial events over MCP.

Install Astronomy MCP Server

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for astronomy-mcp-server, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

astronomy-mcp-server MCP server calculates observational astronomy data for a place and time, including positions, visibility, rise/set times, lunar phases, eclipses, and seasons. Core results are computed locally with astronomy-engine and exposed through STDIO or Streamable HTTP. Optional tools query JPL Horizons for small-body and spacecraft ephemerides or CelesTrak data for satellite passes. Reach for it when an agent needs reproducible sky information without a general-purpose astronomy service.

Use cases

  • Calculate a planet’s apparent position for an observer
  • Plan observations around rise, set, and twilight times
  • Find upcoming eclipses, conjunctions, or lunar phases
  • List objects visible from a location right now
  • Track optional spacecraft or satellite visibility

Key features

  • Offline sky-position and visibility calculations
  • Rise, set, transit, and twilight timing
  • Moon phases and upcoming astronomical events
  • Optional JPL Horizons ephemerides
  • Optional CelesTrak satellite-pass predictions
  • STDIO and Streamable HTTP interfaces

Tools7

What Astronomy MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~208 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

4/4 checks healthy over the last 46d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads1.6kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Tools exposed7Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Astronomy MCP Server works

What astronomy-mcp-server does

The astronomy-mcp-server MCP server exposes observational astronomy calculations to MCP clients. It can determine where a planet, the Sun, the Moon, or a cataloged bright star appears; calculate rise, set, and transit times; report solar twilight; describe the Moon’s current phase; and find upcoming astronomical events.

The core calculations cover any supplied time and observer location where the operation requires coordinates. Results include coordinate systems, visibility-related values, event times, and additional metadata such as constellation, apparent magnitude, illuminated fraction, or transit altitude. The server also provides a body resource with reference information for solar-system objects and a stargazing prompt that chains astronomy operations with geocoding and weather steps.

How it works

Most calculations run locally through the astronomy-engine library, so the primary astronomy tools do not depend on a remote astronomy API. The server communicates through MCP using either STDIO or Streamable HTTP. A public hosted endpoint is also listed at https://astronomy.caseyjhand.com/mcp.

Optional capabilities use external data sources. JPL Horizons supplies ephemerides for small bodies and spacecraft, while CelesTrak element sets are propagated with SGP4 to identify visible satellite passes. These features are disabled unless their corresponding configuration flags are enabled.

Tools and capabilities

The astronomy-mcp-server MCP server includes seven tools:

  • astronomy_get_sky_position returns equatorial, horizontal, and ecliptic coordinates, along with magnitude, phase, elongation, constellation, and object metadata where applicable. Named stars resolve from a bundled 32-star catalog.
  • astronomy_get_rise_set reports rise, set, and transit data. For the Sun, it also returns civil, nautical, and astronomical dawn and dusk.
  • astronomy_get_moon_phase gives the illuminated fraction, phase name, synodic age, phase longitude, and next four quarter phases.
  • astronomy_find_events searches for eclipses, equinoxes, solstices, lunar quarters, oppositions, conjunctions, elongations, and apsides.
  • astronomy_list_visible ranks above-horizon naked-eye bodies and can include bright stars, with a sky-condition classification.
  • astronomy_get_ephemeris queries JPL Horizons for small bodies or spacecraft when enabled.
  • astronomy_get_satellite_passes finds visible passes from CelesTrak data when enabled.

Setup and configuration

Install or run the package through an MCP client using the repository’s published installation options. The listing provides client installation links for Claude Desktop, Cursor, and VS Code. The server can also be operated through its STDIO or Streamable HTTP interfaces, including the published hosted endpoint.

Core tools need no optional data-source flag. Set ASTRONOMY_ENABLE_HORIZONS=true to register the JPL Horizons ephemeris tool, or ASTRONOMY_ENABLE_SATELLITES=true to register satellite-pass queries. These are opt-in features rather than requirements for local planet, Moon, event, and visibility calculations.

Limitations and notes

Rise and set can be null for circumpolar or never-rising objects, with an explanatory note instead of an error. Visibility is evaluated at one instant rather than across a time window, and the tool accounts for daylight, twilight, and nearby solar glare. Satellite searches are limited to recent element data and a bounded search period. Horizons requests can fail for ambiguous, unsupported, or invalid designations, and event searches stop at the end of 2100. The astronomy-mcp-server MCP server is therefore best suited to observational calculations and planning, not as a replacement for a full astronomical data archive.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Astronomy MCP Server

astronomy-mcp-server is an MCP server that connects AI clients to local astronomy-engine calculations, with optional JPL Horizons and CelesTrak data. Its main tools provide sky positions, rise/set and twilight times, Moon phases, astronomical events, visible objects, small-body or spacecraft ephemerides, and satellite passes.

Install it through the published MCP options for Claude Desktop, Cursor, or VS Code, or run it through STDIO or Streamable HTTP. The project also publishes a hosted MCP endpoint and provides npm and Docker distribution references.

Yes, the repository provides a Cursor installation link for astronomy-mcp-server. Cursor is one of the clients explicitly named by the project, alongside Claude Desktop and VS Code.

Set `ASTRONOMY_ENABLE_HORIZONS=true` to register the JPL Horizons ephemeris tool, or set `ASTRONOMY_ENABLE_SATELLITES=true` to register satellite-pass queries. Both capabilities are opt-in; the local astronomy tools do not require these flags.

Yes, when `ASTRONOMY_ENABLE_SATELLITES=true` is set. The server uses CelesTrak element data and SGP4 propagation, returning passes that meet its visibility conditions, including sunlight on the satellite, elevation above 10 degrees, and the Sun below -6 degrees.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAstronomy MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/astronomy-mcp-server?style=directory)](https://allmcps.com/mcp/astronomy-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/astronomy-mcp-server"><img src="https://allmcps.com/api/badge/astronomy-mcp-server?style=directory" alt="Astronomy MCP Server on AllMCPs" /></a>