Skip to main content
Glama
DEM Terrain Analysis

DEM Terrain Analysis

by ava11235

DEM Terrain Analysis MCP Server

AI-powered terrain analysis using deep learning super-resolution. Analyze any location on Earth for environmental risk, erosion potential, water flow patterns, and more.

Tools

Tool

Description

analyze_terrain

Get Site Intelligence Score and terrain metrics summary for any lat/lon

get_full_terrain_data

Get full super-resolved DEM + per-cell metric grids

check_api_health

Verify the API is running

Related MCP server: readypermit-mcp

What it does

Given a latitude/longitude, this MCP server:

  1. Fetches 30m satellite elevation data

  2. Runs AI super-resolution to produce 10m terrain (3× detail enhancement)

  3. Computes 6 terrain analytics metrics including the Site Intelligence Score

Metrics

  • flow_direction — water drainage direction per cell (D8 algorithm)

  • flow_accumulation — upstream drainage count

  • twi — Topographic Wetness Index (saturation tendency)

  • erosion_risk — soil erosion susceptibility [0-1]

  • runoff_potential — surface water runoff likelihood [0-1]

  • site_intelligence_score — composite environmental risk [0-1]

Site Intelligence Score

A composite metric combining TWI, erosion risk, and runoff potential:

  • 0.0–0.2: Low risk

  • 0.2–0.4: Moderate

  • 0.4–0.6: Elevated

  • 0.6–0.8: High

  • 0.8–1.0: Critical

Installation

{
  "mcpServers": {
    "dem-terrain": {
      "command": "uvx",
      "args": ["dem-terrain-mcp"]
    }
  }
}

Or run directly:

pip install dem-terrain-mcp
python -m dem_terrain_mcp

Example usage

Ask your AI assistant:

"Analyze the terrain at 48.7768, -121.8145 with a 500m bounding box"

Response includes elevation range, Site Intelligence Score with risk level, and all 6 terrain metrics.

Parameters

Parameter

Type

Required

Description

latitude

float

yes

[-90, 90]

longitude

float

yes

[-180, 180]

bbox_size_m

int

no

Bounding box in meters [250-5000], default 500

License

Proprietary. The terrain analysis API is a hosted service.

Available Tools

3 tools
analyze_terrainA

Analyze terrain at a given location and return a Site Intelligence Score summary.

Fetches 30m SRTM elevation data, runs RCAN super-resolution to 10m, and computes terrain analytics. Returns summary statistics (min/max/mean) for all 6 metrics including the Site Intelligence Score.

Args: latitude: Center latitude in decimal degrees [-90, 90] longitude: Center longitude in decimal degrees [-180, 180] bbox_size_m: Bounding box size in meters [250, 5000], default 500

Returns: Summary with elevation range, model info, and terrain analytics summary including site_intelligence_score (0=low risk, 1=critical risk).

Inputs: latitude (required), longitude (required), bbox_size_m.

check_api_healthA

Check if the DEM Super-Resolution API is running and ready.

Returns health status, readiness status, and loaded model versions. Use this before running terrain analysis to confirm the server is up.

Inputs: no named parameters.

get_full_terrain_dataA

Get full super-resolved DEM and terrain metric grids for a location.

Returns the complete per-cell data suitable for map rendering and detailed spatial analysis. Response is large — use analyze_terrain for quick summaries.

Args: latitude: Center latitude in decimal degrees [-90, 90] longitude: Center longitude in decimal degrees [-180, 180] bbox_size_m: Bounding box size in meters [250, 5000], default 500 metrics: List of metrics to compute. Options: flow_direction, flow_accumulation, twi, erosion_risk, runoff_potential, site_intelligence_score, all. Default: all.

Returns: Full sr_dem grid, model info, shapes, and per-cell terrain metric grids.

Inputs: latitude (required), longitude (required), bbox_size_m, metrics.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool serves a distinct purpose: health check, summary analysis, and full data retrieval. No overlap in functionality.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern: analyze_terrain, check_api_health, get_full_terrain_data.

    Tool Count4/5

    Three tools is reasonable for a focused terrain analysis server, covering health, summary, and full data. Could be expanded but not overly sparse.

    Completeness4/5

    The server covers the core workflow: health check, summary analysis, and detailed data retrieval. Missing features like listing available metrics or multiple locations, but not critical.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Instant U.S. property intelligence for AI agents. Zoning, Buildability™ Score, ADU eligibility, flood risk, and more from 20+ government sources. Pay-as-you-go: $5 per analysis (prepaid credits). Free Score available at buildability.us. Get a key at buildability.us/api.
      5
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Property intelligence API for US real estate. Returns 16+ data points for any US address: noise levels, wetlands, slope, natural light, powerline proximity, crime rates, property facing direction, zoning, public record, radon risk, natural hazards (earthquake, flood, wildfire), neighborhood demographics, falling tree risk, RF/cell tower exposure, and nearby school.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 25 geophysical intelligence tools for multi-hazard risk scoring, earthquake/volcano/tsunami/sinkhole prediction, weather intelligence, insurance underwriting, climate migration, and parametric triggers.
      MIT