Nasa logo

Nasa

Accesses NASA imagery, asteroid data, Mars rover photos, and DONKI space-weather events through MCP.

Install Nasa

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nasa": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-nasa"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The Nasa MCP server exposes NASA Open APIs through MCP tools for imagery, near-Earth asteroids, Mars rover photos, solar flares, CMEs, geomagnetic storms, energetic particles, and space-weather notifications. It can connect through the hosted Pipeworx streamable HTTP endpoint or run locally as a stdio package with npx. Use it when an agent needs current NASA data or searchable NASA media rather than a general web search. APOD and asteroid requests accept an API key argument, while the Mars photo and NASA media search tools are documented as keyless.

Use cases

  • Retrieve an Astronomy Picture of the Day for a specified date
  • Find near-Earth asteroids approaching during a seven-day window
  • Search NASA’s media library for mission or astronomy imagery
  • Check recent solar flares, CMEs, and geomagnetic storms
  • Review DONKI space-weather alerts and summaries

Key features

  • NASA APOD retrieval with date filtering
  • Near-Earth asteroid data with size, speed, and miss distance
  • Perseverance rover photos filtered by sol and camera
  • NASA Image and Video Library search
  • DONKI solar and geomagnetic event data
  • Hosted HTTP and local stdio MCP deployment

Tools9

What Nasa lets your agent do. Expand a tool for its parameters.

Self-reported~648 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

7/7 checks healthy over the last 46d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @pipeworx/mcp-nasa (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads483Package downloads in the last 30 days.
Last commit27d agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.

How Nasa works

What the Nasa MCP server does

The Nasa MCP server gives an MCP-compatible agent direct tools for selected NASA data services. It covers public-facing astronomy content, planetary imagery, near-Earth object observations, and space-weather records from NASA DONKI. The package is useful when an agent must retrieve structured NASA results instead of relying on generated answers or manually assembled API requests.

Its media tools serve different purposes. get_apod retrieves NASA’s Astronomy Picture of the Day and its explanation, with an optional date. search_nasa_images searches the NASA Image and Video Library for subjects such as missions, planets, astronauts, launches, and galaxies. get_mars_photos returns Perseverance rover images and metadata, with filters for Martian sol and camera.

Tools and capabilities

The Nasa MCP server includes these tool groups:

  • get_asteroids finds near-Earth asteroids within a date range of up to seven days and returns size, velocity, and miss-distance data.
  • get_solar_flares reports recent flare classes, timing, source regions, and active-region numbers.
  • donki_cme returns catalogued coronal mass ejections, including observations and, where available, modelled speed, direction, width, and analysis status.
  • donki_geomagnetic_storms provides event records with Kp readings, timestamps, and linked CMEs or shocks.
  • donki_solar_energetic_particles reports SEP events, detecting instruments, energy channels, and linked flare or CME sources.
  • donki_notifications retrieves DONKI alerts, watches, warnings, and summary messages, with filters for message and event type.

The Mars tool is limited to Perseverance imagery. The documentation states that Curiosity, Opportunity, and Spirit do not have live public image feeds in this package.

How it works

For hosted use, configure an MCP client with https://gateway.pipeworx.io/nasa/mcp. The endpoint lists the NASA pack tools and also exposes shared Pipeworx gateway tools. The gateway’s ask_pipeworx tool can route a natural-language question across the wider catalog, while the pack-specific tools remain available for direct calls.

For local use, run npx -y @pipeworx/mcp-nasa. The package communicates over standard input and output and responds to MCP initialization, tool-listing, and tool-call requests. The standalone process exposes only the NASA pack tools, without the gateway’s shared meta-tools or cross-catalog routing.

Setup and configuration

Add the hosted URL to an MCP client, or configure the local command and package as its server entry. The README provides examples for Claude Desktop, Cursor, and Windsurf. A Pipeworx account is not required for the standalone package, and the hosted HTTP examples state that no account is needed for initial calls.

get_apod and get_asteroids examples pass _apiKey as a tool argument, using DEMO_KEY. The documentation identifies get_mars_photos and search_nasa_images as keyless. No required environment variables are documented.

Limitations and notes

Asteroid queries support a maximum seven-day date range. Mars results come from Perseverance only and include image URLs at four resolutions, sol information, capture times, and camera data. The hosted endpoint’s tool list can contain more tools than the NASA-specific table because of shared gateway functionality; the connection’s initialization response is the authoritative list for that deployment.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Nasa

Nasa is an MCP server that connects AI agents to NASA Open APIs and NASA DONKI data. Its main tools retrieve Astronomy Picture of the Day content, near-Earth asteroid data, Perseverance Mars photos, NASA media search results, solar flares, CMEs, geomagnetic storms, energetic-particle events, and space-weather notifications.

Install it as a local stdio server with `npx -y @pipeworx/mcp-nasa`, then add that command to your MCP client configuration. You can also use the hosted endpoint at `https://gateway.pipeworx.io/nasa/mcp` without installing the package.

Yes, Nasa works with Cursor through the hosted MCP endpoint or the local stdio configuration.

APOD and asteroid examples accept an `_apiKey` tool argument, with `DEMO_KEY` shown in the documentation. The Mars rover photo and NASA media search tools are documented as keyless, and no required environment variables are listed.

Yes, the server provides DONKI tools for solar flares, CMEs, geomagnetic storms, solar energetic particles, and notifications. These tools return event records, measurements, linked causes, forecasts, alerts, watches, warnings, or summaries depending on the query.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNasa AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nasa?style=directory)](https://allmcps.com/mcp/nasa)
HTML Embed
<a href="https://allmcps.com/mcp/nasa"><img src="https://allmcps.com/api/badge/nasa?style=directory" alt="Nasa on AllMCPs" /></a>