NASA APIs
NASA public APIs for astronomy imagery, near-Earth object data, Mars rover photographs, and other NASA open datasets.
Connect this API to an AI agent Browse all specs
What you can do with NASA APIs via MCP
Every endpoint below becomes a governed tool your AI agent (Claude, ChatGPT, or a customer-facing VX agent) can call — with scoped permissions, sandbox testing, and audit logs.
| Method | Path | Operation | Description |
|---|---|---|---|
| GET | /planetary/apod |
get_planetary_apod | Get Astronomy Picture of the Day Method: GET Path: /planetary/apod IMPORTANT: This function has 1 REQUIRED parameter(s) and 4 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Query Parameters: REQUIRED: - api_key: NASA API key OPTIONAL: - date: UTC date - start_date: Start date for a range - end_date: End date for a range - thumbs: Return video thumbnail |
| GET | /neo/rest/v1/feed |
get_neo_rest_v1_feed | Get near-Earth objects for a date range Method: GET Path: /neo/rest/v1/feed IMPORTANT: This function has 1 REQUIRED parameter(s) and 2 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Query Parameters: REQUIRED: - api_key: NASA API key OPTIONAL: - start_date: Start UTC date - end_date: End UTC date |
| GET | /neo/rest/v1/neo/{asteroid_id} |
get_neo_rest_v1_neo_asteroid_id | Get a near-Earth object Method: GET Path: /neo/rest/v1/neo/{asteroid_id} IMPORTANT: This function has 2 REQUIRED parameter(s) and 0 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Path Parameters: REQUIRED: - asteroid_id: NASA asteroid reference ID Query Parameters: REQUIRED: - api_key: NASA API key |
| GET | /mars-photos/api/v1/rovers/{rover}/photos |
get_mars_photos_api_v1_rovers_rover_photos | Get Mars rover photographs Method: GET Path: /mars-photos/api/v1/rovers/{rover}/photos IMPORTANT: This function has 2 REQUIRED parameter(s) and 3 OPTIONAL parameter(s) REQUIRED parameters MUST be provided OPTIONAL parameters can be omitted if not needed Parameters: Path Parameters: REQUIRED: - rover: Rover name Query Parameters: REQUIRED: - api_key: NASA API key OPTIONAL: - sol: Martian sol - page: Page number - camera: Camera abbreviation |
Usage guide
Create an API key through the official NASA API portal. Pass it as the `api_key` query parameter; `DEMO_KEY` is available for limited testing. Keep the key server-side, respect rate limits, and use the endpoint-specific parameters documented by NASA. Official documentation: https://api.nasa.gov/
How to use this spec
- Create a free VX Agents account (sandbox tools included).
- Open the marketplace and connect “NASA APIs” to an agent.
- Expose it as an MCP server for Claude/ChatGPT, or chat with it directly.