Earthdata MCP Server
Offers containerized deployment of the MCP server through Docker, simplifying setup and ensuring consistent environments for Earth data analysis workflows.
Provides tools to interact with NASA Earth Data for efficient dataset discovery and retrieval for geospatial analysis, including searching for datasets and data granules with filtering by keywords, temporal ranges, and geographical bounding boxes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Earthdata MCP Serversearch for sea surface temperature datasets from the last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🪐 ✨ Earthdata MCP Server
Earthdata MCP Server is a Model Context Protocol (MCP) server implementation that provides tools to interact with NASA Earth Data.
It is built as a reactor_mcp_server extension, so it runs two ways:
On its own:
earthdata-mcp-server startserves the Earthdata tools and nothing else, over stdio or streamable HTTP.As a toolset: installed beside any
reactor_mcp_serverhost, it is discovered and served as the opt-inearthdatatoolset to a client that asks for it:/mcp?earthdata. The Datalayer MCP Server serves it this way, next to notebooks and sandboxes.
The server is intentionally Earthdata-only. For notebook and runtime tools, serve it beside them on one host, or compose it with jupyter-mcp-server using mcp-compose.
Key Features
Dataset discovery on NASA Earthdata
Granule search with temporal and bounding box filters
Flexible download workflow with explicit execution modes
Related MCP server: Jupyter Earth MCP Server
Getting Started
Local install
pip install earthdata-mcp-server
# stdio, for a client that launches the server
earthdata-mcp-server start
# streamable HTTP, at http://localhost:4040/mcp
earthdata-mcp-server start --transport streamable-http --port 4040Option | Environment | Default |
|
|
|
|
|
|
|
|
|
As a toolset on a reactor MCP host
pip install earthdata-mcp-server "reactor_mcp_server[server]"
reactor-mcp-server --port 4040A client connecting to http://localhost:4040/mcp?earthdata gets the Earthdata tools
beside whatever else is installed; /toolsets lists what the host offers. In code:
from reactor_mcp_server import build_host, create_mcp_app
from earthdata_mcp_server import EarthdataExtension
app = create_mcp_app(build_host([EarthdataExtension()]), path="/mcp")EarthdataExtension(default=True) serves the toolset to a client that names none.
Docker with Claude Desktop
{
"mcpServers": {
"earthdata": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "EARTHDATA_USERNAME",
"-e", "EARTHDATA_PASSWORD",
"datalayer/earthdata-mcp-server:latest"
],
"env": {
"EARTHDATA_USERNAME": "your_username",
"EARTHDATA_PASSWORD": "your_password"
}
}
}
}Linux host networking
{
"mcpServers": {
"earthdata": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--network=host",
"-e", "EARTHDATA_USERNAME",
"-e", "EARTHDATA_PASSWORD",
"datalayer/earthdata-mcp-server:latest"
],
"env": {
"EARTHDATA_USERNAME": "your_username",
"EARTHDATA_PASSWORD": "your_password"
}
}
}
}Tools
The earthdata toolset offers 3 tools. None of them needs credentials, except
download_earth_data_granules in mode="download", which needs a NASA Earthdata Login.
Its default manifest mode and its script mode work anonymously.
search_earth_datasets
Search for datasets on NASA Earthdata.
Input:
search_keywords (str): Keywords to search for in the dataset titles.
count (int): Number of datasets to return.
temporal (tuple): (Optional) Temporal range in the format (date_from, date_to).
bounding_box (tuple): (Optional) Bounding box in the format (lower_left_lon, lower_left_lat, upper_right_lon, upper_right_lat).
Returns: List of dataset abstracts.
search_earth_datagranules
Search for data granules on NASA Earthdata.
Input:
short_name (str): Short name of the dataset.
count (int): Number of data granules to return.
temporal (tuple): (Optional) Temporal range in the format (date_from, date_to).
bounding_box (tuple): (Optional) Bounding box in the format (lower_left_lon, lower_left_lat, upper_right_lon, upper_right_lat).
Returns: List of data granules.
download_earth_data_granules
Search and optionally download granules with explicit modes.
Authentication: Only
mode="download"needs NASA Earthdata Login credentials (see authentication guide);manifestandscriptmodes work anonymously.Input:
folder_name (str): Local folder name to save the data.
short_name (str): Short name of the Earth dataset to download.
count (int): Number of data granules to download.
temporal (tuple): (Optional) Temporal range in the format (date_from, date_to).
bounding_box (tuple): (Optional) Bounding box in the format (lower_left_lon, lower_left_lat, upper_right_lon, upper_right_lat).
mode (str): One of:
manifest: Returns granule metadata only.download: Downloads files directly on server side.script: Returns Python code to execute elsewhere.
max_manifest_items (int): Max items returned in
manifestmode.
How download works
download_earth_data_granules always starts by searching for granules with your filters, then behaves based on mode:
manifestReturns a structured preview (
items) with IDs, titles, and links.Does not write files.
Best first step for validating query scope.
downloadAuthenticates with Earthdata using environment credentials.
Downloads matching granules directly to
folder_nameon the server runtime.Returns downloaded file paths.
scriptReturns executable Python code that performs the same search + download.
Best option when execution should happen in a notebook/runtime controlled by another MCP server.
Recommended download strategy
Use
mode="manifest"first to inspect results safely.Use
mode="script"when you want notebook-driven execution viamcp-compose+jupyter-mcp-server.Use
mode="download"only when server-side file writes are intended.
For a full composition example with mcp-compose, see download workflow docs.
Prompts
download_analyze_global_sea_levelGenerates a workflow that starts with
download_earth_data_granulesinscriptmode.Intended to be executed in a composed notebook/runtime stack (via
mcp-compose).
sealevel_rise_datasetSearch for datasets related to sea level rise worldwide.
Input:
start_year(int): Start year to consider.end_year(int): End year to consider.
Returns: Prompt correctly formatted.
ask_datasets_formatTo ask about the format of the datasets.
Returns: Prompt correctly formatted.
Development
make dev # editable install with the test, lint and typing extras
make test
make lintReleases are cut by pushing a tag; see RELEASE.md.
Building
# or run `docker build -t datalayer/earthdata-mcp-server .`
make build-dockerIf you prefer, you can pull the prebuilt images.
make pull-dockerThis server cannot be deployed
Maintenance
Related MCP Connectors
Discover, verify, and access NASA Earth science datasets via the Common Metadata Repository (CMR)
MCP server for the GDEX (Geoscience Data Exchange) data portal: datasets, files, metrics, subsetting
- earthOAuthcom.mireye
MCP server for Mireye Earth — federal-source-cited geospatial data for any MCP-aware agent.
Related MCP Servers
- AlicenseBqualityAmaintenanceA 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.32618 npm93ISC
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server implementation that provides geospatial analysis tools in Jupyter notebooks, particularly for downloading NASA Earth data granules.6BSD 3-Clause
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server for retrieving land cover, soil type, and temporal land use data for any geographical coordinates using the National Land Cover Database and FAO soil classifications.MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server providing seamless access to the Hawaii Climate Data Portal API for querying climate and weather data for Hawaii and American Samoa.-