NASA MCP
Integrates with NASA's public APIs to provide tools for astronomy pictures, media search, Earth events, space weather, and EPIC Earth imagery.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NASA MCP show me today's astronomy picture of the day"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NASA MCP
A local stdio MCP server that turns NASA's public APIs into compact, assistant-friendly tools instead of pouring raw telemetry into the context window.
Tools
nasa_daily_brief— APOD, recent space-weather notices, current Earth events, and the latest full-disc Earth image in one fault-tolerant call.nasa_apod— Astronomy Picture of the Day by date or random sample.nasa_search_media— search NASA's image, video, and audio library.nasa_media_asset— retrieve downloadable files for a NASA media ID.nasa_earth_events— current/recent wildfires, storms, volcanoes, icebergs, floods, and other EONET events.nasa_space_weather— DONKI notifications or event feeds such as flares, CMEs, and geomagnetic storms.nasa_epic_earth— recent DSCOVR/EPIC full-disc Earth imagery with direct image URLs.nasa_power_daily— historical daily weather, solar-resource, and agricultural data for a latitude/longitude in compact columnar series.nasa_power_climatology— monthly and annual climate normals for a location using NASA POWER's standard 2001–2020 baseline.
NASA POWER tools provide weather, solar, and agriculture presets, or up to ten explicitly selected parameter codes. The agriculture preset defaults to POWER's AG community; other requests default to RE, with SB also available when community-specific units are needed. Daily requests are limited to 366 calendar days and 2,000 parameter-day values, radiation parameters begin on 1984-01-01, and responses clearly identify the data as historical rather than a forecast.
Related MCP server: NASA MCP Server
Setup
npm install
npm test
npm run smokeThe smoke test always exercises the six keyless live tools. It exercises APOD, DONKI, and the combined daily brief only when a registered NASA_API_KEY is configured; degraded API-keyed sections do not receive a false green.
NASA_API_KEY is optional. Without it, the server uses NASA's DEMO_KEY (30 requests/hour and 50/day per IP). EONET, EPIC, NASA POWER, and the NASA media library are keyless. For regular use, create a free key at https://api.nasa.gov/ and expose it as NASA_API_KEY in the MCP server environment.
Run
NASA_API_KEY=... node dist/index.jsThe server speaks MCP over stdio. Logs go to stderr; stdout is reserved for protocol frames.
Data behavior
Date ranges, numeric limits, enum values, and extra arguments are strictly validated.
Free-text and ID inputs are length-limited; outputs are normalized, truncated, and capped to avoid context flooding.
Requests are restricted to fixed NASA HTTPS origins, use 20-second timeouts, and retry transient 5xx responses once.
nasa_daily_briefreturns partial results when one upstream API is unavailable, including sharedDEMO_KEYthrottling.NASA API keys are redacted from returned source URLs; rate-limit headers are surfaced when available.
Sources: NASA Open APIs, NASA Image and Video Library, EONET v3, DONKI, EPIC, and NASA POWER.
Available Tools
9 toolsnasa_apodA
Get NASA's Astronomy Picture of the Day for a date, or a small random sample. Returns image/video URLs, title, credit, and a bounded explanation.
Inputs: date, count, include_hd.
nasa_daily_briefA
Get a compact NASA daily brief: today's astronomy image, recent space-weather notices, active Earth events, and the latest DSCOVR full-disc Earth image. Returns partial results if an upstream NASA service is down.
Inputs: lookback_days, earth_event_limit.
nasa_earth_eventsA
Find current or recent natural events from NASA EONET, including storms, wildfires, volcanoes, floods, sea/lake ice, dust, drought, and landslides. Returns latest coordinates and source links.
Inputs: bbox, days, limit, status, +1 more.
nasa_epic_earthA
Get DSCOVR/EPIC full-disc Earth images with direct PNG/JPG/thumbnail URLs and spacecraft geometry. Keyless NASA endpoint.
Inputs: date, limit, collection.
nasa_media_assetA
Resolve a NASA media ID to its downloadable image, video, audio, caption, and metadata files.
Inputs: nasa_id (required).
nasa_power_climatologyA
Get NASA POWER monthly and annual climatology for one latitude/longitude using the standard 2001-2020 baseline. Useful for typical weather, rainfall, wind, solar potential, and growing conditions; not a forecast.
Inputs: latitude (required), longitude (required), profile, community, +1 more.
nasa_power_dailyA
Get historical daily NASA POWER weather, solar-resource, or agricultural data for one latitude/longitude. This is analysis-ready historical data, not a forecast. Returns compact columnar series with units.
Inputs: end_date (required), latitude (required), longitude (required), start_date (required), +4 more.
nasa_search_mediaA
Search NASA's public image, video, and audio library. Returns compact metadata plus preview/original links and NASA media IDs.
Inputs: query (required), page, limit, year_end, +2 more.
nasa_space_weatherA
Get recent NASA DONKI space-weather reports: notifications, solar flares, CMEs, geomagnetic storms, solar energetic particles, interplanetary shocks, magnetopause crossings, radiation-belt enhancements, or high-speed streams.
Inputs: days, limit, end_date, event_type, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target a distinct NASA dataset or service. nasa_daily_brief aggregates content from several other tools, which could cause minor overlap, but it serves a distinct purpose as a summary. Search vs. asset and daily vs. climatology are clearly separated.
All tools share the nasa_ prefix and use descriptive snake_case, but the structure varies: some are noun phrases (nasa_earth_events), one is verb+noun (nasa_search_media), and others are acronym-based (nasa_apod). This mixed convention is readable but not a strict pattern.
Nine tools is well within the ideal 3-15 range. Each tool represents a distinct NASA data source or function, making the set neither bloated nor thin.
The server provides solid coverage of popular NASA data: imagery, media, Earth events, space weather, and climate/weather data. It lacks some notable datasets (e.g., Mars Rover photos, exoplanets) but for a general NASA MCP it covers the core areas without dead ends.
Maintenance
Related MCP Connectors
Unofficial NASA MCP — wraps NASA Open APIs (api.nasa.gov)
Live space data for AI agents - rocket launches, ISS passes, launch news. Free, no auth.
NASA astronomy photo of the day + imagery. $0.01/query. Be born in one call — free testnet funds.
Deterministic AI agent microtools, no accounts/API keys. fetch_extract: 98% token cut. 47 tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA feature-rich NASA data query tool that supports various NASA API services including astronomy pictures, Mars rover photos, Earth satellite images, near-Earth objects data, and space weather information through natural language queries.9 npm2MIT
- AlicenseBqualityDmaintenanceProvides 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.2312 npmISC
- AlicenseAqualityFmaintenanceProvides seamless integration with NASA's public APIs, enabling AI assistants to access space and astronomy data including APOD, Mars rover photos, Near-Earth Objects, space weather events, and Earth imagery.510 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides 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.5MIT