Science
Data source: NASA Open APIs (api.nasa.gov)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/nasa/
claude_desktop_config.json
{
"mcpServers": {
"gnist-nasa": {
"url": "https://context.gnist.ai/mcp/nasa/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/nasa/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_neo", "arguments": {"start_date": "example", "end_date": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/nasa/
6 endpoints available:
GET /rest/nasa/search_apodGET /rest/nasa/search_neoGET /rest/nasa/search_mars_photosGET /rest/nasa/get_epic_imageryGET /rest/nasa/search_space_weatherGET /rest/nasa/report_feedback
Shell
curl "https://context.gnist.ai/rest/nasa/search_neo?start_date=example&end_date=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/nasa/search_neo",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"start_date": "example",
"end_date": "example"
},
)
print(resp.json())
Command Line
Command
gc nasa
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (6)
search_apodGet NASA's Astronomy Picture of the Day with scientific explanations.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | any | optional | Specific date (YYYY-MM-DD). Omit for today's picture. |
start_date | any | optional | Start date for a date range (YYYY-MM-DD). |
end_date | any | optional | End date for a date range (YYYY-MM-DD). |
count | any | optional | Return N random APOD entries (1-100). Cannot combine with date/start_date. |
search_neoSearch Near Earth Objects (asteroids and comets) by date range.
| Parameter | Type | Required | Description |
|---|---|---|---|
start_date | string | required | Start date (YYYY-MM-DD). |
end_date | string | required | End date (YYYY-MM-DD), max 7 days from start. |
search_mars_photosSearch Mars Rover photos from Curiosity, Opportunity, Spirit, and Perseverance.
| Parameter | Type | Required | Description |
|---|---|---|---|
rover | string | required | Rover name: curiosity, opportunity, spirit, or perseverance. |
sol | any | optional | Martian sol (day) number. Default 1000 if neither sol nor earth_date given. |
earth_date | any | optional | Earth date (YYYY-MM-DD). Alternative to sol. |
camera | any | optional | Camera abbreviation: FHAZ, RHAZ, MAST, CHEMCAM, MAHLI, NAVCAM, PANCAM, etc. |
page | integer | optional | Page number (25 results per page). Default 1. (default: 1) |
get_epic_imageryGet NASA EPIC full-disc Earth photographs from DSCOVR satellite at L1 point.
| Parameter | Type | Required | Description |
|---|---|---|---|
collection | string | optional | Image collection: 'natural' (color) or 'enhanced' (contrast-enhanced). (default: "natural") |
date | any | optional | Date (YYYY-MM-DD). Omit for most recent images. |
search_space_weatherSearch NASA DONKI space weather events.
| Parameter | Type | Required | Description |
|---|---|---|---|
event_type | string | required | Event type: CME (Coronal Mass Ejection), GST (Geomagnetic Storm), FLR (Solar Flare), IPS (Interplanetary Shock), SEP (Solar Energetic Particle), MPC (Magnetopause Crossing), RBE (Radiation Belt Enhancement), HSS (High Speed Stream). |
start_date | string | required | Start date (YYYY-MM-DD). |
end_date | string | required | End date (YYYY-MM-DD). |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |