shivaprakash23/mcp_server_psetae
If you are the rightful owner of mcp_server_psetae 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.
A multi-agent system implementation using the Model Context Protocol (MCP) to orchestrate Sentinel-1 PSETAE crop classification workflows.
MCP Server for Sentinel-1 PSETAE
A multi-agent system implementation using the Model Context Protocol (MCP) to orchestrate Sentinel-1 PSETAE crop classification workflows.
Overview
This repository implements a Model Context Protocol (MCP) server that coordinates multiple AI agents to execute PSETAE (Pixel Set Encoder with Temporal Attention Encoder) workflows for crop classification using Sentinel-1 satellite imagery. The system integrates with Google Earth Engine (GEE) for data extraction and leverages the existing PSETAE codebase for model training and inference. This implementation focuses exclusively on Sentinel-1 data to establish a stable baseline before expanding to other data sources.
Features
- Multi-Agent Architecture: Hierarchical agent structure with Admin and specialized Worker agents
- Workflow Orchestration: End-to-end automation of PSETAE tasks from data extraction to inference
- GEE Integration: Seamless interaction with Google Earth Engine for satellite data retrieval
- Modular Design: Agents encapsulate specific functionality of the PSETAE pipeline
- Central Knowledge Base: Shared context and memory through MCP database
System Architecture
Agent Structure
- Admin Agent: Orchestrates the workflow and delegates tasks
- Worker Agents:
- Sentinel1DataExtractionAgent: Handles GEE data retrieval and processing for Sentinel-1
- Sentinel1ModelTrainingAgent: Manages model training and hyperparameter tuning for Sentinel-1
- Sentinel1InferenceAgent: Applies Sentinel-1 models to new data
- Sentinel1TileCoverageAgent: Analyzes satellite tile coverage for study areas
- Sentinel1DocumentationAgent: Prepares the report based on the results of the PSETAE model that got trained.
Installation
- Clone this repository:
git clone https://github.com/yourusername/mcp_server_psetae.git
cd mcp_server_psetae
- Install dependencies:
pip install -r requirements.txt
- Set up Google Earth Engine authentication:
earthengine authenticate
Usage
Starting the MCP Server
python server/server.py --port 8080 --project-dir /path/to/project
Initializing the Admin Agent
# First, retrieve the admin token from the database
# Then initialize the admin agent with:
# "Initialize as an admin agent with this token: [admin-token] Please add the MCD.md file to the project context. Don't summarize it."
Creating Worker Agents
Worker agents are created through the Admin Agent:
- Ask the Admin Agent to create a worker (e.g., "Create a worker agent with ID 'data-extraction-worker'")
- The Admin will provide a worker token
- Initialize the worker with the provided token
Workflow Example
-
Project Initialization:
- Define study area, time period, and satellite data sources
-
Data Extraction:
- Extract HLS or Sentinel data using Google Earth Engine
- Process and normalize the satellite imagery
-
Model Training:
- Train PSETAE models with the extracted data
- Tune hyperparameters for optimal performance
-
Inference:
- Apply trained models to new data
- Generate crop classification maps
-
Coverage Analysis:
- Analyze satellite tile coverage for the study area
- Generate coverage reports
Directory Structure
mcp_server_psetae/
āāā server/ # MCP server implementation
āāā agents/ # Agent implementations
āāā utils/ # Utility functions
āāā config/ # Configuration files
āāā docs/ # Documentation
āāā tests/ # Test scripts
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- PSETAE codebase by Shivaprakash Yaragal, Lund University
- Agent-MCP framework by rinadelph
- Google Earth Engine team for the Python API