# NASA-MCP-server

> 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.

## Overview

- **Category:** Communication
- **Language:** TypeScript
- **Stars:** 92
- **Forks:** 0
- **Owner:** ProgramComputer
- **GitHub:** https://github.com/ProgramComputer/NASA-MCP-server
- **Created:** 2025-03-06T00:56:22+00:00
- **Updated:** 2025-03-27T15:13:24+00:00
- **Source:** https://model-context-protocol.com/servers/nasa-ai-model-data-access-server

## Setup

## Setup

**Running with npx**

```bash
env NASA_API_KEY=YOUR_API_KEY npx -y @programcomputer/nasa-mcp-server
```

You can also pass the API key as a command line argument:

```bash
npx -y @programcomputer/nasa-mcp-server --nasa-api-key=YOUR_API_KEY
```

**Manual Installation**

```bash
# 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
```

**Running on Cursor**

Create or edit an `mcp.json` file in your Cursor configuration directory with the following content:

```json
{
  "mcpServers": {
    "nasa-mcp": {
      "command": "npx",
      "args": ["-y", "@programcomputer/nasa-mcp-server"],
      "env": {
        "NASA_API_KEY": "your-api-key"
      }
    }
  }
}
```

Replace `your-api-key` with your NASA API key from https://api.nasa.gov/.

After adding the configuration, restart Cursor to see the new NASA tools.

## Tools

## Available Tools

1.  Access to 20+ NASA data sources (through a single, consistent interface)
2.  Standardized data formats (optimized for AI consumption)
3.  Automatic parameter validation and error handling
4.  Rate limit management (for NASA API keys)
5.  Comprehensive documentation and examples
6.  Support for various NASA imagery formats
7.  Data conversion and formatting (for LLM compatibility)
8.  Cross-platform support (Windows, macOS, Linux)
9.  MCP Inspector (for testing the APIs)

