Earth-2 Elevation MCP

Official registry Other

Local stdio MCP server for Open-Elevation single, batch, and profile lookups.

What can you do with Earth-2 Elevation MCP?

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

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package earth-2-elevation-mcp
Claude Code
claude mcp add earth-2-elevation-mcp -- npx -y earth-2-elevation-mcp@0.1.1
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "earth-2-elevation-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "earth-2-elevation-mcp@0.1.1"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Earth-2 Elevation MCP
  2. Tools
  3. Run
  4. MCP 配置示例
  5. Notes

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 米。

Frequently asked questions

What is Earth-2 Elevation MCP?

Local stdio MCP server for Open-Elevation single, batch, and profile lookups.

How do I install Earth-2 Elevation MCP?

It runs on your machine. In Claude Code: claude mcp add earth-2-elevation-mcp -- npx -y earth-2-elevation-mcp@0.1.1. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Earth-2 Elevation MCP need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Earth-2 Elevation MCP open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains Earth-2 Elevation MCP?

It is published by gitcookman. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.