The NASA MCP Server provides a standardized interface for AI models to access over 20 NASA data sources, offering optimized data formats, parameter validation, and rate limit management for efficient AI consumption.
This is a Model Context Protocol (MCP) server designed to provide a standardized interface for AI models to access NASA's extensive data through its APIs. It implements the official MCP specification.
It offers access to over 20 NASA data sources via a consistent interface, standardized data formats optimized for AI, automatic parameter validation, rate limit management, and comprehensive documentation. It supports various NASA imagery formats, data conversion for LLM compatibility, and cross-platform operation.
This project is an independent implementation and is not affiliated with NASA. It accesses publicly available NASA APIs and adheres to NASA's data usage policies.
Installation instructions are provided for running with npx
, using SuperGateway for SSE (note: the developers do not endorse SuperGateway), manual installation via git clone
, and configuration within Cursor IDE.
Configuration is possible using environment variables such as NASA_API_KEY
, PORT
, LOG_LEVEL
, CACHE_DURATION
, and RATE_LIMIT
.
The server integrates NASA Open API, JPL Solar System Dynamics API, and Earth Data APIs, including APOD, Mars Rover Photos, NEO, GIBS, and POWER.
Examples are provided for using the MCP methods for APOD, Mars Rover Photos, Near Earth Objects, GIBS, and POWER APIs.
The server includes comprehensive logging for operation status, performance, rate limit tracking, and errors.
Security best practices are implemented, including input validation, protection against command injection, and rate limiting.
Instructions are provided for development, including cloning the repository, installing dependencies, building the TypeScript code, and running tests.
A script is included to test the APIs using the MCP Inspector, along with example test requests.
An example of how to use the server with the MCP SDK is provided.
Instructions are provided for contributing to the project.
ISC License - see LICENSE file for details
ProgramComputer/NASA-MCP-server
March 6, 2025
March 27, 2025
TypeScript