elevation

Pack: opentopodata · Endpoint: https://gateway.pipeworx.io/opentopodata/mcp

Elevation at points. Up to 100 locations per request.

Parameters

NameTypeRequiredDescription
locationsarrayyesArray of {lat, lon} (up to 100). Single object also accepted.
itemsobjectno
datasetstringnoDefault “srtm90m”.
samplesnumbernoOptional: interpolate N samples between first and last point.
formatstringnojson (default) | geojson

Example call

Arguments

{
  "locations": [
    {
      "lat": 40.7128,
      "lon": -74.006
    },
    {
      "lat": 34.0522,
      "lon": -118.2437
    }
  ]
}

curl

curl -X POST https://gateway.pipeworx.io/opentopodata/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"elevation","arguments":{"locations":[{"lat":40.7128,"lon":-74.006},{"lat":34.0522,"lon":-118.2437}]}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('elevation', {
  "locations": [
    {
      "lat": 40.7128,
      "lon": -74.006
    },
    {
      "lat": 34.0522,
      "lon": -118.2437
    }
  ]
});

More examples

{
  "locations": {
    "lat": 51.5074,
    "lon": -0.1278
  },
  "dataset": "srtm90m",
  "samples": 10,
  "format": "geojson"
}

Response shape

FieldTypeDescription
resultsarrayArray of elevation results for each location
datasetstringName of the DEM dataset used
Full JSON Schema
{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number",
            "description": "Latitude of the location"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude of the location"
          },
          "elevation": {
            "type": "number",
            "description": "Elevation in meters"
          }
        }
      },
      "description": "Array of elevation results for each location"
    },
    "dataset": {
      "type": "string",
      "description": "Name of the DEM dataset used"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "opentopodata": {
      "url": "https://gateway.pipeworx.io/opentopodata/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026