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
| Name | Type | Required | Description |
|---|---|---|---|
date | string | no | Date in YYYY-MM-DD format (optional, defaults to today). Range: 1995-06-16 to today. |
_apiKey | string | no | NASA 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
| Field | Type | Description |
|---|---|---|
date | string | Date of the astronomy picture in YYYY-MM-DD format |
title | string | Title of the astronomy picture |
explanation | string | Explanation of the astronomy picture |
url | string | URL to the astronomy picture |
hd_url | string | URL to the high-definition version of the picture |
media_type | string | Type of media (image or video) |
copyright | string | Copyright 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.