NASA-MCP-server

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.

22
0

NASA MCP Server

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.

Features

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.

Disclaimer

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

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.

Environment Variables

Configuration is possible using environment variables such as NASA_API_KEY, PORT, LOG_LEVEL, CACHE_DURATION, and RATE_LIMIT.

Included NASA APIs

The server integrates NASA Open API, JPL Solar System Dynamics API, and Earth Data APIs, including APOD, Mars Rover Photos, NEO, GIBS, and POWER.

API Methods

Examples are provided for using the MCP methods for APOD, Mars Rover Photos, Near Earth Objects, GIBS, and POWER APIs.

Logging System

The server includes comprehensive logging for operation status, performance, rate limit tracking, and errors.

Security Considerations

Security best practices are implemented, including input validation, protection against command injection, and rate limiting.

Development

Instructions are provided for development, including cloning the repository, installing dependencies, building the TypeScript code, and running tests.

Testing with MCP Inspector

A script is included to test the APIs using the MCP Inspector, along with example test requests.

MCP Client Usage

An example of how to use the server with the MCP SDK is provided.

Contributing

Instructions are provided for contributing to the project.

License

ISC License - see LICENSE file for details

Repository

PR
ProgramComputer

ProgramComputer/NASA-MCP-server

Created

March 6, 2025

Updated

March 27, 2025

Language

TypeScript

Category

Communication