Skip to main content

NASA API integration with MCP (Model Context Protocol)

Project description

en es

NASA-MCP. Integration via MCP with NASA APIs

NASA is the National Aeronautics and Space Administration of the United States.

NASA-MCP allows you to retrieve astronomical data, space weather information, Earth imagery, and more from NASA's APIs directly from Claude AI and other MCP compatible clients, using the Model Context Protocol (MCP).

NASA-MCP is an MCP server that exposes tools enabling LLMs to query data from various NASA APIs, including APOD (Astronomy Picture of the Day), Asteroids NeoWs, DONKI (Space Weather Database), Earth imagery, EPIC (Earth Polychromatic Imaging Camera), and Exoplanet data.

It includes secure handling of API keys and proper error management for all API requests.

Key Features

  • Access to Astronomy Picture of the Day (APOD) with explanations and imagery
  • Query Near Earth Objects data and asteroid information
  • Retrieve Space Weather data from DONKI, including solar flares, geomagnetic storms, and more
  • Get Earth imagery from Landsat 8 satellite for specific coordinates
  • Access EPIC camera images showing the full Earth disk
  • Query the Exoplanet Archive database for information about planets outside our solar system

Installation

Installing via Smithery

To install NASA API Integration Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @AnCode666/nasa-mcp --client claude

Install with uv

Prerequisites

  • Python 3.10 or higher
  • uv package manager

Installing uv

The first step is to install uv, a package manager for Python.
It can be installed from the command line.

On macOS and Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

On Windows:

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

You can also install it with pip:

pip install uv

For more information about installing uv, visit the uv documentation.

Integration with clients like Claude for Desktop

Once uv is installed, you can use the MCP server from any compatible client such as Claude for Desktop, in which case the steps to follow are:

  1. Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json
  2. Add the following block inside "mcpServers":
"nasa-mcp": {
    "command": "uvx",
    "args": [
        "nasa_mcp"
    ],
    "env": {
        "NASA_API_KEY": "YOUR_NASA_API_KEY"
    }
}
  1. Get a free API key from NASA at: https://api.nasa.gov/
  2. Replace YOUR_NASA_API_KEY with your actual API key (leave the quotes). You can also use "DEMO_KEY" for limited testing.
  3. If you already have another MCP server configured, separate each with a comma ,.

In general, to integrate it into any other MCP-compatible client such as Cursor, CODEGPT, or Roo Code, simply go to the MCP server configuration of your client and add the same code block.

Usage Examples

Once properly configured, you can ask things like:

  • "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"

DISTRIBUTIONS

Smithery

smithery badge

MCP Review

MCP review certified

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_ancode666_nasa_mcp-0.1.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_ancode666_nasa_mcp-0.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_ancode666_nasa_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_ancode666_nasa_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_ancode666_nasa_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dde4830a7618ec83dc541194428ef49243f390f4158dc5001e1709b73167bede
MD5 a60eead65e95d101afa170308785f1f0
BLAKE2b-256 3d00a844bbd3f315e8f0bd9a5f6ec91d8f676f9d3fe37cfc13018008e15d8c2f

See more details on using hashes here.

File details

Details for the file iflow_mcp_ancode666_nasa_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_ancode666_nasa_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_ancode666_nasa_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e4717f851eb47798f4c907eb0c43650ad77cdecf3684df9c3f7478c41f69c70
MD5 898ae2729c546e7f9848bc5a61c6f5b7
BLAKE2b-256 d839dce5e466d04c064b9a1637a6eac9878eb744cdb7e080555c42e7e5408578

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page