Science
Data source: NASA DONKI, Open Notify
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/space-weather/
claude_desktop_config.json
{
"mcpServers": {
"gnist-space-weather": {
"url": "https://context.gnist.ai/mcp/space-weather/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/space-weather/" \
-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": "report_feedback", "arguments": {"feedback": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/space-weather/
4 endpoints available:
GET /rest/space-weather/get_solar_flaresGET /rest/space-weather/get_geomagnetic_stormsGET /rest/space-weather/get_iss_positionGET /rest/space-weather/report_feedback
Shell
curl "https://context.gnist.ai/rest/space-weather/report_feedback?feedback=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/space-weather/report_feedback",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"feedback": "example"
},
)
print(resp.json())
Command Line
Command
gc space-weather
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (4)
get_solar_flaresGet recent solar flare events from NASA.
| Parameter | Type | Required | Description |
|---|---|---|---|
days | integer | optional | (default: 7) |
get_geomagnetic_stormsGet recent geomagnetic storm events from NASA.
| Parameter | Type | Required | Description |
|---|---|---|---|
days | integer | optional | (default: 30) |
get_iss_positionGet the current position of the International Space Station.
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") |