get_apod

Pack: nasa · Endpoint: https://gateway.pipeworx.io/nasa/mcp

Get the NASA Astronomy Picture of the Day with explanation. Optionally specify a date. Example: get_apod({ date: “2024-01-15”, _apiKey: “DEMO_KEY” })

Parameters

NameTypeRequiredDescription
datestringnoDate in YYYY-MM-DD format (optional, defaults to today). Range: 1995-06-16 to today.
_apiKeystringnoNASA API key (optional, defaults to DEMO_KEY — get a free key at api.nasa.gov)

Example call

Arguments

{
  "date": "2024-01-15",
  "_apiKey": "your-nasa-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/nasa/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_apod","arguments":{"date":"2024-01-15","_apiKey":"your-nasa-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_apod', {
  "date": "2024-01-15",
  "_apiKey": "your-nasa-api-key"
});

More examples

{
  "_apiKey": "your-nasa-api-key"
}

Response shape

Always returns: date, title, explanation, url, media_type

FieldTypeDescription
datestringDate of the astronomy picture in YYYY-MM-DD format
titlestringTitle of the astronomy picture
explanationstringExplanation of the astronomy picture
urlstringURL to the astronomy picture
hd_urlstringURL to the high-definition version of the picture
media_typestringType of media (image or video)
copyrightstringCopyright information for the picture
Full JSON Schema
{
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "description": "Date of the astronomy picture in YYYY-MM-DD format"
    },
    "title": {
      "type": "string",
      "description": "Title of the astronomy picture"
    },
    "explanation": {
      "type": "string",
      "description": "Explanation of the astronomy picture"
    },
    "url": {
      "type": "string",
      "description": "URL to the astronomy picture"
    },
    "hd_url": {
      "type": "string",
      "description": "URL to the high-definition version of the picture"
    },
    "media_type": {
      "type": "string",
      "description": "Type of media (image or video)"
    },
    "copyright": {
      "type": "string",
      "description": "Copyright information for the picture"
    }
  },
  "required": [
    "date",
    "title",
    "explanation",
    "url",
    "media_type"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "nasa": {
      "url": "https://gateway.pipeworx.io/nasa/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026