The NASA connector lets your AI agent act in each user's NASA account. Each user connects their own NASA API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 18 tools.
- Tools
- 18
- What they doRead · write · destructive
- 18 · 0 · 018 read0 write0 destructive
- Users sign in with
- API key
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the NASA connection
In AgentKit > Connections, create a NASA connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'nasa'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize NASA:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'nasa_apod_get',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "nasa"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize NASA:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="nasa_apod_get",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their NASA credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolnasa_apod_getGet NASA's Astronomy Picture of the Day for a date, a date range or a random selection.Read-onlyGet Astronomy Picture of the Day
Get NASA's Astronomy Picture of the Day for a date, a date range or a random selection. Returns the APOD (or an array) with date, title, explanation, media_type, url, hdurl, credit and copyright. Use nasa_apod_get for the daily astronomy image and its explanation. Set only one of date, start_date/end_date or count.
Inputs
countinteger- Return this many randomly chosen APODs, up to 25. Do not combine with date or a range. Example: 5.
datestring- Date of the APOD to get (YYYY-MM-DD). Defaults to today. Do not combine with start_date or count. Example: 2026-09-11.
end_datestring- End of the date range (YYYY-MM-DD), used with start_date. Defaults to today. Example: 2026-09-07.
start_datestring- Start of a date range (YYYY-MM-DD). Do not combine with date or count. Example: 2026-09-01.
nasa_donki_cme_analysis_listList coronal mass ejection analyses from NASA's DONKI space weather database for a date range.Read-onlyList CME Analyses
List coronal mass ejection analyses from NASA's DONKI space weather database for a date range. Returns an array of CME analyses with time21_5, latitude, longitude, halfAngle, speed, type and catalog. Use nasa_donki_cme_analysis_list for coronal mass ejection analyses history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
catalogstring- Catalog to search. Defaults to ALL. Example: ALL.one of
ALLSWRC_CATALOGJANG_ET_AL_CATALOG complete_entry_onlyboolean- Only complete entries. Defaults to true. Example: true.
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
half_angleinteger- Minimum half angle in degrees. Defaults to 0. Example: 30.
keywordstring- Keyword to filter by, for example swpc_annex. Defaults to none. Example: swpc_annex.
most_accurate_onlyboolean- Only the most accurate analysis of each CME. Defaults to true. Example: true.
speedinteger- Minimum CME speed in km/s. Defaults to 0. Example: 500.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_cme_listList coronal mass ejections (CMEs) from NASA's DONKI space weather database for a date range.Read-onlyList Coronal Mass Ejections
List coronal mass ejections (CMEs) from NASA's DONKI space weather database for a date range. Returns an array of CMEs with activityID, startTime, sourceLocation, instruments, cmeAnalyses and linkedEvents. Use nasa_donki_cme_list for coronal mass ejections (CMEs) history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_flr_listList solar flares from NASA's DONKI space weather database for a date range.Read-onlyList Solar Flares
List solar flares from NASA's DONKI space weather database for a date range. Returns an array of flares with flrID, beginTime, peakTime, endTime, classType (for example X1.2), sourceLocation and activeRegionNum. Use nasa_donki_flr_list for solar flares history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_gst_listList geomagnetic storms from NASA's DONKI space weather database for a date range.Read-onlyList Geomagnetic Storms
List geomagnetic storms from NASA's DONKI space weather database for a date range. Returns an array of storms with gstID, startTime, allKpIndex (Kp values and sources) and linkedEvents. Use nasa_donki_gst_list for geomagnetic storms history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_hss_listList high speed solar wind streams from NASA's DONKI space weather database for a date range.Read-onlyList High Speed Streams
List high speed solar wind streams from NASA's DONKI space weather database for a date range. Returns an array of streams with hssID, eventTime, instruments and linkedEvents. Use nasa_donki_hss_list for high speed solar wind streams history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_ips_listList interplanetary shocks from NASA's DONKI space weather database for a date range.Read-onlyList Interplanetary Shocks
List interplanetary shocks from NASA's DONKI space weather database for a date range. Returns an array of shocks with activityID, catalog, location, eventTime, instruments and linkedEvents. Use nasa_donki_ips_list for interplanetary shocks history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
catalogstring- Catalog to search. Defaults to all. Example: SWRC_CATALOG.one of
SWRC_CATALOGWINSLOW_MESSENGER_ICME_CATALOG end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
locationstring- Where the shock was observed. Defaults to all locations. Example: Earth.one of
EarthMESSENGERSTEREO ASTEREO B start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_mpc_listList magnetopause crossings from NASA's DONKI space weather database for a date range.Read-onlyList Magnetopause Crossings
List magnetopause crossings from NASA's DONKI space weather database for a date range. Returns an array of crossings with mpcID, eventTime, instruments and linkedEvents. Use nasa_donki_mpc_list for magnetopause crossings history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_notifications_listList space weather notifications and reports issued by NASA's Space Weather Research Center, for a range of up to 30 days.Read-onlyList Space Weather Notifications
List space weather notifications and reports issued by NASA's Space Weather Research Center, for a range of up to 30 days. Returns an array of notifications with messageType, messageID, messageURL, messageIssueTime and messageBody. Use nasa_donki_notifications_list for forecaster alerts; use the other nasa_donki_*_list tools for event data.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 7 days before today. Example: 2026-10-01.
typestring- Notification type. Defaults to all. Example: all.one of
allFLRSEPCMEIPSMPCGSTRBEreport
nasa_donki_rbe_listList radiation belt enhancements from NASA's DONKI space weather database for a date range.Read-onlyList Radiation Belt Enhancements
List radiation belt enhancements from NASA's DONKI space weather database for a date range. Returns an array of enhancements with rbeID, eventTime, instruments and linkedEvents. Use nasa_donki_rbe_list for radiation belt enhancements history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_sep_listList solar energetic particle (SEP) events from NASA's DONKI space weather database for a date range.Read-onlyList Solar Energetic Particle Events
List solar energetic particle (SEP) events from NASA's DONKI space weather database for a date range. Returns an array of SEP events with sepID, eventTime, instruments and linkedEvents. Use nasa_donki_sep_list for solar energetic particle (SEP) events history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 30 days before today. Example: 2026-10-01.
nasa_donki_wsa_enlil_simulations_listList WSA-Enlil solar wind model simulations from NASA's DONKI space weather database for a date range.Read-onlyList WSA-Enlil Simulations
List WSA-Enlil solar wind model simulations from NASA's DONKI space weather database for a date range. Returns an array of simulations with simulationID, modelCompletionTime, cmeInputs, estimatedShockArrivalTime and impactList. Use nasa_donki_wsa_enlil_simulations_list for WSA-Enlil solar wind model simulations history; use nasa_donki_notifications_list for forecaster alerts across all event types.
Inputs
end_datestring- End date (YYYY-MM-DD, UTC). Defaults to today. Example: 2026-10-31.
start_datestring- Start date (YYYY-MM-DD, UTC). Defaults to 7 days before today. Example: 2026-10-01.
nasa_epic_dates_listList every date with EPIC images in a collection.Read-onlyList EPIC Image Dates
List every date with EPIC images in a collection. Returns an array of {date}. Use nasa_epic_dates_list before nasa_epic_images_by_date_get.
Inputs
collectionstringrequired- EPIC image collection: natural (true color), enhanced (color-corrected), aerosol or cloud. Example: natural.one of
naturalenhancedaerosolcloud
nasa_epic_images_by_date_getGet metadata for the full-disc Earth images taken by the DSCOVR EPIC camera on a date.Read-onlyGet EPIC Images by Date
Get metadata for the full-disc Earth images taken by the DSCOVR EPIC camera on a date. Returns an array of images with identifier, image name, caption, date and centroid_coordinates. Use nasa_epic_images_by_date_get for a past date; check available dates with nasa_epic_dates_list.
Inputs
collectionstringrequired- EPIC image collection: natural (true color), enhanced (color-corrected), aerosol or cloud. Example: natural.one of
naturalenhancedaerosolcloud datestringrequired- Date of the images (YYYY-MM-DD). Example: 2026-10-30.
nasa_epic_images_latest_getGet metadata for the most recent day of full-disc Earth images from the DSCOVR EPIC camera.Read-onlyGet Latest EPIC Images
Get metadata for the most recent day of full-disc Earth images from the DSCOVR EPIC camera. Returns an array of images with identifier, image name, caption, date, centroid_coordinates and spacecraft, moon and sun positions. Use nasa_epic_images_latest_get for today's Earth images. Build the image URL from the date and image name as https://api.nasa.gov/EPIC/archive/<collection>/<YYYY>/<MM>/<DD>/png/<image>.png.
Inputs
collectionstringrequired- EPIC image collection: natural (true color), enhanced (color-corrected), aerosol or cloud. Example: natural.one of
naturalenhancedaerosolcloud
nasa_neo_browse_listPage through the full near-Earth object dataset.Read-onlyBrowse Near-Earth Objects
Page through the full near-Earth object dataset. Returns page info and near_earth_objects with id, name, diameter, hazard flag and orbital data. Use nasa_neo_browse_list to scan the catalogue. Use nasa_neo_feed_get for upcoming approaches.
Inputs
pageinteger- Page number, starting at 0. Example: 0.
sizeinteger- Objects per page, up to 20. Example: 20.
nasa_neo_feed_getList near-Earth asteroids by their closest approach date to Earth, for a range of up to 7 days.Read-onlyGet Near-Earth Object Feed
List near-Earth asteroids by their closest approach date to Earth, for a range of up to 7 days. Returns element_count and near_earth_objects keyed by date, each with id, name, estimated diameter, is_potentially_hazardous_asteroid and close_approach_data. Use nasa_neo_feed_get for asteroids passing Earth in a week. Use nasa_neo_lookup_get for one asteroid.
Inputs
start_datestringrequired- First date of the range (YYYY-MM-DD). Example: 2026-11-16.
end_datestring- Last date of the range (YYYY-MM-DD), at most 7 days after start_date. Defaults to 7 days after start_date. Example: 2026-11-20.
nasa_neo_lookup_getGet one asteroid by its NASA JPL small-body ID (SPK-ID).Read-onlyLook Up Asteroid
Get one asteroid by its NASA JPL small-body ID (SPK-ID). Returns the asteroid with name, absolute magnitude, estimated diameter, hazard flag, orbital_data and every close approach. Use nasa_neo_lookup_get after nasa_neo_feed_get or nasa_neo_browse_list for details on one asteroid.
Inputs
asteroid_idstringrequired- NASA JPL small-body SPK-ID of the asteroid. Example: 3542519.
No tools match.