Back to Home
trashchenkov icon

nasa_mcp

Verified Safe

by trashchenkov

Overview

Provides a set of tools to interact with various NASA APIs, offering functionality for astronomy pictures, space weather events, media search, and near-earth object data.

Installation

Run Command
python server.py

Environment Variables

  • NASA_API_KEY

Security Notes

The server retrieves the NASA API key from environment variables, with a 'DEMO_KEY' fallback, which is a good practice. It utilizes `httpx` for making external API calls with robust error handling via `r.raise_for_status()`. Input validation is performed on parameters like `days`, `limit`, and `page` using `max()` and `int()`. There are no apparent uses of `eval`, `exec`, or direct shell commands that could lead to code injection. Error responses are structured and include the exception type and message, which is generally acceptable for API errors.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2025-12-12

Tags

NASA APIAstronomySpace WeatherMedia SearchAPI Wrapper