Skip to main content
Glama

엔에스

NASA-MCP. MCP를 통한 NASA API와의 통합

NASA는 미국의 국가 항공우주국입니다.

NASA-MCP를 사용하면 Model Context Protocol(MCP)을 사용하여 Claude AI 및 기타 MCP 호환 클라이언트에서 직접 NASA API의 천문 데이터, 우주 날씨 정보, 지구 이미지 등을 검색할 수 있습니다.

NASA-MCP는 LLM이 APOD(Astronomy Picture of the Day), Asteroids NeoWs, DONKI(Space Weather Database), 지구 영상, EPIC(Earth Polychromatic Imaging Camera), 외계 행성 데이터 등 다양한 NASA API에서 데이터를 쿼리할 수 있는 도구를 제공하는 MCP 서버입니다.

여기에는 API 키의 안전한 처리와 모든 API 요청에 대한 적절한 오류 관리가 포함됩니다.

주요 특징

  • 설명과 이미지가 포함된 오늘의 천문 사진(APOD) 에 대한 액세스

  • 지구 근처 천체 데이터 및 소행성 정보 쿼리

  • DONKI에서 태양 플레어, 지자기 폭풍 등을 포함한 우주 날씨 데이터를 검색하세요.

  • Landsat 8 위성에서 특정 좌표에 대한 지구 이미지를 가져옵니다.

  • 지구 전체 디스크를 보여주는 EPIC 카메라 이미지에 액세스하세요

  • 태양계 외부 행성에 대한 정보를 얻으려면 Exoplanet Archive 데이터베이스를 쿼리하세요.

Related MCP server: nasa-exoplanet-mcp

설치

필수 조건

  • Python 3.10 이상

  • uv 패키지 관리자

UV 설치

첫 번째 단계는 Python용 패키지 관리자인 uv 설치하는 것입니다.
명령줄에서 설치할 수 있습니다 .

macOS 및 Linux의 경우:

지엑스피1

Windows의 경우:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

pip를 사용해서 설치할 수도 있습니다.

pip install uv

uv 설치에 대한 자세한 내용은 uv 설명서를 참조하세요.

Claude for Desktop과 같은 클라이언트와의 통합

uv가 설치되면 Claude for Desktop 등 호환되는 모든 클라이언트에서 MCP 서버를 사용할 수 있습니다. 이 경우 다음 단계를 따르세요.

  1. Claude > 설정 > 개발자 > 구성 편집 > claude_desktop_config.json 으로 이동하세요.

  2. "mcpServers" 내부에 다음 블록을 추가합니다.

"nasa-mcp": {
    "command": "uvx",
    "args": [
        "nasa_mcp"
    ],
    "env": {
        "NASA_API_KEY": "YOUR_NASA_API_KEY"
    }
}
  1. NASA에서 무료 API 키를 받으세요: https://api.nasa.gov/

  2. YOUR_NASA_API_KEY 실제 API 키로 바꾸세요(따옴표는 그대로 두세요). 제한적인 테스트에는 "DEMO_KEY"를 사용할 수도 있습니다.

  3. 이미 다른 MCP 서버가 구성되어 있는 경우 각각을 쉼표( , )로 구분합니다.

일반적으로 Cursor, CODEGPT, Roo Code 등 다른 MCP 호환 클라이언트에 통합하려면 클라이언트의 MCP 서버 구성으로 가서 동일한 코드 블록을 추가하기만 하면 됩니다.

사용 예

올바르게 구성하면 다음과 같은 질문을 할 수 있습니다.

- "Show me today's astronomy picture of the day"
- "Find asteroids that will pass near Earth in the next week"
- "Get information about solar flares from January 2023"
- "Show me Earth imagery for coordinates 29.78, -95.33"
- "Find exoplanets in the habitable zone"

Available Tools

21 tools
browse_asteroidsC

Browse the asteroid dataset.

Inputs: no named parameters.

get_asteroid_lookupC

Look up a specific asteroid based on its NASA JPL ID.

Args: asteroid_id: Asteroid ID in the NASA JPL small body (SPK-ID) system.

Inputs: asteroid_id (required).

get_asteroids_feedB

Get a list of asteroids based on their closest approach date to Earth.

Args: start_date: Start date for asteroid search in YYYY-MM-DD format. end_date: End date for asteroid search in YYYY-MM-DD format. The Feed date limit is only 7 Days. If not specified, 7 days after start_date is used.

Inputs: start_date (required), end_date.

get_astronomy_picture_of_dayA

Get NASA's astronomy picture of the day.

Args: date: Date of the image in YYYY-MM-DD format. If not specified, the current date is used. count: If specified, returns 'count' random images. Cannot be used with 'date'. thumbs: If True, returns the thumbnail URL for videos. If APOD is not a video, this parameter is ignored.

Inputs: date, count, thumbs.

get_coronal_mass_ejectionB

Get coronal mass ejection (CME) data.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 30 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date.

Inputs: start_date, end_date.

get_earth_assetsB

Get information about available imagery assets for a specific location and date.

Args: lat: Latitude. lon: Longitude. date: Date in YYYY-MM-DD format. dim: Width and height of the image in degrees (0.025 degrees is approximately 2.7 km).

Inputs: lat (required), lon (required), date (required), dim.

get_earth_imageryB

Get Earth imagery from Landsat 8 satellite.

Args: lat: Latitude. lon: Longitude. date: Image date in YYYY-MM-DD format. If not specified, the most recent image is used. dim: Width and height of the image in degrees (0.025 degrees is approximately 2.7 km). cloud_score: Calculate the percentage of the image covered by clouds (currently not available).

Inputs: lat (required), lon (required), date, dim, +1 more.

get_epic_datesC

Get available dates for EPIC images.

Args: collection: Collection type. Options: natural, enhanced.

Inputs: collection.

get_epic_imageryB

Get images from the EPIC (Earth Polychromatic Imaging Camera).

Args: collection: Collection type. Options: natural, enhanced.

Inputs: collection.

get_epic_imagery_by_dateB

Get images from the EPIC (Earth Polychromatic Imaging Camera) for a specific date.

Args: date: Date in YYYY-MM-DD format. collection: Collection type. Options: natural, enhanced.

Inputs: date (required), collection.

get_exoplanet_dataB

Get data from NASA's Exoplanet Archive.

Args: query: Specific query to filter results using Exoplanet Archive syntax. Example: "pl_orbper > 300 and pl_rade < 2" table: Table to query. Common options: exoplanets (confirmed planets), cumulative (Kepler Objects of Interest), koi (subset of cumulative), tce (Threshold Crossing Events). format: Output format. Options: json, csv, xml, ipac. Default: json.

Inputs: query, table, format.

get_geomagnetic_stormB

Get geomagnetic storm (GST) data.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 30 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date.

Inputs: start_date, end_date.

get_hight_speed_streamC

Get high speed stream (HSS) data.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 30 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date.

Inputs: start_date, end_date.

get_magnetopause_crossingB

Get magnetopause crossing (MPC) data.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 30 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date.

Inputs: start_date, end_date.

get_mars_rover_manifestA

Get the mission manifest for a Mars rover (Curiosity, Opportunity, Spirit). Provides mission details like landing/launch dates, status, max sol/date, total photos, and photo counts per sol.

Args: rover_name: Name of the rover (curiosity, opportunity, spirit).

Inputs: rover_name (required).

get_mars_rover_photosA

Get photos from a Mars rover (Curiosity, Opportunity, Spirit). Specify either sol (Martian day) or earth_date (YYYY-MM-DD), but not both.

Args: rover_name: Name of the rover (curiosity, opportunity, spirit). sol: Martian sol (day number, starting from landing). Use if not using earth_date. earth_date: Earth date in YYYY-MM-DD format. Use if not using sol. camera: Filter by camera abbreviation (e.g., FHAZ, RHAZ, MAST, NAVCAM, PANCAM). See documentation for full list per rover. page: Page number for results (25 photos per page).

Inputs: rover_name (required), sol, earth_date, camera, +1 more.

get_notificationsB

Get DONKI notifications.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 7 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date. notification_type: Notification type. Options: all, FLR, SEP, CME, IPS, MPC, GST, RBE, report.

Inputs: start_date, end_date, notification_type.

get_radiation_belt_enhancementB

Get radiation belt enhancement (RBE) data.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 30 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date.

Inputs: start_date, end_date.

get_solar_energetic_particleB

Get solar energetic particle (SEP) data.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 30 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date.

Inputs: start_date, end_date.

get_solar_flareB

Get solar flare (FLR) data.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 30 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date.

Inputs: start_date, end_date.

get_wsa_enlil_simulationB

Get WSA+Enlil simulation data.

Args: start_date: Start date in YYYY-MM-DD format. Defaults to 7 days before current date. end_date: End date in YYYY-MM-DD format. Defaults to current date.

Inputs: start_date, end_date.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 21 tools

    Disambiguation4/5

    Most tools are clearly distinct, targeting specific NASA datasets or resources like asteroids, Earth imagery, Mars rover photos, and space weather events. However, some overlap exists: get_epic_imagery and get_epic_imagery_by_date could be confusing as they both retrieve EPIC images, though the latter adds date specificity. Similarly, browse_asteroids and get_asteroids_feed both provide asteroid lists but differ in browsing vs. date-based filtering.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, all using snake_case with 'get_' or 'browse_' prefixes followed by descriptive nouns (e.g., get_asteroid_lookup, get_earth_imagery, get_mars_rover_photos). This uniformity makes the tool set predictable and easy to navigate for an agent.

    Tool Count3/5

    With 21 tools, the count is borderline high for a single server, as it covers multiple domains (asteroids, Earth imagery, Mars rovers, space weather, exoplanets). While each tool is specific, the scope feels broad, potentially overwhelming for an agent. A more focused server might split these into subdomains, but the count is still manageable.

    Completeness4/5

    The tool set provides comprehensive coverage for accessing NASA's public APIs, including data retrieval for asteroids, Earth imagery, Mars rovers, space weather events, and exoplanets. Minor gaps exist, such as no direct update or delete operations (expected for read-only APIs) and limited filtering options in some tools, but agents can work around these with the available query parameters.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    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
      153 npm
      95
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      MCP server providing AI agents with access to NASA and space/astronomy data including APOD, Mars rover photos, near-Earth asteroids, exoplanets, Earth imagery, natural events, and space weather.
      11
      MIT