Skip to main content
Glama
podaac

CMR Model Context Protocol

Official
by podaac

用于 NASA 地球数据搜索 (CMR) 的模型上下文协议 (MCP)

该模块是 NASA EarthData 通用元数据存储库 (CMR) 的模型上下文协议(MCP)。该 MCP 服务器的目标是通过 EarthAccess 将 AI 检索与 NASA 数据集目录集成。

依赖项

uv - 基于 rust 的 python 包管理器 LLM 客户端,例如 Claude 桌面或 chatGPT 桌面(用于使用 MCP)

Related MCP server: Customized MCP Server

安装并运行

将存储库克隆到您的本地环境或 LLM 客户端正在运行的地方。

git clone https://github.com/podaac/cmr-mcp.git
cd cmr-mcp

安装 uv

curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
source .venv/bin/activate

使用 uv 安装软件包

uv sync

使用which uv (UV_LIB) 和PWD (CMR_MCP_INSTALL) 的输出来更新以下配置。

添加到AI框架

在这个例子中,我们将使用 Claude 桌面。

更新claude_desktop_config.json文件(有时必须创建)。在 Mac 上,该文件通常位于~/Library/Application\ Support/Claude/claude_desktop_config.json

添加以下配置,填写 UV_LIB 和 CMR_MCP_INSTALL 的值 - 这里不要使用环境变量。

{
    "mcpServers": {
        "cmr": {
            "command": "$UV_LIB$",
            "args": [
                "--directory",
                "$CMR_MCP_INSTALL$",
                "run",
                "cmr-search.py"
            ]
        }
    }
}

使用 MCP 服务器

只需提示您的代理在search cmr for...数据即可。以下是一个简单的实际操作示例。

Claude MCP 使用

其他可以起作用的提示:

  1. 在 CMR 中搜索 2024 年至 2025 年的数据集

  2. 使用关键词“气候”在 CMR 中搜索 2020 年至 2024 年的 PO.DAAC 数据集

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

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/podaac/cmr-mcp'

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