Retrieves the Astronomy Picture of the Day with optional date filtering and thumbnail options
Fetches photos from Mars rovers (Curiosity, Opportunity, Spirit) with filtering by sol, date, and camera
Provides data on Near Earth Objects within a specified date range
Accesses Global Imagery Browse Services for Earth observation imagery
Retrieves Prediction Of Worldwide Energy Resources data for specified parameters and location
The NASA APIs MCP provides a standardized interface for AI models to interact with NASA's extensive collection of data sources. It integrates over 20 NASA APIs including APOD (Astronomy Picture of the Day), Mars Rover photos, Near Earth Objects tracking, Earth observation imagery, and more. This server implements the official Model Context Protocol specification to make NASA's wealth of space and astronomical data easily accessible to AI systems.
The NASA APIs MCP server provides a standardized interface for accessing NASA's vast array of data sources through the Model Context Protocol. This integration allows AI models to easily query and retrieve space and astronomy data from over 20 NASA APIs.
The simplest way to run the NASA MCP server is using npx:
env NASA_API_KEY=YOUR_API_KEY npx -y @programcomputer/nasa-mcp-server@latest
Alternatively, you can pass the API key as a command line argument:
npx -y @programcomputer/nasa-mcp-server@latest --nasa-api-key=YOUR_API_KEY
If you prefer to install the server manually:
# Clone the repository
git clone https://github.com/ProgramComputer/NASA-MCP-server.git
# Install dependencies
cd NASA-MCP-server
npm install
# Run with your API key
NASA_API_KEY=YOUR_API_KEY npm start
You'll need a NASA API key to use this MCP server. You can obtain one for free at https://api.nasa.gov/.
The server can be configured with the following environment variable:
NASA_API_KEY
: Your NASA API keyTo configure the NASA MCP Server in Cursor (requires version 0.45.6+):
mcp.json
file in your Cursor configuration directory{
"mcpServers": {
"nasa-mcp": {
"command": "npx",
"args": ["-y", "@programcomputer/nasa-mcp-server@latest"],
"env": {
"NASA_API_KEY": "your-api-key"
}
}
}
}
your-api-key
with your NASA API keyThis MCP server integrates the following NASA APIs:
NASA Open API:
JPL Solar System Dynamics API:
Earth Data APIs:
Each NASA API is exposed through standardized MCP methods. Here are some examples:
{
"method": "nasa/apod",
"params": {
"date": "2023-01-01",
"thumbs": true
}
}
{
"method": "nasa/mars-rover",
"params": {
"rover": "curiosity",
"sol": 1000,
"camera": "FHAZ"
}
}
{
"method": "nasa/neo",
"params": {
"start_date": "2023-01-01",
"end_date": "2023-01-07"
}
}
This project is not affiliated with, endorsed by, or related to NASA (National Aeronautics and Space Administration) or any of its subsidiaries or affiliates. It is an independent implementation that accesses NASA's publicly available APIs. All NASA data used is publicly available and subject to NASA's data usage policies.