Data source: NASA Planetary Fact Sheet / IAU
https://context.gnist.ai/mcp/astronomy/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (8)
get_planetlist_planetsget_starsearch_starslist_brightest_starslist_nearest_starsget_constellationsreport_feedback
get_planetGet detailed information about a solar system planet.
Returns mass, radius, orbital parameters, atmosphere composition, and more.
Includes the 8 major planets plus Pluto (dwarf planet).
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | required | Planet name (e.g. Earth, Mars, Jupiter, Pluto). |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_planet",
"arguments": {
"name": "example"
}
}
}list_planetsList planets in the solar system.
Optionally filter by type: terrestrial (rocky), gas_giant, ice_giant, or dwarf.
| Parameter | Type | Required | Description |
|---|---|---|---|
planet_type | any | optional | Filter: terrestrial, gas_giant, ice_giant, dwarf. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "list_planets",
"arguments": {}
}
}get_starGet detailed information about a notable star.
Returns spectral type, magnitude, distance, mass, radius, temperature, and luminosity.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | required | Star name (e.g. Sirius, Betelgeuse, Polaris, Sun). |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_star",
"arguments": {
"name": "example"
}
}
}search_starsSearch the star database by name or constellation.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search by star name, constellation, or designation. |
limit | integer | optional | (default: 10) |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "search_stars",
"arguments": {
"query": "example"
}
}
}list_brightest_starsList the brightest stars visible from Earth, sorted by apparent magnitude.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | optional | (default: 10) |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "list_brightest_stars",
"arguments": {}
}
}list_nearest_starsList the nearest stars to Earth, sorted by distance in light-years.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | optional | (default: 10) |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "list_nearest_stars",
"arguments": {}
}
}get_constellationsList all constellations represented in the star database.
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_constellations",
"arguments": {}
}
}report_feedbackReport a bug, feature request, or general feedback for this data source.
Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.
Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
curl -X POST "https://context.gnist.ai/mcp/astronomy/" \
-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": "get_planet", "arguments": {"name": "example"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/astronomy/",
headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_planet",
"arguments": {
"name": "example"
}
}
},
)
print(resp.json())