get_elevation
Pack: open-elevation · Endpoint: https://gateway.pipeworx.io/open-elevation/mcp
Elevation in metres above mean sea level for a single lat/lon.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Latitude |
longitude | number | yes | Longitude |
Example call
Arguments
{
"latitude": 40.7128,
"longitude": -74.006
}
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_elevation","arguments":{"latitude":40.7128,"longitude":-74.006}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_elevation', {
"latitude": 40.7128,
"longitude": -74.006
});
More examples
{
"latitude": 51.5074,
"longitude": -0.1278
}
Response shape
Always returns: latitude, longitude, elevation_m
| Field | Type | Description |
|---|---|---|
latitude | number | Latitude of the queried location |
longitude | number | Longitude of the queried location |
elevation_m | number | null | Elevation in metres above mean sea level |
Full JSON Schema
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"description": "Latitude of the queried location"
},
"longitude": {
"type": "number",
"description": "Longitude of the queried location"
},
"elevation_m": {
"type": [
"number",
"null"
],
"description": "Elevation in metres above mean sea level"
}
},
"required": [
"latitude",
"longitude",
"elevation_m"
]
}
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.