NASA APIs for space data
## NASA MCP Server: Space and Earth Science Data The **NASA MCP Server** integrates NASA open APIs directly into Google Antigravity, enabling AI assistants to access space imagery, Mars rover photos, asteroid data, and Earth observation datasets programmatically. This integration brings the wonder of space exploration to your development workflow. ### Why NASA MCP? - **Astronomy Picture of the Day**: Access the iconic APOD with high-resolution space imagery and explanations - **Mars Rover Photos**: Browse images from Curiosity, Opportunity, and other Mars missions - **Near Earth Objects**: Track asteroids and comets approaching Earth with trajectory data - **Earth Imagery**: Access satellite imagery and Earth observation data from NASA missions - **Open Data**: All data is freely available with no authentication for most endpoints ### Key Features #### 1. APOD Access ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get today Astronomy Picture of the Day with explanation and HD image URL" }], tools=[{ "name": "nasa_apod", "description": "Astronomy Picture of the Day" }] ) ``` #### 2. Mars Rover Images ```python # Get Mars photos response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get the latest photos from the Curiosity rover main camera" }], tools=[{"name": "nasa_mars", "description": "Mars rover photos"}] ) ``` #### 3. Asteroid Tracking ```python # Track near-Earth objects response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Find all asteroids passing near Earth this week with their sizes and velocities" }], tools=[{"name": "nasa_neo", "description": "Near Earth objects"}] ) ``` #### 4. Earth Imagery ```python # Access Earth observation data response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get a satellite image of this location from the EPIC camera" }], tools=[{"name": "nasa_earth", "description": "Earth imagery"}] ) ``` ### Configuration ```json { "mcpServers": { "nasa": { "command": "npx", "args": ["-y", "@anthropic/mcp-nasa"], "env": { "NASA_API_KEY": "your-nasa-api-key" } } } } ``` ### Use Cases **Educational Apps**: Build space education applications with authentic NASA content. **Daily Inspiration**: Create daily briefings featuring space imagery and discoveries. **Earth Monitoring**: Access satellite data for environmental and geographic applications. **Space Tracking**: Build asteroid tracking and space event monitoring tools. The NASA MCP Server brings space exploration data directly into your development workflow, enabling inspiring applications powered by real NASA missions.
{
"mcpServers": {
"nasa": {
"mcpServers": {
"nasa": {
"env": {
"NASA_API_KEY": "YOUR_API_KEY"
},
"args": [
"-y",
"nasa-mcp"
],
"command": "npx"
}
}
}
}
}