mcpField
E
Earth-2 Elevation MCP

Earth-2 Elevation MCP

Local
github.com/gitcookmanMaps & Travel0Updated 21w ago

About Earth-2 Elevation MCP

Earth-2 Elevation MCP is a local stdio server that makes Open-Elevation lookups available to MCP clients. It supports single coordinates, batches, and sampled elevation profiles between two points.

Key features

  1. 01Single-coordinate elevation lookup
  2. 02Batch coordinate lookups
  3. 03Elevation profiles between two points

Use cases

  1. 01Find the elevation at a location
  2. 02Query elevations for multiple coordinates
  3. 03Inspect elevation along a route

MCP support

It exposes Open-Elevation single, batch, and profile lookups as tools for MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"gitcookman-earth-2-elevation": {
"command": "npx",
"args": [
"-y",
"earth-2-elevation-mcp"
]
}
}
}
Run commandnpx -y earth-2-elevation-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmearth-2-elevation-mcp0.1.1

Tools

3

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
latitudenumberYesLatitude in decimal degrees.
longitudenumberYesLongitude in decimal degrees.

Details

From the project README

Earth-2 Elevation MCP

本地 stdio MCP 服务,把 Open-Elevation 的海拔查询接口包装成 MCP tools。

Tools

  • get_elevation: 查询单个经纬度的海拔,单位米。
  • get_elevations: 批量查询多个经纬度。
  • get_elevation_profile: 在两点之间均匀采样,生成路径海拔剖面。

Run

npm start

也可以直接运行:

node .\src\index.js

MCP 配置示例

把下面配置加到你的 MCP client 配置里,路径按本机实际目录调整:

{
  "mcpServers": {
    "earth-2-elevation": {
      "command": "node",
      "args": [
        "D:\\coding\\AI-project\\ai-mcp-factory\\src\\index.js"
      ],
      "env": {
        "OPEN_ELEVATION_BASE_URL": "https://api.open-elevation.com"
      }
    }
  }
}

Notes

Open-Elevation 的公开接口是 POST /api/v1/lookup,请求体格式如下:

{
  "locations": [
    { "latitude": 41.161758, "longitude": -8.583933 }
  ]
}

响应会按请求顺序返回 latitude、longitude、elevation。如果没有记录到该坐标的海拔,服务会返回海平面 0 米。

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.