# Geodistance [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/pipeworx-io/mcp-geodistance  
**GitHub Stars:** 0  
**npm Downloads (last month):** 556  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/geodistance

## Description
Geographic coordinate math MCP.

## Tools
Capabilities this server exposes over MCP:

- **distance** — Great-circle (haversine) distance between two lat/lon points. Returns the distance in km, miles, nautical miles, meters & feet, plus the initial compass bearing from point 1 to point 2.
- **destination** — Given a start lat/lon, a bearing (degrees) and a distance, compute the destination point. `unit` = km (default), mi, nmi, m or ft.
- **dms_to_decimal** — Parse a degrees-minutes-seconds coordinate string to decimal degrees. Accepts forms like "40°26′46″N" or "40 26 46 N" or "-73.5". Returns the decimal value.
- **decimal_to_dms** — Convert decimal lat/lon to degrees-minutes-seconds strings.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "geodistance": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-geodistance"],
    "env": {
      "PIPEWORX_API_KEY": "",
      "PIPEWORX_META_TOOLS": "",
      "NODE_USE_ENV_PROXY": ""
    }
  }
}
```

**Requires environment variables:** `PIPEWORX_API_KEY`, `PIPEWORX_META_TOOLS`, `NODE_USE_ENV_PROXY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Geodistance does

Geodistance exposes four geographic calculation tools through MCP:

- `distance` measures the great-circle distance between two latitude/longitude points and returns values in kilometers, miles, nautical miles, meters, and feet. It also returns the initial compass bearing from the first point to the second.
- `destination` calculates a new latitude/longitude position from a starting point, a bearing in degrees, and a distance. The distance unit can be kilometers, miles, nautical miles, meters, or feet.
- `dms_to_decimal` converts a coordinate written in degrees, minutes, and seconds into decimal degrees. It accepts symbols such as degree, prime, and double-prime marks, space-separated values, and signed decimal input.
- `decimal_to_dms` formats decimal latitude or longitude values as degrees-minutes-seconds strings.

These capabilities fit coordinate comparison, navigation calculations, and data-format conversion tasks. They perform geographic math rather than place lookup, geocoding, routing, or map retrieval.

## How it works

The hosted MCP endpoint is available at `https://gateway.pipeworx.io/geodistance/mcp`. An MCP client connects to that URL and discovers the Geodistance tools during initialization. The endpoint also exposes shared Pipeworx gateway tools, including routing and discovery tools; the exact set returned by `tools/list` can change. The full gateway endpoint, `https://gateway.pipeworx.io/mcp`, exposes the broader catalog directly.

Tool calls can also be sent over HTTP. For example, the distance operation is available at `POST https://gateway.pipeworx.io/v1/tools/distance` with a JSON request containing `lat1`, `lon1`, `lat2`, and `lon2`. Tool inspection and discovery are available through the gateway's HTTP endpoints.

## Setup and configuration

For a hosted connection, add the Geodistance MCP URL to an MCP client configuration. Claude Desktop, Cursor, and Windsurf are shown as compatible client examples.

A local stdio option is available through the `@pipeworx/mcp-geodistance` npm package. Configure the client to run `npx -y @pipeworx/mcp-geodistance`; the bridge forwards requests to the hosted Pipeworx endpoint, so it still needs network access and has no offline mode.

Anonymous calls are supported, with a limit of 50 calls per day. Setting `PIPEWORX_API_KEY` enables an account-backed allowance of 200 calls per day after obtaining a free Pipeworx account. The key is transmitted as a Bearer token, and calls are metered and billed in the same way as hosted connections.

The npm bridge lists the Geodistance tools by default. Set `PIPEWORX_META_TOOLS=1` to include the shared gateway tools as well. When using an HTTPS proxy, `NODE_USE_ENV_PROXY=1` may be needed for newer Node.js releases to make the built-in `fetch` honor proxy environment settings.

## Tools and capabilities

`distance` accepts two latitude/longitude pairs and reports multiple unit conversions together with the starting bearing. `destination` accepts a start point, a degree bearing, a numeric distance, and an optional unit, defaulting to kilometers. The conversion tools handle common DMS notation and decimal values, allowing agents to normalize coordinates before or after other calculations.

The gateway also provides `ask_pipeworx`, which can select a suitable tool from a plain-language question when the shared meta-tools are enabled or when using the full gateway. This is separate from the four Geodistance calculation tools.

## Limitations and notes

Geodistance requires network access when used through the hosted endpoint or npm bridge. Anonymous usage is capped at 50 calls per day, while the account-backed allowance is 200 calls per day. A scoped pack endpoint includes shared Pipeworx meta-tools in addition to the pack tools, so its discovered tool count is larger than the four calculations listed here. The service is intended for coordinate math and formatting, not for live geographic data or route planning.

_Full upstream README: https://allmcps.com/mcp/geodistance/readme_

