Skip to main content
Glama
space-mcp-server

space-mcp-server

by AiAgentKarl

Space MCP Server

MCP server giving AI agents access to NASA and space/astronomy data — APOD, Mars rover photos, near-Earth asteroids, exoplanets, Earth imagery, natural events, and space weather.

Features (10 Tools)

Tool

Description

get_astronomy_picture

NASA's Astronomy Picture of the Day (APOD)

search_nasa_images

Search NASA's 140,000+ image/video library

get_exoplanets

Query 5,000+ confirmed exoplanets

get_space_weather

Solar flares, CMEs, geomagnetic storms (DONKI)

get_mars_rover_photos

Real photos from Curiosity, Perseverance, Opportunity, Spirit

get_mars_rover_info

Rover mission status, cameras, photo counts

get_near_earth_objects

Track asteroids approaching Earth (NeoWs)

get_asteroid_details

Orbital data and close approaches for specific asteroids

get_earth_imagery

Full-Earth photos from DSCOVR satellite (EPIC)

get_natural_events

Active wildfires, volcanoes, storms worldwide (EONET)

Related MCP server: NASA-MCP

Quick Start

Install from source

git clone https://github.com/AiAgentKarl/space-mcp-server.git
cd space-mcp-server
python -m venv .venv
.venv/Scripts/activate  # Windows
# source .venv/bin/activate  # Linux/Mac
pip install -e .

Configure

cp .env.example .env
# Edit .env and add your NASA API key (optional, DEMO_KEY works out of the box)

Get a free API key at https://api.nasa.gov/ for higher rate limits.

Run

space-mcp
# or
python -m src.server

Claude Code Integration

Add to your .mcp.json:

{
  "mcpServers": {
    "space": {
      "type": "stdio",
      "command": "path/to/.venv/Scripts/python.exe",
      "args": ["-m", "src.server"],
      "env": {
        "NASA_API_KEY": "your-api-key-here"
      }
    }
  }
}

API Sources

API

Key Required

Rate Limit

NASA API (APOD, Mars, NeoWs, DONKI)

Yes (DEMO_KEY works)

30/hour (DEMO), 1000/hour (registered)

EPIC

No

No limit

EONET

No

No limit

NASA Image Library

No

No limit

Exoplanet Archive

No

No limit

Architecture

src/
├── server.py          # FastMCP server entry point
├── config.py          # Settings & environment variables
├── analytics.py       # Usage tracking
├── clients/
│   ├── nasa.py        # NASA API (APOD, Mars, NeoWs, DONKI)
│   ├── epic.py        # EPIC Earth imagery
│   ├── eonet.py       # EONET natural events
│   ├── nasa_images.py # NASA Image Library
│   └── exoplanet.py   # Exoplanet Archive
└── tools/
    ├── astronomy.py   # APOD, image search, exoplanets, space weather
    ├── mars.py        # Mars rover photos & info
    ├── asteroids.py   # Near-Earth objects & asteroid details
    └── earth.py       # EPIC imagery & natural events

More MCP Servers by AiAgentKarl

Category

Servers

🔗 Blockchain

Solana

🌍 Data

Weather · Germany · Agriculture · Space · Aviation · EU Companies

🔒 Security

Cybersecurity · Policy Gateway · Audit Trail

🤖 Agent Infra

Memory · Directory · Hub · Reputation

🔬 Research

Academic · LLM Benchmark · Legal

→ Full catalog (40+ servers)

License

MIT

Available Tools

11 tools
get_asteroid_detailsA

Detaillierte Informationen zu einem bestimmten Asteroiden.

Zeigt Orbitalparameter, alle nahen Vorbeiflüge und physische Daten.

Args: asteroid_id: NEO-Referenz-ID (z.B. "3542519" für Bennu)

Inputs: asteroid_id (required).

get_astronomy_pictureA

Astronomy Picture of the Day (APOD) abrufen.

NASAs berühmtes tägliches Astronomiebild mit Erklärung. Ohne Parameter: heutiges Bild. Mit Datum: bestimmter Tag. Mit count: mehrere zufällige Bilder.

Args: date: Bestimmtes Datum im Format YYYY-MM-DD (optional) count: Anzahl zufälliger Bilder (1-100, optional)

Inputs: date, count.

get_earth_imageryA

Echte Fotos der Erde von NASAs DSCOVR-Satellit (EPIC-Kamera).

Liefert Bilder der ganzen Erde aus 1,5 Millionen km Entfernung am Lagrange-Punkt L1. Zeigt Wolken, Kontinente und Ozeane.

Args: date: Bestimmtes Datum YYYY-MM-DD (optional, Standard: neueste) limit: Maximale Anzahl Bilder (Standard: 5, Maximum: 20)

Inputs: date, limit.

get_exoplanetsB

Bestätigte Exoplaneten aus NASAs Exoplanet Archive suchen.

Durchsucht die Datenbank mit über 5.000 bestätigten Exoplaneten.

Args: discovery_year: Entdeckungsjahr filtern (z.B. 2024) discovery_method: Entdeckungsmethode (z.B. "Transit", "Radial Velocity") min_mass: Mindestmasse in Jupitermassen (optional) max_mass: Maximalmasse in Jupitermassen (optional) limit: Maximale Anzahl Ergebnisse (Standard: 20, Maximum: 50)

Inputs: discovery_year, discovery_method, min_mass, max_mass, +1 more.

get_mars_rover_infoA

Missionsinformationen eines Mars-Rovers abrufen.

Zeigt Status, Landedatum, Gesamtanzahl Fotos und Kamera-Liste.

Args: rover: Rover-Name — "curiosity", "perseverance", "opportunity" oder "spirit"

Inputs: rover.

get_mars_rover_photosA

Fotos von Mars-Rovern abrufen.

Zeigt echte Fotos von der Marsoberfläche. Ohne sol/earth_date: neueste verfügbare Fotos.

Args: rover: Rover-Name — "curiosity", "perseverance", "opportunity" oder "spirit" sol: Mars-Sol (Marstag seit Landung, z.B. 1000) earth_date: Erddatum im Format YYYY-MM-DD (alternativ zu sol) camera: Kamera-Kürzel (z.B. "FHAZ", "RHAZ", "MAST", "NAVCAM", "CHEMCAM") limit: Maximale Anzahl Fotos (Standard: 10, Maximum: 25)

Inputs: rover, sol, earth_date, camera, +1 more.

get_natural_eventsA

Aktuelle Naturereignisse weltweit abrufen (EONET).

Zeigt aktive Waldbrände, Vulkanausbrüche, Stürme, Überschwemmungen und andere Naturkatastrophen mit Koordinaten und Zeitstempel.

Args: category: Kategorie — "wildfires", "volcanoes", "severeStorms", "seaLakeIce", "earthquakes", "floods", "landslides" (optional) status: "open" (aktive Events) oder "closed" (beendete) days: Events der letzten N Tage (optional) limit: Maximale Anzahl Events (Standard: 20, Maximum: 50)

Inputs: category, status, days, limit.

get_near_earth_objectsA

Erdnahe Asteroiden in einem Zeitraum abrufen (NeoWs).

Zeigt Asteroiden die der Erde nahe kommen, mit Größe, Geschwindigkeit, Entfernung und Gefahrenbewertung.

Args: start_date: Startdatum im Format YYYY-MM-DD end_date: Enddatum im Format YYYY-MM-DD (optional, max. 7 Tage Spanne)

Inputs: start_date (required), end_date.

get_space_weatherA

Aktuelle Weltraumwetter-Daten von NASAs DONKI abrufen.

Zeigt Sonneneruptionen, koronale Massenauswürfe (CME) und geomagnetische Stürme. Wichtig für Satellitenoperationen und Polarlicht-Vorhersagen.

Args: start_date: Startdatum YYYY-MM-DD (Standard: letzte 7 Tage) end_date: Enddatum YYYY-MM-DD (optional) event_type: "all", "cme" (Massenauswürfe), "flare" (Eruptionen) oder "storm" (geomagnetische Stürme)

Inputs: start_date, end_date, event_type.

get_usage_statsA

Nutzungsstatistiken des MCP-Servers abrufen.

Zeigt: Gesamtanzahl Tool-Aufrufe, Aufrufe pro Tool, erster und letzter Aufruf.

Inputs: no named parameters.

search_nasa_imagesA

NASAs Bild- und Video-Bibliothek durchsuchen (140.000+ Medien).

Findet Bilder, Videos und Audiodateien aus NASAs gesamtem Archiv.

Args: query: Suchbegriff (z.B. "apollo 11", "mars landing", "hubble nebula") media_type: Medientyp — "image", "video" oder "audio" (optional) year_start: Ergebnisse ab diesem Jahr (optional) year_end: Ergebnisse bis zu diesem Jahr (optional) page_size: Anzahl Ergebnisse (Standard: 10, Maximum: 100)

Inputs: query (required), media_type, year_start, year_end, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct space-related domain (asteroids, APOD, Earth imagery, exoplanets, Mars rovers, natural events, NEO, space weather, usage stats, NASA image search). No two tools have overlapping purposes.

    Naming Consistency4/5

    All tools follow a consistent verb_noun pattern in snake_case, with most using 'get_'. The exception is 'search_nasa_images' which uses 'search_' instead of 'get_', a minor deviation.

    Tool Count5/5

    With 11 tools, the server covers a broad range of space data without being overwhelming. Each tool serves a clear, non-redundant purpose, making the count appropriate for the scope.

    Completeness4/5

    The tool set covers major NASA data sources (APOD, Mars photos, NEO, space weather, natural events, image search) but lacks coverage of satellite tracking, deep space missions, or planetary facts. Minor gaps but functional for common tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      A Model Context Protocol server that provides a standardized interface for AI models to interact with NASA's vast array of data sources including APOD, Mars Rover photos, satellite imagery, and space weather data.
      32
      95 npm
      94
      ISC
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that enables LLMs to query data from various NASA APIs, allowing access to astronomical data, space weather information, Earth imagery, and exoplanet information directly from compatible AI clients.
      21
      6
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Multi-Agent Conversation Protocol server for accessing NASA's Astronomy Picture of the Day (APOD) API, allowing users to retrieve space imagery and related information through natural language interactions.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server that fetches NASA's Astronomy Picture of the Day (APOD) for a given date, returning title, explanation, and image URLs.
      -