Earthdata MCP Server enables efficient NASA Earth Data discovery and geospatial analysis tools
Earthdata MCP Server is a robust implementation of the Model Context Protocol (MCP), specifically tailored to connect AI applications with NASA Earth data resources. This server acts as a bridge, enabling seamless interaction between AI tools such as Claude Desktop, Continue, and Cursor with the vast repository of geospatial datasets available on NASA Earthdata. It provides comprehensive features for dataset discovery and manipulation, making it an essential resource for researchers and developers working in the realm of geospatial analysis.
MCP, akin to the universal adapter USB-C, standardizes communication between AI applications and diverse data sources. This protocol ensures that AI applications can interact with various tools and services without requiring specific custom integrations. The Earthdata MCP Server, therefore, offers a unified interface for accessing NASA Earth data, making it easier for AI developers to incorporate geospatial analysis capabilities into their workflows.
Earthdata MCP Server includes two primary tools designed to facilitate interaction with the data on NASA Earthdata:
search_earth_datasets: This tool allows you to search for datasets based on keywords, temporal ranges, and bounding boxes. It returns a list of dataset abstracts that match your criteria.
search_earth_datagranules: Similar to search_earth_datasets
, this tool searches for data granules using the same parameters but focuses specifically on granule-level information.
These tools enable AI applications to query NASA Earthdata with precision, filtering results based on temporal and spatial constraints.
Earthdata MCP Server is designed to be deeply integrable with AI applications like Claude Desktop. It supports various client functionalities including resources, prompts, and data access in a standardized manner. This deep integration ensures that AI applications can leverage the vast geospatial dataset catalog of NASA Earthdata effortlessly.
The implementation of the Model Context Protocol within Earthdata MCP Server follows a well-defined architecture aimed at ensuring robustness and compatibility across different platforms and tools.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
This diagram illustrates the flow of communication from an AI application (A) to a data source or tool (D) via a standardized MCP protocol. The integration is facilitated through the Earthdata MCP Server, ensuring that any AI application compatible with the MCP can leverage NASA Earthdata efficiently.
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
This matrix showcases the compatibility of Earthdata MCP Server with various AI clients. While some clients may have limitations, such as the lack of prompt handling for Cursor, the tool still provides full support for resources and data tools.
To start using Earthdata MCP Server, you can either build it from source or pull a pre-built Docker image.
make build-docker # Or run `docker build -t datalayer/earthdata-mcp-server .`
This command builds the Docker image for the server, allowing you to run it locally on your machine. This is ideal for developers who wish to make custom modifications.
make pull-docker
For simplicity, pulling a pre-built image from Docker Hub (datalayer/earthdata-mcp-server
) might be more straightforward. Use this command if you prefer not to build the server from source.
docker run -i --rm datalayer/earthdata-mcp-server:latest
Researchers can use Earthdata MCP Server to search for relevant satellite data on sea level rise trends. By specifying temporal and spatial constraints, they can retrieve granular data points, which are then analyzed using specialized geospatial tools within the AI application.
from earthdata_mcp_server import search_earth_datagranules
data_granules = search_earth_datagranules(
short_name="sea_level_rise",
count=10,
temporal=("2019-01-01", "2019-12-31"),
bounding_box=(-75.0, 37.0, -65.0, 45.0)
)
# Use data_granules for further analysis
Environmental scientists can query the server to find datasets related to land cover change over a specific period. They then use these granule-level data points in their AI models to detect changes and classify different types of land covers.
from earthdata_mcp_server import search_earth_datasets
datasets = search_earth_datasets(
search_keywords="land_cover",
count=5,
temporal=("2018-01-01", "2020-12-31"),
bounding_box=(-90.0, 45.0, -70.0, 60.0)
)
# Use datasets for training and validating land cover classification models
Earthdata MCP Server is fully compatible with popular AI clients like Claude Desktop, Continue, and Cursor. The following integration examples illustrate how to add the server configuration in claude_desktop_config.json
.
{
"mcpServers": {
"earthdata": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"datalayer/earthdata-mcp-server:latest"
]
}
}
}
This configuration snippet shows how to add the Earthdata MCP Server as a resource within Claude Desktop. Users can now leverage the powerful geospatial data functionalities directly from their AI application interfaces.
Earthdata MCP Server is designed to be highly compatible with various environmental datasets and tools available on NASA Earthdata. The following table provides an overview of its compatibility:
Feature | Support Level |
---|---|
Data Coverage | Comprehensive |
Temporal Filtering | High |
Spatial Filtering | High |
Granule-Level Access | Full |
This matrix highlights the robust support for diverse datasets and advanced filtering capabilities.
Setting environment variables can enhance the security and flexibility of your server setup. For example:
{
"mcpServers": {
"earthdata": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"datalayer/earthdata-mcp-server:latest"
],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Ensure that sensitive information such as API keys are stored securely and not hardcoded into your configurations. Additionally, regularly update any dependencies to patch known vulnerabilities.
Can Earthdata MCP Server be used with other AI clients besides Claude Desktop?
What is the best way to install Earthdata MCP Server?
make
commands.How do I search for specific datasets using temporal and spatial filters?
search_earth_datasets
tool with parameters like temporal
and bounding_box
.What is the maximum number of data granules that can be returned in one query?
count
parameter allows you to specify how many results are desired, but there is no hard limit specified.How secure is Earthdata MCP Server in handling sensitive data from NASA Earthdata?
Contributing to Earthdata MCP Server involves both code contributions and documentation updates. Interested developers can:
git clone https://github.com/datalayer/earthdata-mcp-server
cd earthdata-mcp-server
For detailed guidelines, refer to the project's contribution documentation.
Earthdata MCP Server is part of a broader MCP ecosystem that includes various servers and tools designed for AI data access and manipulation. Explore additional resources such as the Model Context Protocol website and other MCP-based servers to enhance your AI application capabilities.
By harnessing the power of Earthdata MCP Server, developers can significantly boost their geospatial analysis workflows, making AI applications more robust and capable.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration