Skip to main content
Glama

nasa-mcp

An MCP server (spec 2026-07-28, stateless core) that gives AI agents read-only access to the NASA open data services listed on api.nasa.gov: the Astronomy Picture of the Day, near-Earth asteroids, space weather, Earth and planetary imagery, natural events, exoplanets, space biology, spacecraft positions and NASA technology. 37 tools over 16 services; every result carries units, redacted source URLs and the citation for its service.

Several api.nasa.gov gateway routes are broken, slow or retiring (November 2026), so nasa-mcp calls each service on the host that works. Only NeoWs and InSight use the api.nasa.gov key; the other 14 services need no key.

Service

Tools

Key

Host and notes

APOD

nasa_apod_get

no

science.nasa.gov (the legacy api.nasa.gov APOD retires 2026-12-01)

Asteroids NeoWs

nasa_neo_feed, nasa_neo_lookup, nasa_neo_browse

yes

api.nasa.gov; feed windows at most 7 days

DONKI space weather

nasa_donki_events, nasa_donki_notifications

no

ccmc.gsfc.nasa.gov (the gateway route returns 404)

EPIC Earth images

nasa_epic_images, nasa_epic_available_dates

no

epic.gsfc.nasa.gov; archive image URLs

InSight Mars weather

nasa_insight_weather

yes

api.nasa.gov; frozen archive, sols 675-681 (October 2020)

TechTransfer

nasa_techtransfer_search

no

technology.nasa.gov (the gateway redirects to its docs)

Solar System Treks

nasa_trek_list_layers, nasa_trek_tile_url

no

trek.nasa.gov; Moon, Mars, Vesta WMTS URLs

GIBS Earth imagery

nasa_gibs_list_layers, nasa_gibs_snapshot_url

no

gibs.earthdata.nasa.gov; WMS snapshot URLs built offline

EONET natural events

nasa_eonet_events, nasa_eonet_categories

no

eonet.gsfc.nasa.gov

Image and Video Library

nasa_images_search, nasa_images_asset

no

images-api.nasa.gov

JPL SSD / CNEOS

nasa_ssd_close_approaches, nasa_ssd_fireballs, nasa_ssd_sentry, nasa_ssd_scout, nasa_ssd_nhats, nasa_ssd_sbdb_lookup

no

ssd-api.jpl.nasa.gov

Exoplanet Archive

nasa_exoplanet_search, nasa_exoplanet_query

no

exoplanetarchive.ipac.caltech.edu (TAP/ADQL)

OSDR (GeneLab)

nasa_osdr_search, nasa_osdr_study, nasa_osdr_files

no

osdr.nasa.gov

SSCWeb

nasa_ssc_observatories, nasa_ssc_locations

no

sscweb.gsfc.nasa.gov; at most 2 days per call

TechPort

nasa_techport_projects, nasa_techport_project

no

techport.nasa.gov

TLE API

nasa_tle_search, nasa_tle_get

no

tle.ivanstanojevic.me: third-party, mirrors CelesTrak

Plus nasa_ping and nasa_list_services.

  • Dates are YYYY-MM-DD (UTC); numbers that upstream sends as strings are converted and their units named.

  • Image, video and tile tools return URLs, never bytes.

  • Long lists are paged and trimmed to a 50 KB result budget (200 KB hard cap).

  • Errors are tool results {"error": {code, message, details, hint}}.

Quick start

uv sync --frozen
uv run nasa-mcp --check                                  # offline self-test
claude mcp add nasa -- uv run --directory "$PWD" nasa-mcp
uv run nasa-mcp --transport http                         # Streamable HTTP on 127.0.0.1:8080/mcp
docker compose up --build                                # container, 127.0.0.1:8080 only

Related MCP server: MCP TypeScript NASA Server

The api.nasa.gov key

Get a free key at https://api.nasa.gov/. The server reads it only from the environment variable NASA_MCP_NASA__API_KEY, never from YAML, flags, tool arguments or HTTP headers:

export NASA_MCP_NASA__API_KEY=...   # from your own secret store

Never commit the key (.env files are not loaded, and an api_key in the YAML config is rejected). Without a key the server falls back to DEMO_KEY, documented at 30 requests/hour but observed at 10 per hour followed by a block of about 22 hours; only the NeoWs and InSight tools are affected. Over HTTP the operator's key is used only with NASA_MCP_NASA__ALLOW_KEY_IN_HTTP_MODE=true. The key is sent only to api.nasa.gov and redacted (api_key=***) everywhere else. nasa_ping reports which key is in use and the remaining quota.

Client configuration

Claude Desktop (or any stdio client):

{
  "mcpServers": {
    "nasa": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/nasa-mcp", "nasa-mcp"],
      "env": { "NASA_MCP_NASA__API_KEY": "<your-api-key>" }
    }
  }
}

More clients: docs/getting-started/clients.md.

Documentation

docs/ is an Open Knowledge Format (OKF v0.2) bundle built with Zensical and published at https://idss-mesa.github.io/nasa-mcp/; agents can read docs/llms.txt and docs/llms-full.txt. Start with docs/getting-started/quickstart.md. Design and decision register: DESIGN.md; verified upstream facts: RESEARCH.md.

Development

uv sync --extra dev
uv run ruff check src tests scripts && uv run ruff format --check src tests scripts
uv run mypy --strict src
uv run pytest                                    # hermetic (recorded fixtures, no network)
uv run pytest -m network tests/live              # live; NeoWs/InSight tests also carry -m apikey
uv run python scripts/record_fixtures.py check   # fixture sizes, hosts, no secrets
uv run python scripts/record_fixtures.py record  # re-record (uses NASA_MCP_NASA__API_KEY or DEMO_KEY)

Docs: uv sync --extra docs, then scripts/gen_tools_reference.py, scripts/gen_config_reference.py, scripts/gen_llms_txt.py, scripts/okf_validate.py docs and zensical build --strict (see AGENTS.md).

Status

Version 0.1.0, published at https://github.com/idss-mesa/nasa-mcp. Every tool, including the api.nasa.gov ones, has been verified live and has recorded test fixtures.

Licence

Code: MIT (see LICENSE; NOTICE credits code adapted from idss-mesa/neon-mcp via weather-station-mcp). Docs: CC BY 4.0. Data returned by the server are not covered by the MIT licence: NASA material is generally not copyrighted, but credit NASA and do not imply endorsement; APOD images are often copyrighted by their authors; the Exoplanet Archive and GIBS ask for acknowledgements; TLE data come from a third-party service mirroring CelesTrak. Every result's source.citation gives the credit line.

Available Tools

37 tools
nasa_apod_getAstronomy Picture of the DayA
Read-onlyIdempotent

NASA's Astronomy Picture of the Day (since 1995-06-16): title, date, image or video URL, article link, credit and the astronomer's explanation. One day (date), a date range (25 per page, newest first) or, by default, the latest picture. Next: show image_url and credit the author named in credit.

Inputs: date, page, end_date, start_date, +1 more. Returns: page, notes, source, pictures, +2 more

nasa_donki_eventsDONKI space-weather eventsA
Read-onlyIdempotent

Space-weather events from NASA's DONKI database for a date window (default the last 30 days): solar flares (class, peak time), CMEs (speed, half-angle, Earth-directed flag), geomagnetic storms (Kp), interplanetary shocks, SEP, magnetopause crossings, radiation belt enhancements, high-speed streams and WSA-ENLIL runs, with links. Next: call nasa_donki_notifications for forecaster reports.

Inputs: event_type (required), limit, end_date, start_date, +1 more. Returns: page, notes, title, events, +5 more

nasa_donki_notificationsDONKI forecaster notificationsA
Read-onlyIdempotent

Space-weather notifications issued by the Moon to Mars Space Weather Analysis Office (via DONKI): flare, CME, SEP, shock, storm and weekly report messages with issue time, a short summary and the message URL. Default: the last 7 days; window at most 30 days. Next: call nasa_donki_events for the structured event records.

Inputs: days, type, limit, end_date, +2 more. Returns: page, notes, source, window, +3 more

nasa_eonet_categoriesEONET event categoriesA
Read-onlyIdempotent

List EONET natural-event categories (id, title, description), the values nasa_eonet_events accepts for category. Next: call nasa_eonet_events(category=...).

Inputs: no named parameters. Returns: notes, source, resolved, nextSteps, +1 more

nasa_eonet_eventsEONET natural eventsA
Read-onlyIdempotent

Curated natural events from NASA EONET: wildfires, severe storms, volcanoes, sea and lake ice, floods, dust and haze and more, with dates, sources and GeoJSON geometry. Filter by category, open/closed status, the last N days, a date range or a bounding box. Next: call nasa_gibs_snapshot_url to see an event on satellite imagery.

Inputs: bbox, days, limit, source, +5 more. Returns: page, notes, events, source, +2 more

nasa_epic_available_datesDays with EPIC imageryA
Read-onlyIdempotent

List the days that have EPIC imagery in one collection (natural from June 2015), optionally for one year (default the latest 100 days), with the first and last day. Gaps are days DSCOVR did not image. Next: call nasa_epic_images(date=...).

Inputs: year, collection. Returns: last, count, dates, first, +5 more

nasa_epic_imagesEPIC full-disc Earth imagesA
Read-onlyIdempotent

Full-disc images of Earth's sunlit side from the EPIC camera on DSCOVR at the Sun-Earth L1 point, for one day (default the latest): acquisition time, centre latitude and longitude, DSCOVR distance and PNG, JPG and thumbnail archive URLs. Collections: natural, enhanced, aerosol, cloud. Next: call nasa_epic_available_dates.

Inputs: date, limit, collection. Returns: date, page, notes, images, +4 more

nasa_exoplanet_queryRun an ADQL query on the Exoplanet ArchiveA
Read-onlyIdempotent

Run one read-only ADQL SELECT on the NASA Exoplanet Archive TAP service (tables ps, pscomppars, stellarhosts, toi, k2pandc and more). The server caps the row count and returns rows as JSON objects keyed by column name. Next: cite the archive with source.citation.

Inputs: adql (required). Returns: adql, rows, notes, rowCap, +3 more

nasa_gibs_list_layersGIBS imagery layersA
Read-onlyIdempotent

Search NASA GIBS Earth imagery layers (MODIS, VIIRS, Landsat/HLS, AIRS, sea ice, aerosol, fires...) by words in the id or title, in one projection: id, title, formats, resolution, default date, available date ranges and the WMTS tile URL template. Next: call nasa_gibs_snapshot_url(layer=..., date=..., bbox=...).

Inputs: limit, offset, search, projection. Returns: page, notes, layers, source, +3 more

nasa_gibs_snapshot_urlGIBS snapshot image URLA
Read-onlyIdempotent

Build a ready-to-open WMS GetMap URL for one GIBS layer, date and bounding box (one JPEG or PNG image, EPSG:4326), plus an interactive NASA Worldview link. No network call: the URL is constructed offline and the image is fetched by the user's client. Next: open the URL; check the date with nasa_gibs_list_layers.

Inputs: bbox (required), layer (required), date, width, +2 more. Returns: date, layer, notes, width, +6 more

nasa_images_assetNASA Image Library asset filesA
Read-onlyIdempotent

List every file of one Image and Video Library item (original, large, medium, small and thumbnail renditions, video encodings, captions) as URLs, optionally with its AVAIL:* catalog metadata. Next: give the user the orig or large URL; credit NASA.

Inputs: nasa_id (required), include_metadata. Returns: files, notes, nasaId, source, +3 more

nasa_insight_weatherInSight Mars weather (archived)A
Read-onlyIdempotent

Per-sol Mars weather from the InSight lander at Elysium Planitia: air temperature (degC), wind speed (m/s), pressure (Pa) and prevailing wind direction, with UTC spans and season. The mission ended in 2022, so this is a frozen archive of the last published sols, not current weather. Next: credit NASA/JPL-Caltech.

Inputs: no named parameters. Returns: sols, notes, frozen, source, +2 more

nasa_list_servicesList NASA services and toolsA
Read-onlyIdempotent

List every NASA service nasa-mcp reaches (APOD, NeoWs, DONKI, EPIC, InSight, TechTransfer, Trek, GIBS, EONET, Image Library, JPL SSD, Exoplanet Archive, OSDR, SSCWeb, TechPort, TLE) with its hosts, whether it uses the api.nasa.gov key, docs URL, citation, caveats and tool names. No network call. Next: call one of the listed tools.

Inputs: service. Returns: notes, source, resolved, services, +1 more

nasa_neo_browseBrowse the NeoWs asteroid catalogA
Read-onlyIdempotent

Page through the whole NeoWs near-Earth object catalog (about 40,000 objects, 20 per page): name, SPK-ID, size range and hazard and Sentry flags, without approach lists. Next: call nasa_neo_lookup(asteroid_id=...) for one object.

Inputs: page, size. Returns: page, notes, source, objects, +2 more

nasa_neo_feedNear-Earth objects passing Earth (NeoWs feed)A
Read-onlyIdempotent

Near-Earth asteroids making close approaches to Earth in a window of up to 7 days (default: today + 6 days), from NASA NeoWs: name, SPK-ID, size range, hazard and Sentry flags, approach time, miss distance (km, lunar, au) and relative velocity. Sort by date, miss distance or size. Next: call nasa_neo_lookup(asteroid_id=...).

Inputs: sort, limit, end_date, start_date, +1 more. Returns: page, notes, source, window, +4 more

nasa_neo_lookupOne near-Earth object (NeoWs lookup)A
Read-onlyIdempotent

Look up one near-Earth object by JPL SPK-ID in NASA NeoWs: size range, hazard and Sentry flags, orbital elements and orbit class, and its close approaches to Earth and other bodies within a date range (default +/- 10 years). Next: call nasa_ssd_sbdb_lookup for full JPL orbit data.

Inputs: asteroid_id (required), approaches_to, max_approaches, approaches_from. Returns: notes, orbit, object, source, +3 more

nasa_osdr_filesOSDR study data filesA
Read-onlyIdempotent

List the data files of one OSDR study (metadata archives, raw and processed GeneLab data) with category, size and a download URL, optionally filtered by category. Next: give the user the URLs; large files should be fetched outside the chat.

Inputs: accession (required), limit, category. Returns: files, notes, source, resolved, +3 more

nasa_osdr_studyOne OSDR studyA
Read-onlyIdempotent

ISA-Tab metadata of one OSDR study: title, description, release date, experimental factors, assays, organisms, investigators and publications (title, DOI, PubMed). Next: call nasa_osdr_files(accession=...) for downloadable data files.

Inputs: accession (required). Returns: url, notes, title, assays, +10 more

nasa_pingPing nasa-mcpA
Read-onlyIdempotent

Report the nasa-mcp version, MCP protocol version, transport, whether a personal api.nasa.gov key or DEMO_KEY is in use (never the key itself) and the remaining hourly quota. With check_upstream=true it makes one tiny live request per service and reports latency. Next: call nasa_list_services to see every service and its tools.

Inputs: check_upstream. Returns: notes, apiKey, server, source, +4 more

nasa_ssc_locationsSpacecraft locations (SSCWeb)A
Read-onlyIdempotent

Positions of up to 5 spacecraft over a time range (at most 2 days) from NASA's Satellite Situation Center, in GEO, GM, GSE, GSM, SM or GEI coordinates: X/Y/Z (km), latitude, longitude and radial distance, thinned to max_points. Next: compare with nasa_tle_get for Earth-orbiting satellites.

Inputs: end (required), start (required), observatories (required), max_points, +1 more. Returns: notes, source, resolved, locations, +1 more

nasa_ssc_observatoriesSSCWeb observatories (spacecraft)A
Read-onlyIdempotent

List spacecraft (observatories) whose positions NASA's Satellite Situation Center can compute: id, name, ephemeris resolution and the time span covered. Filter by text or by a day with data. Next: call nasa_ssc_locations(observatories=[id], ...).

Inputs: search, active_on. Returns: notes, source, resolved, nextSteps, +1 more

nasa_ssd_close_approachesJPL close approaches (CNEOS CAD)A
Read-onlyIdempotent

Asteroid and comet close approaches to Earth (or another body) from JPL's CNEOS close-approach data: designation, time, nominal distance in au, lunar distances and km, relative velocity and absolute magnitude. Defaults: the next 60 days within 0.05 au of Earth. Next: call nasa_ssd_sbdb_lookup or nasa_ssd_sentry for one object.

Inputs: body, sort, limit, date_max, +4 more. Returns: body, page, notes, source, +4 more

nasa_ssd_fireballsFireballs (bolides) reported by US government sensorsA
Read-onlyIdempotent

Fireball (bolide) events detected by US government sensors, from JPL CNEOS: peak time, radiated energy (J), estimated impact energy (kt), location, altitude and velocity. Newest first; filter by date range, minimum energy or events with a location. Next: map the events or compare energies.

Inputs: limit, date_max, date_min, energy_min_kt, +1 more. Returns: page, notes, source, resolved, +2 more

nasa_ssd_nhatsNHATS human-accessible asteroidsA
Read-onlyIdempotent

JPL NHATS (Near-Earth Object Human Space Flight Accessible Targets Study): asteroids reachable by round-trip missions within a delta-v and duration budget, with minimum delta-v and shortest trajectories, size and orbit-condition code. Next: call nasa_ssd_sbdb_lookup for one target.

Inputs: limit, designation, max_dv_km_s, max_duration_days. Returns: mode, page, notes, source, +3 more

nasa_ssd_sbdb_lookupJPL Small-Body Database lookupA
Read-onlyIdempotent

Look up one asteroid or comet in the JPL Small-Body Database: full name, SPK-ID, orbit class, NEO/PHA flags, osculating orbital elements with units, MOID and (optionally) physical parameters and Earth close approaches. Ambiguous names return the candidate list. Next: call nasa_ssd_close_approaches(designation=...).

Inputs: designation (required), physical, close_approaches. Returns: neo, pha, kind, notes, +12 more

nasa_ssd_scoutScout: unconfirmed NEO candidatesA
Read-onlyIdempotent

JPL Scout hazard assessment of unconfirmed objects on the Minor Planet Center's NEO Confirmation Page: NEO/PHA/impact scores, magnitude, arc, MOID and sky position. Candidates change hourly and disappear once designated. Next: call nasa_ssd_scout(object_name=...) for one object.

Inputs: limit, object_name. Returns: mode, page, notes, source, +3 more

nasa_ssd_sentrySentry impact-risk monitoringA
Read-onlyIdempotent

JPL Sentry impact-risk data. Without a designation: objects on the current risk table with cumulative impact probability, Palermo and Torino scales and diameter. With one: its virtual impactors (date, probability, energy) or the date it was removed from the table. Next: call nasa_ssd_sbdb_lookup for the object's orbit.

Inputs: h_max, limit, ip_min, ps_min, +1 more. Returns: mode, page, notes, source, +5 more

nasa_techport_projectOne TechPort projectA
Read-onlyIdempotent

Details of one NASA TechPort technology project: title, status, dates, program, lead organization, technology readiness levels (begin, current, end), primary taxonomy, plain-text description and benefits, and its TechPort page. Next: call nasa_techtransfer_search for related patents and software.

Inputs: project_id (required). Returns: trl, url, notes, title, +13 more

nasa_techport_projectsTechPort projects updated since a dateA
Read-onlyIdempotent

List NASA TechPort technology project ids updated on or after a date (default the last 7 days), newest first, with their last-updated dates. TechPort's API lists ids only. Next: call nasa_techport_project(project_id=...) for details.

Inputs: limit, offset, updated_since. Returns: page, notes, source, projects, +3 more

nasa_tle_getTwo-line element set for one satelliteA
Read-onlyIdempotent

The current two-line element set (TLE) of one satellite by NORAD catalog number (e.g. 25544 for the ISS), with its epoch, from the third-party TLE API. Next: propagate it with an SGP4 library; TLEs age quickly (days).

Inputs: satellite_id (required). Returns: tle, notes, source, resolved, +1 more

nasa_trek_list_layersSolar System Trek map layersA
Read-onlyIdempotent

Search equirectangular map mosaics of the Moon, Mars or Vesta from NASA's Solar System Treks (LRO, Kaguya, MRO HiRISE/CTX, Viking, Dawn...): layer uuid, title, mission, instrument, bounding box and resolution. Next: call nasa_trek_tile_url(body=..., uuid=...) for its WMTS tile URLs.

Inputs: body (required), limit, offset, search. Returns: body, page, notes, layers, +3 more

nasa_trek_tile_urlTrek layer WMTS tile URLsA
Read-onlyIdempotent

Resolve one Solar System Treks layer to its WMTS endpoint, capabilities URL, tile URL template, tile matrix set and a level-0 sample tile, ready for a web map (Leaflet, OpenLayers, QGIS). Level 0 is 2 columns by 1 row. Next: open sample_tile_url or load capabilities_url in a GIS.

Inputs: body (required), uuid (required). Returns: body, uuid, notes, source, +9 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 37 tools

    Disambiguation4/5

    Each tool is scoped to one NASA service and one action, and the embedded "Next: call ..." pointers make the intended chaining explicit (e.g. search → asset, sentry → sbdb_lookup). A few boundaries are genuinely fuzzy: nasa_neo_feed vs nasa_ssd_close_approaches both return close approaches, and nasa_neo_lookup vs nasa_ssd_sbdb_lookup both look up a single object by ID/designation, so an agent could reasonably pick the wrong one. Descriptions mitigate this but don't fully dissolve the overlap.

    Naming Consistency4/5

    Names follow a reliable `nasa_<service>_<action>` snake_case namespace (nasa_osdr_search, nasa_gibs_list_layers, nasa_techport_project), which makes service grouping obvious. The only deviation is that roughly a third of tools are noun-only with no verb (nasa_donki_events, nasa_eonet_categories, nasa_epic_images, nasa_ssd_sentry, nasa_ssd_fireballs, nasa_ssd_nhats, nasa_insight_weather), so verb_noun predictability is not uniform.

    Tool Count3/5

    37 tools is a heavy surface for an agent to select from, and it sits above the comfortable 3-15 band. It is defensible because the server federates ~16 genuinely distinct NASA services, and most tools earn their place, but a few thin wrappers (nasa_ping, nasa_epic_available_dates, nasa_eonet_categories, nasa_gibs_snapshot_url) add selection load without adding much capability.

    Completeness4/5

    Lifecycle coverage per service is largely complete for read-only science data: discovery → detail → derivative URL across images, EPIC, GIBS, NEO, SSD, OSDR, TechPort, TLE and Trek, plus meta tools for quotas and service inventory. Remaining gaps are modest — no pagination on several search tools, no way to search TechPort by keyword (date-window only), and nasa_neo_feed hard-capped at 7 days — all workable around with other tools.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides standardized access to 20+ NASA data sources including astronomy pictures, Mars rover photos, near-Earth objects, satellite imagery, space weather, and planetary data through a unified interface optimized for AI consumption.
      23
      12 npm
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides access to NASA's public APIs including Astronomy Picture of the Day, Mars Rover Images, and Near Earth Objects data, enabling users to query and retrieve space-related information through natural language.
      5
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Provides compact, assistant-friendly tools for NASA's public APIs, including APOD, space weather, Earth events, and media library, without flooding the context window.
      9
      -