NASA (Unofficial)

v0.2.2
io.github.pipeworx-io/nasa Checked 1 day ago Published 16 days ago

Unofficial NASA MCP — wraps NASA Open APIs (api.nasa.gov)

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

nasa_get_apod

Get the NASA Astronomy Picture of the Day with explanation. Optionally specify a date. Example: get_apod({ date: "2024-01-15", _apiKey: "DEMO_KEY" })

ParameterTypeDescription
_apiKeystringNASA API key (optional, defaults to DEMO_KEY — get a free key at api.nasa.gov)
datestringDate in YYYY-MM-DD format (optional, defaults to today). Range: 1995-06-16 to today.

get_asteroids

Get near-Earth asteroids approaching within a date range (max 7 days). Returns size, velocity, and miss distance. Example: get_asteroids({ start_date: "2024-01-01", end_date: "2024-01-07", _apiKey: "DEMO_KEY" })

ParameterTypeDescription
end_date *stringEnd date in YYYY-MM-DD format (max 7 days after start)
start_date *stringStart date in YYYY-MM-DD format
_apiKeystringNASA API key (optional, defaults to DEMO_KEY)

get_mars_photos

"Show me photos from the Mars rover" / "Perseverance images from sol 1000" / "latest pictures from Mars" — raw images from NASA's Perseverance rover (Mars 2020), straight off the mars.nasa.gov feed. Filter by Martian sol and by camera. Returns image URLs at four resolutions, the sol, the UTC and Mars-local capture times, and the camera instrument. Keyless. Covers Perseverance only — Curiosity, Opportunity and Spirit have no live public image feed. Example: get_mars_photos({ sol: 1000, camera: "NAVCAM_LEFT" })

ParameterTypeDescription
camerastringCamera instrument, exact: "NAVCAM_LEFT", "NAVCAM_RIGHT", "FRONT_HAZCAM_LEFT_A", "FRONT_HAZCAM_RIGHT_A", "REAR_HAZCAM_LEFT", "REAR_HAZCAM_RIGHT", "MCZ_LEFT"/"MCZ_RIGHT" (Mastcam-Z), "SHERLOC_WATSON", "…
limitnumberMax images to return (default 20, max 100).
solnumberMartian sol (mission day) to retrieve images from, e.g. 1000. Perseverance landed on sol 0 (2021-02-18) and is past sol 1900. Omit for the most recent images.

search_nasa_images

Search the NASA Image and Video Library for images/videos of any subject — planets, missions, astronauts, launches, galaxies, etc. PREFER for "NASA photos of Jupiter", "images of the Apollo 11 mission", "pictures of a nebula". Returns title, description, date, NASA ID, media type, and a thumbnail URL. Keyless.

ParameterTypeDescription
query *stringSearch terms, e.g. "jupiter", "apollo 11", "crab nebula".
limitnumberMax results to return (default 10, max 50).
media_typestringOptional filter: "image", "video", or "audio".

get_solar_flares

Get recent solar flare events from NASA DONKI space-weather data. Returns each flare's class (e.g. C4.0, M1.8, X1.2), begin/peak/end times, source region, and active region number. Use for "recent solar flares", "is there solar activity / a solar storm", space-weather questions.

ParameterTypeDescription
_apiKeystringNASA API key (optional, defaults to DEMO_KEY)
end_datestringEnd date YYYY-MM-DD (optional; default today).
start_datestringStart date YYYY-MM-DD (optional; default ~30 days ago).

donki_cme

"Was there a coronal mass ejection this week?" / "is a CME heading for Earth?" — coronal mass ejections catalogued by NASA DONKI, the space-weather event database run by NASA's Community Coordinated Modeling Center. AUTHORITATIVE for CME occurrence and geometry: returns each eruption's start time, the instruments that saw it, the analysts' note describing the source region, and for analysed events the modelled speed in km/s, the direction (latitude/longitude on the solar disk), half-angle width and whether the analysis is the most accurate available. A CME is the thing that causes an aurora…

ParameterTypeDescription
_apiKeystringNASA API key (optional, defaults to DEMO_KEY)
end_datestringEnd date YYYY-MM-DD (optional; defaults to today).
limitnumberMax events to return (default 50, max 200).
min_speed_km_snumberOnly return CMEs whose best analysis measured at least this speed in km/s. ~500 is fast, ~1000+ is a major event.
start_datestringStart date YYYY-MM-DD (optional; DONKI defaults to ~30 days ago).

donki_geomagnetic_storms

"Was there a geomagnetic storm?" / "will there be an aurora tonight?" / "how strong was the Kp index?" — geomagnetic storm events from NASA DONKI, each with the full series of observed Kp index readings and their timestamps. AUTHORITATIVE for whether Earth's magnetic field was actually disturbed, as opposed to whether a flare happened: Kp 5 is a minor storm, Kp 7 puts aurora over the northern US and northern Europe, Kp 8-9 is severe. Also returns the CMEs and shocks DONKI linked to each storm, so you can trace a storm back to the eruption that caused it.

ParameterTypeDescription
_apiKeystringNASA API key (optional, defaults to DEMO_KEY)
end_datestringEnd date YYYY-MM-DD (optional; defaults to today).
limitnumberMax storms to return (default 50, max 200).
min_kpnumberOnly return storms whose peak observed Kp reached at least this value (5 = minor storm, 7 = strong, 9 = extreme).
start_datestringStart date YYYY-MM-DD (optional; DONKI defaults to ~30 days ago).

donki_solar_energetic_particles

Solar energetic particle (SEP) events from NASA DONKI — bursts of high-energy protons arriving at Earth after a flare or CME. These are the events behind radiation warnings for polar airline routes, astronaut EVA holds and satellite single-event upsets. Returns the event time, the detecting instruments and energy channels (e.g. "GOES-P: SEISS >10 MeV"), and the flare or CME DONKI linked as the source.

ParameterTypeDescription
_apiKeystringNASA API key (optional, defaults to DEMO_KEY)
end_datestringEnd date YYYY-MM-DD (optional; defaults to today).
limitnumberMax events to return (default 50, max 200).
start_datestringStart date YYYY-MM-DD (optional; DONKI defaults to ~30 days ago). SEP events are rare — a year-wide window is often the right query.

donki_notifications

"What is the current space weather forecast?" — the alerts, watches, warnings and weekly summary reports NASA DONKI issues to spacecraft operators. This is the narrative layer over the event catalogues: a human forecaster's text saying what happened, what is expected and what the impact is. Filter by message type (alert, watch, warning, summary) or by event class (CME, flare, geomagnetic storm, SEP, radiation belt enhancement).

ParameterTypeDescription
_apiKeystringNASA API key (optional, defaults to DEMO_KEY)
end_datestringEnd date YYYY-MM-DD (optional; defaults to today).
include_bodybooleanInclude the full message text (default true). Set false for a compact index — these bodies are long.
limitnumberMax messages to return (default 20, max 100).
message_typestringFilter the returned rows by the DONKI messageType field: "Alert", "Watch", "Warning" or "Report". Applied after fetching.
start_datestringStart date YYYY-MM-DD (optional; DONKI defaults to ~30 days ago).
typestringMessage class: "all" (default), "FLR" (flare), "SEP", "CME", "IPS" (interplanetary shock), "MPC" (magnetopause crossing), "GST" (geomagnetic storm), "RBE" (radiation belt enhancement), "report" (weekl…