GeoSight MCP Server

GeoSight MCP Server

Production-ready satellite imagery analysis server that enables natural language queries for Earth observation data, including land cover classification, vegetation monitoring, water detection, change detection, and automated environmental reporting.

Category
访问服务器

README

🛰️ GeoSight MCP Server

Python 3.11+ MCP License: MIT

Production-ready Satellite Imagery Analysis MCP Server - Analyze Earth observation data through natural language queries.

"Show me deforestation in the Amazon over the last year"
"Detect flooding in Bangladesh from satellite imagery"
"Track urban expansion around Mumbai since 2020"


🌟 Features

Feature Description
Land Cover Classification Identify forests, water, urban areas, agriculture
Vegetation Analysis (NDVI) Monitor crop health, deforestation, drought
Water Detection (NDWI) Track floods, reservoirs, coastal changes
Change Detection Compare imagery across time periods
Object Detection Find ships, planes, buildings, solar farms
Automated Reports Generate PDF/HTML reports with maps

🏗️ Architecture

┌─────────────────────────────────────────────────────────────────┐
│                     CLIENT LAYER                                │
│         Claude Desktop / Streamlit Dashboard / API              │
└──────────────────────────┬──────────────────────────────────────┘
                           │ MCP Protocol (stdio/SSE)
┌──────────────────────────▼──────────────────────────────────────┐
│                    MCP SERVER (FastAPI)                         │
│    ┌──────────┐    ┌──────────┐    ┌──────────┐                │
│    │  Tools   │    │  Auth    │    │  Queue   │                │
│    │  Router  │    │  Layer   │    │ (Celery) │                │
│    └──────────┘    └──────────┘    └──────────┘                │
└──────────────────────────┬──────────────────────────────────────┘
                           │
┌──────────────────────────▼──────────────────────────────────────┐
│                   PROCESSING ENGINE                             │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────┐             │
│  │  Imagery    │  │  ML Models  │  │  Visualize  │             │
│  │  Fetcher    │  │  Pipeline   │  │  Engine     │             │
│  └─────────────┘  └─────────────┘  └─────────────┘             │
└──────────────────────────┬──────────────────────────────────────┘
                           │
┌──────────────────────────▼──────────────────────────────────────┐
│                    DATA LAYER                                   │
│    ┌──────────┐    ┌──────────┐    ┌──────────┐                │
│    │ Postgres │    │  Redis   │    │  MinIO   │                │
│    │ +PostGIS │    │  Cache   │    │ Storage  │                │
│    └──────────┘    └──────────┘    └──────────┘                │
└─────────────────────────────────────────────────────────────────┘

🚀 Quick Start

Prerequisites

  • Python 3.11+
  • Docker & Docker Compose
  • Sentinel Hub Account (free tier available)

1. Clone & Setup

git clone https://github.com/yourusername/geosight-mcp.git
cd geosight-mcp

# Create virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -e ".[dev]"

2. Configure Environment

cp .env.example .env
# Edit .env with your API keys

3. Start Services

# Development mode
docker-compose up -d redis postgres minio

# Run MCP server
python -m geosight.server

# Or run everything with Docker
docker-compose up -d

4. Connect to Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "geosight": {
      "command": "python",
      "args": ["-m", "geosight.server"],
      "cwd": "/path/to/geosight-mcp",
      "env": {
        "SENTINEL_HUB_CLIENT_ID": "your-client-id",
        "SENTINEL_HUB_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

🔧 Available MCP Tools

search_imagery

Find available satellite imagery for a location and date range.

# Example usage through Claude
"Find Sentinel-2 imagery for New Delhi from last month"

calculate_ndvi

Calculate vegetation index to assess plant health.

# Returns: NDVI map + statistics
"Calculate NDVI for agricultural region near Punjab"

calculate_ndwi

Calculate water index to detect water bodies and flooding.

# Returns: Water mask + area calculations
"Show water bodies in Kerala during monsoon season"

detect_land_cover

Classify land into categories: forest, water, urban, agriculture, barren.

# Returns: Classification map + percentages
"Classify land cover for Bangalore metropolitan area"

detect_changes

Compare two time periods and highlight differences.

# Returns: Change map + statistics
"Show construction changes in Dubai between 2020 and 2024"

detect_objects

Find specific objects in imagery (ships, planes, buildings).

# Returns: Detected objects with bounding boxes
"Detect ships in Mumbai harbor"

generate_report

Create comprehensive PDF/HTML report with analysis.

# Returns: Downloadable report
"Generate environmental report for Amazon rainforest region"

📊 Data Sources

Source Type Resolution Frequency Cost
Sentinel-2 Optical (13 bands) 10m 5 days Free
Sentinel-1 SAR (radar) 10m 6 days Free
Landsat 8/9 Optical + Thermal 30m 16 days Free
MODIS Global coverage 250m-1km Daily Free

🧠 ML Models

Pre-trained Models Included

  1. Land Cover Classifier - EuroSAT-based CNN (ResNet50)
  2. Change Detection - Siamese U-Net architecture
  3. Object Detection - YOLOv8 trained on DOTA dataset
  4. Segmentation - DeepLabV3+ for semantic segmentation

Model Performance

Model Task Accuracy Inference Time
Land Cover Classification 94.2% ~200ms
Change Detection Binary change 91.8% ~500ms
Object Detection Ships/Planes 87.5% mAP ~300ms

🐳 Deployment

Docker Deployment

# Build and run all services
docker-compose -f docker-compose.prod.yml up -d

# Check logs
docker-compose logs -f geosight-mcp

Cloud Deployment (Railway/Fly.io)

# Railway
railway up

# Fly.io
fly launch
fly deploy

Kubernetes

kubectl apply -f k8s/

📁 Project Structure

geosight-mcp/
├── src/
│   └── geosight/
│       ├── __init__.py
│       ├── server.py           # MCP server entry point
│       ├── tools/              # MCP tool implementations
│       │   ├── __init__.py
│       │   ├── imagery.py      # Image search & fetch
│       │   ├── indices.py      # NDVI, NDWI calculations
│       │   ├── classification.py # Land cover classification
│       │   ├── change_detection.py
│       │   ├── object_detection.py
│       │   └── reports.py      # Report generation
│       ├── models/             # ML models
│       │   ├── __init__.py
│       │   ├── land_cover.py
│       │   ├── change_detector.py
│       │   └── object_detector.py
│       ├── services/           # External service integrations
│       │   ├── __init__.py
│       │   ├── sentinel_hub.py
│       │   ├── earth_engine.py
│       │   └── storage.py
│       └── utils/              # Utilities
│           ├── __init__.py
│           ├── geo.py          # Geospatial utilities
│           ├── visualization.py
│           └── cache.py
├── tests/
├── config/
├── scripts/
├── dashboard/                  # Streamlit dashboard
├── docs/
├── docker-compose.yml
├── Dockerfile
├── pyproject.toml
└── README.md

🧪 Testing

# Run all tests
pytest

# With coverage
pytest --cov=geosight --cov-report=html

# Integration tests
pytest tests/integration/ -v

📈 Monitoring

  • Prometheus metrics at /metrics
  • Health check at /health
  • Grafana dashboards included in config/grafana/

🤝 Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT License - see LICENSE for details.


🙏 Acknowledgments


📬 Contact

Your Name - @yourtwitter

Project Link: https://github.com/yourusername/geosight-mcp

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选