get_elevations
Pack: open-elevation · Endpoint: https://gateway.pipeworx.io/open-elevation/mcp
Batch elevation lookup. Pass an array of {latitude, longitude} points (up to 1,000 per call recommended). Returns each with elevation in metres.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
locations | array | yes | Array of {latitude, longitude} objects |
Example call
Arguments
{
"locations": [
{
"latitude": 40.7128,
"longitude": -74.006
},
{
"latitude": 34.0522,
"longitude": -118.2437
},
{
"latitude": 41.8781,
"longitude": -87.6298
}
]
}
curl
curl -X POST https://gateway.pipeworx.io/open-elevation/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_elevations","arguments":{"locations":[{"latitude":40.7128,"longitude":-74.006},{"latitude":34.0522,"longitude":-118.2437},{"latitude":41.8781,"longitude":-87.6298}]}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_elevations', {
"locations": [
{
"latitude": 40.7128,
"longitude": -74.006
},
{
"latitude": 34.0522,
"longitude": -118.2437
},
{
"latitude": 41.8781,
"longitude": -87.6298
}
]
});
Response shape
Always returns: count, results
| Field | Type | Description |
|---|---|---|
count | integer | Number of results returned |
results | array | Array of elevation results for each location |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "Number of results returned"
},
"results": {
"type": "array",
"description": "Array of elevation results for each location",
"items": {
"type": "object",
"properties": {
"latitude": {
"type": [
"number",
"null"
],
"description": "Latitude of the location"
},
"longitude": {
"type": [
"number",
"null"
],
"description": "Longitude of the location"
},
"elevation_m": {
"type": [
"number",
"null"
],
"description": "Elevation in metres above mean sea level"
}
}
}
}
},
"required": [
"count",
"results"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"open-elevation": {
"url": "https://gateway.pipeworx.io/open-elevation/mcp"
}
}
}
See Getting Started for client-specific install steps.