Skip to content

nasa-mcp

nasa-mcp is a Model Context Protocol server 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. Every result says where it came from, in what units, and how to credit it.

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

Service Tools Key
APOD nasa_apod_get no
Asteroids NeoWs nasa_neo_feed, nasa_neo_lookup, nasa_neo_browse yes
DONKI space weather nasa_donki_events, nasa_donki_notifications no
EPIC Earth images nasa_epic_images, nasa_epic_available_dates no
InSight Mars weather (frozen archive) nasa_insight_weather yes
TechTransfer nasa_techtransfer_search no
Solar System Treks nasa_trek_list_layers, nasa_trek_tile_url no
GIBS nasa_gibs_list_layers, nasa_gibs_snapshot_url no
EONET nasa_eonet_events, nasa_eonet_categories no
Image and Video Library nasa_images_search, nasa_images_asset no
JPL SSD / CNEOS nasa_ssd_close_approaches, nasa_ssd_fireballs, nasa_ssd_sentry, nasa_ssd_scout, nasa_ssd_nhats, nasa_ssd_sbdb_lookup no
Exoplanet Archive nasa_exoplanet_search, nasa_exoplanet_query no
OSDR nasa_osdr_search, nasa_osdr_study, nasa_osdr_files no
SSCWeb nasa_ssc_observatories, nasa_ssc_locations no
TechPort nasa_techport_projects, nasa_techport_project no
TLE API (third-party) nasa_tle_search, nasa_tle_get no

Image, video and tile tools return URLs, never bytes. Results are trimmed to a 50 KB budget and paged.

Install

git clone https://github.com/idss-mesa/nasa-mcp.git ~/nasa-mcp && cd ~/nasa-mcp
git checkout v0.1.0
uv sync --frozen --python 3.12 --managed-python
uv run nasa-mcp --check

Then get your own free api.nasa.gov key (needed only by NeoWs and InSight), connect your client and ask your agent to call nasa_ping. The full, reproducible walkthrough for a new machine is Install nasa-mcp on a new machine.

Documentation

This site is an Open Knowledge Format (OKF) v0.2 bundle: every page carries YAML frontmatter with type, provenance and lifecycle fields, and the whole corpus is available to agents at llms.txt and llms-full.txt.

  • Getting started - Install, connect an MCP client, configure, and set the api.nasa.gov key.
  • Tools - The 37 nasa_ tools, their conventions, resources and prompts.
  • Services - One page per NASA service: endpoint, key use, tools, quirks and citation.
  • MCP protocol - MCP 2026-07-28 conformance and the two transports.
  • Deploy - Hosted HTTP deployment and security.
  • Develop - Architecture, adding a service, testing and contributing.
  • About - Guidance for AI agents, citing NASA data, licence.