NASA-MCP

by AnCode666
MIT License
  • Apple
  • Linux

Integrations

  • Enables querying NASA APIs for astronomical data including Astronomy Picture of the Day (APOD), Near Earth Objects, Space Weather (DONKI), Earth imagery from Landsat 8, EPIC camera images, and Exoplanet Archive database information.

NASA-MCP。通过 MCP 与 NASA API 集成

NASA是美国国家航空航天局。

NASA-MCP允许您使用**模型上下文协议 (MCP)**直接从 Claude AI 和其他 MCP 兼容客户端检索 NASA 的 API 中的天文数据、空间天气信息、地球图像等。

NASA-MCP 是一个 MCP 服务器,它提供的工具使 LLM 能够从各种 NASA API 查询数据,包括 APOD(每日天文图片)、小行星 NeoWs、DONKI(空间天气数据库)、地球图像、EPIC(地球多色成像相机)和系外行星数据。

它包括 API 密钥的安全处理和所有 API 请求的适当错误管理。

主要特点

  • 获取**每日天文图片 (APOD)**及其解释和图像
  • 查询近地天体数据和小行星信息
  • 从 DONKI 检索空间天气数据,包括太阳耀斑、地磁风暴等
  • 从 Landsat 8 卫星获取特定坐标的地球图像
  • 查看显示完整地球圆盘的 EPIC相机图像
  • 查询系外行星档案数据库,获取有关太阳系外行星的信息

安装

先决条件

  • Python 3.10 或更高版本
  • uv包管理器

安装 uv

第一步是安装uv ,一个 Python 的包管理器。
它可以从命令行安装

在 macOS 和 Linux 上:

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

在 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 服务器,请用逗号,分隔每个服务器。

一般来说,要将其集成到任何其他与 MCP 兼容的客户端(例如 Cursor、CODEGPT 或 Roo Code)中,只需转到客户端的 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"

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

MCP 服务器使 LLM 能够从各种 NASA API 查询数据,从而允许直接从兼容的 AI 客户端访问天文数据、空间天气信息、地球图像和系外行星信息。

  1. Key Features
    1. Installation
      1. Prerequisites
      2. Installing uv
    2. Integration with clients like Claude for Desktop
      1. Usage Examples

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          An MCP server implementation that integrates the Tavily Search API, providing optimized search capabilities for LLMs.
          Last updated -
          1
          TypeScript
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          MCP server for toolhouse.ai. This does not rely on an external llm unlike the official server.
          Last updated -
          1
          Python
          MIT License
        • -
          security
          F
          license
          -
          quality
          An MCP server that fetches RSS feeds and shares them with LLMs, allowing AI assistants to access and present the latest news and articles from configured feeds.
          Last updated -
          1
          TypeScript
        • -
          security
          A
          license
          -
          quality
          MCP server that enables LLMs to interact with Tripadvisor API, supporting location data, reviews, and photos through standardized MCP interfaces
          Last updated -
          Python
          MIT License
          • Linux
          • Apple

        View all related MCP servers

        ID: rrycjdkdg8