kaitoy avatar

Nasa Images

kaitoy/nasa-images-mcp-server

Connects Claude to NASA's image library API with a built-in viewer UI using the MCP Apps Pattern. Exposes two tools: search_nasa_images to query by keywords, and get_next_image to navigate results sequentially. Maintains stateful sessions so your search results persist across interactions. Supports both stdio transport for local Claude Desktop usage and HTTP with SSE for remote deployments. The viewer resource renders as HTML directly in compatible clients, letting you browse space imagery without leaving your chat. Useful when you want Claude to find and display NASA photos of missions, planets, or astronomical phenomena. Requires a free NASA API key with a 1000 requests per hour limit for registered users.

GitHub stars
1
tools
2
auth
Secret needed
transport
STDIO
env var
1
last updated
Mar 20, 2026

Tools

2 tools

Public tool metadata for what this MCP can expose to an agent.

search_nasa_imagesSearch NASA's image library.

Search NASA's image library.

No parameter schema in public metadata yet.

get_next_imageDisplay the next image from the current search results.

Display the next image from the current search results.

No parameter schema in public metadata yet.

Sponsors

Configuration

NASA_API_KEY*secret

Your API key for the NASA Images API

Readme

NASA Images MCP Server

A project to search NASA's image library using an MCP server and display images in an interactive UI.

🌟 Features:

  • Dual Transport Support: Supports both stdio and Streamable HTTP transport
  • Image Search: Search by keywords using NASA's Images API
  • Interactive UI: Beautiful image viewer using MCP Apps Pattern
  • Image Navigation: Display search results sequentially
  • Session Management: Stateful session management

screenshot

Requirements

  • Node.js 18 or higher
  • npm or yarn
  • NASA API Key (get free at nasa.gov/api)

Installation

  1. Clone the repository:
cd nasa-images-mcp-server
  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env

Edit the .env file to configure your NASA API key:

NASA_API_KEY=your_api_key_here
PORT=3000
  1. Build:
npm run build

Getting a NASA API Key

  1. Visit https://api.nasa.gov/
  2. Enter your name and email address in the form
  3. The API key will be sent to your email immediately
  4. Add it to your .env file

View the full README on GitHub

Details

Repository
github.com/kaitoy/nasa-images-mcp-server
Package
@kaitoy/nasa-images-mcp-server
Transport
STDIO
Auth
Required
Registry
MCP registry, active