Skip to main content
Glama

英文es

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相机图像

  • 查询系外行星档案数据库,获取有关太阳系外行星的信息

Related MCP server: nasa-exoplanet-mcp

安装

先决条件

  • 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"
Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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.
    23
    98
    92
    ISC
  • A
    license
    A
    quality
    C
    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

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • MCP server for AI dialogue using various LLM models via AceDataCloud

  • MCP server connecting AI agents to non-custodial staking data across 130+ networks.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnCode666/nasa-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server