mcp-stargazing

v0.12.5
mcp-stargazing Checked 3 days ago Published 22 days ago

An MCP server that provides real-time astronomical data, smart stargazing planning, and light pollution analysis for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_celestial_pos

Calculate the altitude and azimuth angles of a celestial object. Use when: you need one named object's position at a specified place and instant. Do not use when: you need an all-night target list or a complete observing decision. Requires: object name, observer coordinates, observation time, and its IANA timezone. Follow-up: get_celestial_rise_set for events; get_nightly_forecast for night targets; plan_stargazing_session for a complete observing decision. Args: celestial_object: Name of object (e.g. "sun", "moon", "andromeda") lon: Observer longitude in degrees lat: Observe…

ParameterTypeDescription
celestial_object *string
lat *number
lon *number
time *string
time_zone *string

get_celestial_rise_set

Calculate the rise and set times of a celestial object. Use when: you need one object's rise/set events. Choose calendar_day for the local date containing time, or next_events for the next rise and next set after time. Do not use when: you need a continuous observing window or a complete night plan. Requires: object name, observer coordinates, time, timezone, and the intended event scope. Follow-up: get_celestial_pos for position; plan_stargazing_session for observing windows. Args: celestial_object: Name of object (e.g. "sun", "moon", "andromeda") lon: Observer longitude in degr…

ParameterTypeDescription
celestial_object *string
lat *number
lon *number
time *string
time_zone *string
event_scopestring

get_moon_info

Get detailed information about the Moon's phase and position. Use when: you need lunar phase or illumination facts, with optional observer-local events. Do not use when: you need to rank observing sites or assess a target's overall suitability. Requires: time and timezone; supply both lat and lon for local position and rise/set. Follow-up: get_telescope_targets for equipment-aware targets; plan_stargazing_session for the combined effect of moonlight, weather, place, and observing goals. When ``lat`` and ``lon`` are provided, also returns the Moon's local altitude, azimuth, moonrise, and…

ParameterTypeDescription
time *string
time_zone *string
lat
lon

list_visible_planets

Get a list of solar system planets currently visible (above horizon). Use when: you need planets above the observer's horizon at a specified instant. Do not use when: you need all-night visibility, darkness guarantees, or equipment ranking. Requires: observer coordinates, time, and timezone; above-horizon visibility alone does not establish dark-sky or telescope observing conditions. Follow-up: get_celestial_pos or get_celestial_rise_set for a selected planet; plan_stargazing_session for a planetary observing decision. Args: lon: Observer longitude in degrees lat: Observer la…

ParameterTypeDescription
lat *number
lon *number
time *string
time_zone *string

get_constellation

Get the position (altitude/azimuth) of the center of a constellation. Use when: you need a named constellation's center position at a place and instant. Do not use when: you need to identify which constellation contains arbitrary coordinates, or to choose individual observing targets. Requires: constellation name, observer coordinates, time, and timezone. Follow-up: get_nightly_forecast for individual night targets; plan_stargazing_session for a complete observing decision. Args: constellation_name: Name of constellation (e.g. "Orion", "Ursa Major") lon: Observer longitude in…

ParameterTypeDescription
constellation_name *string
lat *number
lon *number
time *string
time_zone *string

get_nightly_forecast

Get a curated list of best objects to view for the night. Use when: place and night are known and you need general night targets and a night window. Do not use when: you need telescope-specific target matching or regional site selection. Requires: observer coordinates, time within the intended night, timezone, and optional limit. Interpretation: this is an astronomy forecast, not a weather forecast. Deep-sky altitude and score are evaluated at the supplied time; deep_sky.score sorts lower first and must not be compared with telescope suitability_score (higher first). The legacy tr…

ParameterTypeDescription
lat *number
lon *number
time *string
time_zone *string
limitinteger

get_tool_catalog

Get metadata for all registered MCP tools. Use when: you need the wrapped catalog with full documentation and parameter summaries. Do not use when: your client only needs standard MCP tools/list discovery or a business result. Requires: no inputs; this call discovers tools and does not perform observing analysis. Follow-up: choose a tool from its use/do-not-use guidance; plan_stargazing_session is the primary entry for complete observing decisions. Returns: Dict with keys "data", "_meta". "data.tools" contains tool metadata objects.

light_pollution_map

Get light pollution data for a specific area. Use when: you need a bounding-box grid of light pollution measurements for a map or analysis. Do not use when: you need ranked places or a complete observing decision. Requires: south/west/north/east bounds and optional grid zoom. Returns: data.grid points with brightness, Bortle class, and SQM, plus bounds and zoom. Follow-up: analysis_area for synchronous place candidates; submit_area_analysis for background place analysis; plan_stargazing_session for an observing decision. Returns a grid of light pollution data points including brightness,…

ParameterTypeDescription
east *number
north *number
south *number
west *number
zoominteger

analysis_area

Analyze a geographic area for suitable stargazing locations. Use when: you need synchronous place candidates or cached pages for a fixed regional query. Do not use when: the search needs background polling/cancellation or a complete night plan. Requires: south/west/north/east bounds; keep search parameters fixed while changing pages. Follow-up: analysis_area with the same query for other pages; submit_area_analysis for background work; plan_stargazing_session for dates, weather, and target decisions. This tool searches for dark, accessible locations with good viewing conditions. Results…

ParameterTypeDescription
east *number
north *number
south *number
west *number
avoid_popular_spotsboolean
db_config_pathstring
max_locationsinteger
min_height_diffnumber
network_typestring
pageinteger
page_sizeinteger
popularity_radius_kmnumber
prefer_quiet_at_nightboolean
road_radius_kmnumber

submit_area_analysis

Submit bounded background place analysis and return its task identifier. Use when: a geographic place search may outlive one tool call and needs background control. Do not use when: you need a complete observing decision or only want to poll an existing task. Requires: request.bounds and optional place-search preferences; max_locations must be from 1 to 100. Returns: task snapshot with task_id, resource_id, state, and normalized request. Active duplicate queries share a task. Completed retries may use cached data. Follow-up: get_area_analysis_task to poll; get_area_analysis_result aft…

ParameterTypeDescription
request *objectBusiness parameters only; task budgets and data sources are server policy.

get_area_analysis_task

Poll an area task's state, deadline, failure, and normalized request. Use when: you have a task_id and need execution state, failure, or remaining physical work. Do not use when: you need result pages; do not submit a new job merely to poll. Requires: task_id returned by submit_area_analysis in the same server runtime. Returns: task snapshot with state, failure, request, and execution_pending. Running progress is unknown; success does not guarantee the separate result cache still exists. Follow-up: get_area_analysis_result after success; cancel_area_analysis_task if unwanted. On TASK_…

ParameterTypeDescription
task_id *string

cancel_area_analysis_task

Logically cancel queued/running area work and discard its late results. Use when: a submitted area task is no longer needed and its late result must not publish. Do not use when: you want to delete cached data or interrupt another domain's operation. Requires: task_id returned by submit_area_analysis in the same server runtime. Returns: idempotent cancellation snapshot; an existing terminal state stays unchanged. A running provider call keeps its execution slot until it actually finishes. Follow-up: get_area_analysis_task to confirm state and execution_pending; wait for physical work…

ParameterTypeDescription
task_id *string

get_area_analysis_result

Page a successful area task's existing cached result without recomputing. Use when: get_area_analysis_task reports succeeded and you need its original result pages. Do not use when: the task is queued/running and you only need to poll its state. Requires: the successful task_id, page >= 1, and page_size >= 1. Returns: cached items, pagination metadata, and resource_id with the task's publication version checked; this call never silently recomputes missing data. Follow-up: get_area_analysis_result with the same task_id for other pages; get_area_analysis_task for state; resubmit the nor…

ParameterTypeDescription
task_id *string
pageinteger
page_sizeinteger

get_telescope_targets

Recommend astrophotography targets for a telescope setup. Use when: place, time, and optics are known and you need ranked deep-sky imaging targets. Do not use when: you only need naked-eye targets, a timed schedule, or a choice of sites. Requires: focal length, observer coordinates, time, and timezone; supply known sensor and optical details for matching. For equipment presets use plan_stargazing_session. Follow-up: get_shooting_plan for timed imaging slots; plan_stargazing_session if the observing place or night still needs comparison; get_celestial_pos for altitude at a specific…

ParameterTypeDescription
focal_length_mm *number
lat *number
lon *number
time *string
time_zone *string
aperture_mm
barlow_factornumber
central_obstruction_pctnumber
filter_type
limitinteger
mount_typestring
reducer_factornumber
sensor_height_mm
sensor_pixel_size_um
sensor_width_mm

get_shooting_plan

Generate a single-night astrophotography shooting plan. Use when: optics, place, and night are fixed and you need matched targets in timed slots. Do not use when: you still need to choose a site or compare nights, or only need target ranks. Requires: focal length, observer coordinates, time, and the observing timezone (defaults to UTC); optional sensor, optical, and minimum-altitude settings. Follow-up: get_telescope_targets for target details; plan_stargazing_session to reconsider place, date, equipment preset, or observing constraints. Runs match_telescope_targets then generate_sho…

ParameterTypeDescription
focal_length_mm *number
lat *number
lon *number
time *string
aperture_mm
barlow_factornumber
central_obstruction_pctnumber
filter_type
limitinteger
min_altitudenumber
mount_typestring
reducer_factornumber
sensor_height_mm
sensor_pixel_size_um
sensor_width_mm
time_zonestring

get_weather_by_name

通过地点名称获取综合天气(当前 + 小时预报 + 日预报)。 Use when: you have a place name and need weather facts for that resolved location. Do not use when: you already have exact coordinates or need a complete observing decision. Requires: an unambiguous place name; use full administrative names for Chinese locations. Provider selection can remain at the server's default aggregation policy. Follow-up: get_weather_by_position for precise coordinates; plan_stargazing_session to combine weather with darkness, targets, and alternative observing sites. Geocoding use…

ParameterTypeDescription
place_name *string
providerstring

get_weather_by_position

通过经纬度获取综合天气(当前 + 小时预报 + 日预报)。 Use when: you have precise coordinates and need current and forecast weather facts. Do not use when: you only have a place name or need ranked observing sites or night targets. Requires: latitude and longitude; provider selection can remain at the default policy. Follow-up: get_weather_by_name for place-name input; plan_stargazing_session to compare observing places and nights using weather and other evidence. Weather data is aggregated from multiple providers with graceful fallback. Open-Meteo needs no API key;…

ParameterTypeDescription
lat *number
lon *number
providerstring

get_best_stargazing_plan

Create a composite stargazing plan for a region and time. Use when: an existing bbox-first integration needs ranked regional places for one night. Do not use when: starting a new intent-based integration, providing a place name, comparing several nights, or only requesting weather facts. Requires: south/west/north/east bounds, observation time, and timezone. Returns: data.query, ranked data.candidates with scores, windows, weather and targets, and data.summary; all within the standard response envelope. recommendation_score is a relative ranking, not a probability or go/no-go thre…

ParameterTypeDescription
east *number
north *number
south *number
time *string
time_zone *string
west *number
avoid_popular_spotsboolean
candidate_limitinteger
db_config_pathstring
max_locationsinteger
min_height_diffnumber
network_typestring
observation_stylestring
popularity_radius_kmnumber
prefer_quiet_at_nightboolean
road_radius_kmnumber
target_limitinteger
weather_providerstring

get_multiday_stargazing_plan

Compare one to seven consecutive nights and recommend the best night and place. Use when: an existing bbox-first integration compares one to seven consecutive nights. Do not use when: starting a new intent-based integration, querying nonconsecutive dates, more than seven nights, or checking background task status. Requires: south/west/north/east bounds, local start_date, timezone, and optional night count. Returns: normalized data.query, per-night plans, the best night, and summary; each night uses its own civil-dark window. recommendation_score is a relative ranking, not a probab…

ParameterTypeDescription
east *number
north *number
south *number
start_date *string
time_zone *string
west *number
avoid_popular_spotsboolean
candidate_limitinteger
db_config_pathstring
max_locationsinteger
min_height_diffnumber
network_typestring
nightsinteger
observation_stylestring
popularity_radius_kmnumber
prefer_quiet_at_nightboolean
road_radius_kmnumber
target_limitinteger
weather_providerstring

plan_stargazing_session Plan Stargazing Session

Preferred end-to-end planning entry point for choosing when, where, and what to observe across one to seven nights. Use when: you need a complete observing decision or comparisons of places and nights. Do not use when: you only need raw weather, celestial facts, or task status. Requires: request.location (place name, center/radius, or exact bounds) and start_date; timezone, one-to-seven nights, observing goal, equipment preset/overrides, and supported preference fields have explicit defaults or are optional. A center/radius is a regional search, not a plan locked to the center point. The radi…

ParameterTypeDescription
request *objectUser-intent request for the ``plan_stargazing_session`` entry point.

get_local_datetime_info

Retrieve the current datetime and timezone. Use when: you need the server environment's current time and local timezone. Do not use when: you need time at a remote observing site or already have its timezone. Requires: no inputs; local means the server environment, not the user's observing site. Follow-up: use the observing site's explicit time_zone in celestial and plan_stargazing_session requests; do not infer it from the server timezone. Returns: Dict with keys "data", "_meta". "data" contains "current_time" (ISO string).