earth-engine-mcp-production

Dhenenjay/earth-engine-mcp-production

3.2

If you are the rightful owner of earth-engine-mcp-production and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Planetary MCP Server is a production-ready Earth Engine server with full Claude Desktop integration, offering comprehensive geospatial analysis tools and 100% test coverage.

Tools
6
Resources
0
Prompts
0

šŸŒ Planetary MCP - Production Ready

šŸš€ 100% Operational - All Earth Observation Tools Working Perfectly

This is the production-ready version of the Earth Engine MCP Server with complete Claude Desktop integration and 100% test coverage.

āœ… Status: FULLY OPERATIONAL

  • All 6 Super Tools: Working perfectly
  • Claude Desktop Integration: Configured and tested
  • Test Coverage: 100% success rate
  • Performance: Optimized for production use

šŸŽÆ Features

6 Super Tools

  1. earth_engine_system - Authentication, health checks, custom code execution
  2. earth_engine_data - Search datasets, get geometries, filter collections
  3. earth_engine_process - Calculate indices, create composites, analyze terrain
  4. earth_engine_export - Generate thumbnails, export data, create tiles
  5. earth_engine_map - Create interactive web maps with tile services
  6. crop_classification - ML-based crop and land cover classification

5 Geospatial Models

  • Wildfire risk assessment
  • Flood monitoring
  • Agricultural analysis
  • Deforestation detection
  • Water quality assessment

šŸ”§ Quick Start

Prerequisites

  1. Node.js v22.16.0 or higher
  2. Google Earth Engine account with service account credentials
  3. Claude Desktop (for MCP integration)

Installation

# Clone the repository
git clone https://github.com/Dhenenjay/earth-engine-mcp-production.git
cd earth-engine-mcp-production

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env
# Edit .env and add your Google Earth Engine credentials path

Running the Server

# Start the Next.js server
npx next dev

# The server will run on http://localhost:3000

Claude Desktop Configuration

  1. Open Claude Desktop settings
  2. Edit the MCP configuration file at:
    %APPDATA%\Claude\claude_desktop_config.json
    
  3. Add this configuration:
    {
      "mcpServers": {
        "planetary": {
          "command": "node",
          "args": ["C:\\path\\to\\planetary-mcp\\mcp-sse-complete.js"],
          "env": {
            "GOOGLE_APPLICATION_CREDENTIALS": "C:\\path\\to\\your\\ee-key.json"
          }
        }
      }
    }
    
  4. Restart Claude Desktop

šŸ“Š Test Results

================================================================================
MCP TOOLS COMPREHENSIVE TEST SUITE
================================================================================
āœ… Passed: 12/12
āŒ Failed: 0/12
āš ļø  Skipped: 0/12

Success Rate: 100.0%

šŸŽ‰ ALL TESTS PASSED! MCP Server is 100% operational!

Performance Metrics

  • Authentication: ~0.2s
  • Data operations: < 1.5s
  • Processing operations: 1-6s
  • Crop classification: 20-30s
  • Map generation: 5-10s

šŸ“š Documentation

Tool Usage Examples

Search Datasets
{
  "tool": "earth_engine_data",
  "operation": "search",
  "query": "sentinel",
  "limit": 5
}
Calculate NDVI
{
  "tool": "earth_engine_process",
  "operation": "index",
  "indexType": "NDVI",
  "datasetId": "COPERNICUS/S2_SR_HARMONIZED",
  "startDate": "2024-07-01",
  "endDate": "2024-07-31",
  "region": "Iowa",
  "scale": 30
}
Crop Classification
{
  "tool": "crop_classification",
  "operation": "classify",
  "region": "Iowa",
  "startDate": "2024-05-01",
  "endDate": "2024-09-30",
  "classifier": "randomForest",
  "numberOfTrees": 50,
  "includeIndices": true,
  "createMap": false
}

šŸ” Key Files

  • mcp-sse-complete.js - Main MCP bridge for Claude Desktop
  • src/mcp/server.ts - Core MCP server implementation
  • src/mcp/tools/consolidated/ - All 6 super tools
  • app/[transport]/route.ts - Next.js API routes
  • MCP_TOOLS_DOCUMENTATION.md - Complete tool documentation

šŸŽÆ Supported Regions

  • US States: All 50 states
  • Countries: Most countries worldwide
  • Custom: Any GeoJSON or coordinates

🌟 Features Highlights

  • Cloud Masking: Automatic removal of cloudy pixels
  • Vegetation Indices: NDVI, EVI, SAVI, NDWI, NBR, etc.
  • Multiple Classifiers: Random Forest, SVM, CART, Naive Bayes
  • Time Series Analysis: Temporal analysis capabilities
  • Export Options: GeoTIFF, COG, thumbnails, tiles
  • Interactive Maps: Web-based visualization

šŸ”’ Security

  • Service account authentication
  • Environment variable configuration
  • No hardcoded credentials
  • Secure API endpoints

šŸš€ Production Optimizations

  • Efficient caching mechanisms
  • Optimized Earth Engine queries
  • Proper error handling
  • Timeout management for large operations
  • Memory-efficient processing

šŸ“ˆ Monitoring

The server includes health check endpoints:

  • /api/health - Basic health check
  • MCP tool: earth_engine_system with operation health

šŸ¤ Contributing

This is a production-ready backup. For development, please use the main repository.

šŸ“„ License

MIT License - See LICENSE file for details

šŸ™ Acknowledgments

  • Google Earth Engine team
  • Claude Desktop MCP framework
  • Next.js framework

Version: 1.0.0
Status: Production Ready
Last Updated: September 15, 2025
Test Coverage: 100%