elevation-mcp-server

v0.1.2 pre-1.0

Look up elevation worldwide, profile route ascent/descent, grid areas, check terrain line of sight via MCP. STDIO or Streamable HTTP.

elevation.caseyjhand.com/mcp
claude mcp add --transport http elevation-mcp-server https://elevation.caseyjhand.com/mcp
codex mcp add elevation-mcp-server --url https://elevation.caseyjhand.com/mcp
{
  "mcpServers": {
    "elevation-mcp-server": {
      "url": "https://elevation.caseyjhand.com/mcp"
    }
  }
}
gemini mcp add --transport http elevation-mcp-server https://elevation.caseyjhand.com/mcp
{
  "mcpServers": {
    "elevation-mcp-server": {
      "command": "bunx",
      "args": [
        "mcp-remote",
        "https://elevation.caseyjhand.com/mcp"
      ]
    }
  }
}
{
  "mcpServers": {
    "elevation-mcp-server": {
      "type": "http",
      "url": "https://elevation.caseyjhand.com/mcp"
    }
  }
}
curl -X POST https://elevation.caseyjhand.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"1.0.0"}}}'

Tools

4

elevation_get_points

open-world

Look up ground elevation at up to 100 coordinates in one call, in meters and feet, with the dataset and resolution behind every point. Inside USGS 3DEP coverage (the US and its territories, plus much of Canada and Mexico) values come from 3DEP at 1–30 m resolution. Elsewhere they come from Open Topo Data: SRTM at about 30 m on land between 60°N and 56°S, and Mapzen terrain tiles beyond SRTM's coverage and over the ocean, where values below 0 m are sea-floor depths. A point with no data in any queried dataset returns status no_data instead of failing the call.

read
scope read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "elevation_get_points",
    "arguments": {
      "points": "<points>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "points": {
      "description": "1–100 points as {lat, lon} objects in decimal degrees (WGS84). latitude, longitude, and lng keys are also accepted.",
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90,
            "description": "Latitude in decimal degrees (WGS84), -90 to 90."
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": 180,
            "description": "Longitude in decimal degrees (WGS84), -180 to 180."
          }
        },
        "required": [
          "lat",
          "lon"
        ],
        "additionalProperties": false,
        "description": "A point as {lat, lon} in decimal degrees (WGS84)."
      }
    },
    "source": {
      "description": "Elevation source: auto (default) uses USGS 3DEP where it has data and Open Topo Data (SRTM, with Mapzen terrain tiles where SRTM has no data) for the rest; usgs_3dep uses 3DEP only; opentopodata uses Open Topo Data only. Case is ignored and spaces or hyphens read as underscores, so USGS-3DEP and open topo data are accepted; 3dep, usgs, and epqs are also aliases for usgs_3dep.",
      "default": "auto",
      "type": "string",
      "enum": [
        "auto",
        "usgs_3dep",
        "opentopodata"
      ]
    }
  },
  "required": [
    "points",
    "source"
  ],
  "additionalProperties": false
}
view source ↗

elevation_get_profile

open-world

Sample terrain elevation at evenly spaced points along a route (a polyline of 2–1,000 vertices) and summarize it. Returns total distance, cumulative ascent and descent, start, end, minimum, and maximum elevation, and the steepest climb and descent grades, plus the per-sample profile with each sample's dataset unless include_samples is false. Ascent and descent are summed between samples, so they depend on the sample spacing reported in the result: denser sampling captures more small climbs, down to the source's resolution. Over open water, Mapzen samples are sea-floor depths. Each USGS 3DEP sample is a separate upstream request, so up to 250 samples take roughly 10–30 seconds.

read
scope read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "elevation_get_profile",
    "arguments": {
      "path": "<path>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "path": {
      "description": "Route vertices in travel order, 2–1,000 {lat, lon} objects in decimal degrees (WGS84). Consecutive duplicate vertices are ignored.",
      "minItems": 2,
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90,
            "description": "Latitude in decimal degrees (WGS84), -90 to 90."
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": 180,
            "description": "Longitude in decimal degrees (WGS84), -180 to 180."
          }
        },
        "required": [
          "lat",
          "lon"
        ],
        "additionalProperties": false,
        "description": "A point as {lat, lon} in decimal degrees (WGS84)."
      }
    },
    "samples": {
      "description": "Number of evenly spaced samples along the route, endpoints included (2–250, default 100). More samples catch more relief and take longer; spacing finer than the source resolution adds no detail. For a large count where only the summary matters, set include_samples to false.",
      "default": 100,
      "type": "integer",
      "minimum": 2,
      "maximum": 250
    },
    "include_samples": {
      "description": "Return the per-sample profile (default true). false omits samples and the sample table; the summary, spacing, coverage counts, datasets, notices, and attribution are unchanged, still computed from every sample.",
      "default": true,
      "type": "boolean"
    },
    "source": {
      "description": "Elevation source: auto (default) uses USGS 3DEP where it has data and Open Topo Data (SRTM, with Mapzen terrain tiles where SRTM has no data) for the rest; usgs_3dep uses 3DEP only; opentopodata uses Open Topo Data only. Case is ignored and spaces or hyphens read as underscores, so USGS-3DEP and open topo data are accepted; 3dep, usgs, and epqs are also aliases for usgs_3dep.",
      "default": "auto",
      "type": "string",
      "enum": [
        "auto",
        "usgs_3dep",
        "opentopodata"
      ]
    }
  },
  "required": [
    "path",
    "samples",
    "include_samples",
    "source"
  ],
  "additionalProperties": false
}
view source ↗

elevation_get_grid

open-world

Sample a regular grid of terrain elevations across a bounding box and report the highest and lowest sampled points, the mean elevation, and the relief, plus the full elevation matrix with each cell's dataset. Values are point samples at grid nodes (box edges included), not cell averages, so a summit between nodes is missed; to refine a candidate high or low point, call again with a smaller box around it. Over open water, Mapzen cells are sea-floor depths. Rows times columns may not exceed 250.

read
scope read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "elevation_get_grid",
    "arguments": {
      "south": "<south>",
      "west": "<west>",
      "north": "<north>",
      "east": "<east>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "south": {
      "type": "number",
      "minimum": -90,
      "maximum": 90,
      "description": "Southern edge latitude, decimal degrees."
    },
    "west": {
      "type": "number",
      "minimum": -180,
      "maximum": 180,
      "description": "Western edge longitude, decimal degrees. Must be less than east; a box crossing longitude 180 must be split into two calls."
    },
    "north": {
      "type": "number",
      "minimum": -90,
      "maximum": 90,
      "description": "Northern edge latitude, decimal degrees. Must be greater than south."
    },
    "east": {
      "type": "number",
      "minimum": -180,
      "maximum": 180,
      "description": "Eastern edge longitude, decimal degrees."
    },
    "rows": {
      "description": "Grid rows, north to south, edges included (2–25, default 10). rows × cols must be at most 250.",
      "default": 10,
      "type": "integer",
      "minimum": 2,
      "maximum": 25
    },
    "cols": {
      "description": "Grid columns, west to east, edges included (2–25, default 10). rows × cols must be at most 250.",
      "default": 10,
      "type": "integer",
      "minimum": 2,
      "maximum": 25
    },
    "source": {
      "description": "Elevation source: auto (default) uses USGS 3DEP where it has data and Open Topo Data (SRTM, with Mapzen terrain tiles where SRTM has no data) for the rest; usgs_3dep uses 3DEP only; opentopodata uses Open Topo Data only. Case is ignored and spaces or hyphens read as underscores, so USGS-3DEP and open topo data are accepted; 3dep, usgs, and epqs are also aliases for usgs_3dep.",
      "default": "auto",
      "type": "string",
      "enum": [
        "auto",
        "usgs_3dep",
        "opentopodata"
      ]
    }
  },
  "required": [
    "south",
    "west",
    "north",
    "east",
    "rows",
    "cols",
    "source"
  ],
  "additionalProperties": false
}
view source ↗

elevation_check_line_of_sight

open-world

Check whether terrain blocks the straight sightline between an observer and a target, each at a height above the ground, accounting for earth curvature and atmospheric refraction. Returns a verdict of clear, blocked, or indeterminate (when samples along the line have no data), the minimum clearance and the terrain point that limits it, and the first obstruction from the observer when blocked. With frequency_mhz, it also reports first Fresnel zone clearance against the 60% free-space bar. Where Mapzen reports sea-floor depth over open water, clearance is measured to the sea surface; USGS 3DEP values below 0 m (bay floor in some bays, or dry land) count as received unless water_surface_m sets a water level. Models terrain only: buildings and vegetation are not modeled beyond what the elevation source itself captures, and a ridge narrower than the reported sample spacing can be missed. To see the terrain between the points, call elevation_get_profile on the same two points.

read
scope read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "elevation_check_line_of_sight",
    "arguments": {
      "observer": "<observer>",
      "target": "<target>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "observer": {
      "description": "Observer location as {lat, lon} in decimal degrees (WGS84).",
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90,
          "description": "Latitude in decimal degrees (WGS84), -90 to 90."
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180,
          "description": "Longitude in decimal degrees (WGS84), -180 to 180."
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false
    },
    "target": {
      "description": "Target location as {lat, lon} in decimal degrees (WGS84).",
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90,
          "description": "Latitude in decimal degrees (WGS84), -90 to 90."
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180,
          "description": "Longitude in decimal degrees (WGS84), -180 to 180."
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false
    },
    "observer_height_m": {
      "description": "Observer eye or antenna height above ground, meters (default 1.7, standing eye height).",
      "default": 1.7,
      "type": "number",
      "minimum": 0,
      "maximum": 10000
    },
    "target_height_m": {
      "description": "Target height above ground, meters (default 0, the ground itself). Set it for a tower, building top, or second antenna.",
      "default": 0,
      "type": "number",
      "minimum": 0,
      "maximum": 10000
    },
    "earth_model": {
      "description": "Earth model: flat ignores curvature; geometric applies curvature without refraction; optical applies standard visible-light refraction (coefficient 0.13, default); radio applies the standard 4/3-earth radio refraction (coefficient 0.25).",
      "default": "optical",
      "type": "string",
      "enum": [
        "flat",
        "geometric",
        "optical",
        "radio"
      ]
    },
    "samples": {
      "description": "Evenly spaced terrain samples along the line, endpoints included (3–250, default 100). Spacing is reported; a ridge narrower than it can be missed.",
      "default": 100,
      "type": "integer",
      "minimum": 3,
      "maximum": 250
    },
    "water_surface_m": {
      "description": "Water level in meters (-500 to 9,000). When set, each sample's surface, endpoints included, is the higher of its elevation and this level, replacing the default that lifts only Mapzen sea-floor values to 0 m. Set it where the line crosses water: 0 where USGS 3DEP reports a bay floor, or a lake or tide level.",
      "type": "number",
      "minimum": -500,
      "maximum": 9000
    },
    "frequency_mhz": {
      "description": "Radio frequency in MHz (30–300,000; 5800 for 5.8 GHz). When set, the result adds first Fresnel zone clearance against the 60% free-space bar; pair it with earth_model radio.",
      "type": "number",
      "minimum": 30,
      "maximum": 300000
    },
    "source": {
      "description": "Elevation source: auto (default) uses USGS 3DEP where it has data and Open Topo Data (SRTM, with Mapzen terrain tiles where SRTM has no data) for the rest; usgs_3dep uses 3DEP only; opentopodata uses Open Topo Data only. Case is ignored and spaces or hyphens read as underscores, so USGS-3DEP and open topo data are accepted; 3dep, usgs, and epqs are also aliases for usgs_3dep.",
      "default": "auto",
      "type": "string",
      "enum": [
        "auto",
        "usgs_3dep",
        "opentopodata"
      ]
    }
  },
  "required": [
    "observer",
    "target",
    "observer_height_m",
    "target_height_m",
    "earth_model",
    "samples",
    "source"
  ],
  "additionalProperties": false
}
view source ↗