Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

astronomy-mcp-server

MCP server by cyanheads Community

Computes planet and moon positions, rise and set times, moon phases, eclipses and seasons offline for any place and time. Useful for stargazing questions in AI assistants that support MCP.

  • Score 78
  • 5 stars
  • 406 a week
  • Apache-2.0
  • Updated

Install astronomy-mcp-server

Built from the published package, never by AI.

claude mcp add astronomy-mcp-server -- npx -y @cyanheads/astronomy-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install astronomy-mcp-server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the astronomy-mcp-server block.

About

astronomy-mcp-server gives an AI assistant observational astronomy for any place and time. It computes sky positions for the Sun, Moon, planets and a bundled set of named stars, along with rise, set and twilight times, moon phases, and the next eclipse, equinox, opposition or conjunction. The core tools run locally using the astronomy-engine library. They need no network, API key or rate limit, and return the same answer for the same body, time and observer.

Two opt-in extensions add JPL Horizons ephemerides for small bodies and spacecraft, and visible satellite passes from CelesTrak element sets propagated with SGP4. They are enabled with environment variables. The server runs over stdio or Streamable HTTP, and a public hosted instance is available. It suits people who want to check what is visible tonight, plan a night of stargazing, or add astronomy data to an MCP client.

Written from the project's README and checked against it.

Tools it gives your assistant

  • astronomy_get_sky_positionGives the apparent position of one body or named star, with RA/Dec, alt/az and magnitude.
  • astronomy_get_rise_setReturns rise, set and transit times for a body, plus Sun twilight periods.
  • astronomy_get_moon_phaseReports the illuminated fraction, phase name, synodic age and the next four quarter phases.
  • astronomy_find_eventsFinds the next eclipses, equinoxes, solstices, oppositions, conjunctions and other events.
  • astronomy_list_visibleLists naked-eye bodies above the horizon right now, ranked, with a sky-condition check.
  • astronomy_get_ephemerisReturns small-body or spacecraft ephemeris data from JPL Horizons. Opt-in.
  • astronomy_get_satellite_passesLists visible satellite passes from CelesTrak element sets using SGP4. Opt-in.

What you need

  • Node.js or Bun to run the npx or bunx launch command
  • An MCP client that supports stdio or Streamable HTTP
  • Network access for the opt-in Horizons and satellite tools
SettingNeededWhat it is
MCP_LOG_LEVELEnvironment variableOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn'). Default: info
ASTRONOMY_ENABLE_HORIZONSEnvironment variableOptionalRegister the astronomy_get_ephemeris tool, which fetches small-body and spacecraft ephemerides from JPL Horizons. Off by default; the core is keyless and offline. Default: false
ASTRONOMY_ENABLE_SATELLITESEnvironment variableOptionalRegister the astronomy_get_satellite_passes tool, which predicts visible satellite passes from CelesTrak GP element sets propagated with SGP4. Off by default. Default: false
ASTRONOMY_DEFAULT_TIMEZONEEnvironment variableOptionalFallback IANA timezone for observer-local output when a tool call omits `timezone`. Unset means UTC-only output.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • What planets are visible above my location tonight?
  • When is the next solar eclipse, and will it be visible from my city?
  • Plan a stargazing night for Denver on 2025-08-12.

Good to know

  • Core times are accurate from about 1900 to 2100 and fail outside that span.
  • The server does not do geocoding, so place names must be converted to coordinates first.
  • Horizons and satellite tools are off unless their environment variables are set to true.
  • Event searches stop at the end of 2100.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to astronomy-mcp-server

All alternatives →
Mirobody thetahealth
96

Standardizes lab test names to LOINC codes and units to UCUM, and symptoms and diagnoses to ICPC-3, offline and with no API key. Built for people who want their health records on their own machine and queryable by an AI agent over MCP.

AAA Local 1.9k
Ruview ruvnet
94

RuView is a WiFi sensing platform and MCP server that uses low-cost ESP32 sensors to detect people, breathing and heart rate. It is for developers and operators who want room sensing without cameras or wearables.

AAA Local 106k
tooluniversemims-harvard
90

ToolUniverse is an MCP server that gives AI assistants access to more than 2,700 scientific tools for life science, research and literature. It is aimed at AI scientists, researchers and developers building research systems.

AAA Local 1.8k
Mirobody thetahealth
90

Mirobody is a self-hosted engine that turns lab reports, wearable data and genetic files into a single health record. Its built-in MCP server lets an AI assistant query that record and trace each number back to its source file. It is for people who want their health data on their own machine.

AAA Local 1.9k
Scansci PDF Rimagination
88

ScanSci PDF gets academic papers for AI agents. Give it a DOI, arXiv ID, article link, reference list or research question, and it searches candidate sources and tries to fetch accessible full texts. It is for students, researchers and labs.

AAA Local 1.3k
Dsh Wensu hui-xu-ai
87

Searches CNKI and Web of Science through an MCP server, returning records with impact factors. It can also open a paper in the user's signed-in browser and read its full text. Built for researchers who want AI answers on science topics backed by the source article.

AAC Local 5k/wk

Compare with Mirobody, Ruview or tooluniverse

astronomy-mcp-server: common questions

Does astronomy-mcp-server need an internet connection?

The five core tools run offline and need no API key or rate limit. Only the opt-in Horizons and satellite tools call external services.

Can it look up a city's coordinates?

No. The source says the server does not geocode, so you resolve a place name to latitude, longitude and timezone first, then pass those values.

Which bodies and events can it report?

It covers the Sun, Moon and planets from Mercury to Pluto, plus a bundled 32-star catalog. Events include eclipses, equinoxes, solstices, moon quarters, oppositions and conjunctions.

How do I install astronomy-mcp-server?

In Claude Code run claude mcp add astronomy-mcp-server -- npx -y @cyanheads/astronomy-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is astronomy-mcp-server the official server?

astronomy-mcp-server is a community project by cyanheads, not verified by a company domain.

Is astronomy-mcp-server free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is astronomy-mcp-server safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to astronomy-mcp-server?

Similar MCP servers: Mirobody, Ruview, tooluniverse, Mirobody.

Does astronomy-mcp-server work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

astronomy-mcp-server Install

Add to stack

Loading.