MCP Geo logo

MCP Geo

by webcoderz

Geocodes addresses, reverse-geocodes coordinates, and calculates distances through configurable GeoPy providers.

Install MCP Geo

Run the project’s own setup commands, in order.

Setup steps from the project

webcoderz/MCP-Geo installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    uv sync
    
  2. 2. Install
    git clone https://github.com/webcoderz/MCP-Geo.git
    
  3. 3. Run
    cd MCP-Geo
    
  4. 4. Run
    fastmcp install geo.py --name "MCP Geo"
    

Overview

webcoderz/MCP-Geo MCP server exposes GeoPy-based geocoding and distance tools through MCP. It can query Nominatim, ArcGIS, or Bing, depending on environment configuration. Agents can convert addresses to coordinates, coordinates to nearby addresses, process lists with rate limiting, and measure distances. Use it when an MCP client needs location lookup or basic geographic calculations.

Use cases

  • Geocode addresses into coordinates
  • Reverse-geocode map coordinates
  • Process batches of locations
  • Calculate distances between addresses
  • Calculate distances between coordinate pairs

Key features

  • Nominatim, ArcGIS, and Bing provider support
  • Forward and reverse geocoding
  • Batch geocoding with rate limiting
  • Distance calculations in miles or kilometers
  • Detailed geocoding results with optional bounding boxes
  • GeoPy exception handling with safe unsuccessful results

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/15 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars34Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Geo works

What webcoderz/MCP-Geo does

webcoderz/MCP-Geo MCP server provides location tools through the Model Context Protocol and the GeoPy Python library. It connects to a selected geocoding provider and makes address lookup, reverse lookup, batch processing, and distance calculations available to an MCP-compatible client. The project is suited to workflows that need structured latitude, longitude, address, or distance results rather than map rendering.

The server supports three provider choices: Nominatim, ArcGIS, and Bing. Nominatim is the default provider. Provider-specific configuration is supplied through environment variables, so the same server code can be used with different geocoding services.

How it works

An MCP client calls one of the exposed tools with an address, place name, coordinate pair, or pair of locations. Forward geocoding returns coordinates and a formatted address. Reverse geocoding uses latitude and longitude to find the nearest address. The detailed forward lookup can also return bounding-box and other address information when the selected geocoder provides it.

Batch tools accept multiple addresses or multiple latitude/longitude pairs. These operations are rate-limited to reduce requests against provider quotas; the documented example is a one-second delay between geocoding calls. Distance operations either geocode two address strings first or calculate directly from two coordinate pairs. Results use the requested miles or kilometers unit where applicable.

Errors from GeoPy, including timeouts and service failures, are handled without terminating the server. Unsuccessful lookups return None or entries containing None, depending on the operation.

Setup and configuration

webcoderz/MCP-Geo MCP server requires Python 3.6 or newer. Clone the repository, enter its directory, and install the declared dependencies with uv sync. The dependency set includes FastMCP and GeoPy, and the repository also provides a requirements.txt file.

bash
fastmcp install geo.py --name "MCP Geo"

For other clients, configure an MCP command that runs geo.py through uv from the repository directory. The example configuration selects Nominatim and passes NOMINATIM_URL, SCHEME, and GEOCODER_PROVIDER through the client environment settings.

Set GEOCODER_PROVIDER to nominatim, arcgis, or bing. NOMINATIM_URL changes the Nominatim domain, while SCHEME selects http or https. ArcGIS credentials use ARC_USERNAME and ARC_PASSWORD; Bing requires BING_API_KEY. The documented defaults are Nominatim, nominatim.openstreetmap.org, and http.

Tools and capabilities

The available tools are:

  • geocode_location: Finds the best match for an address or place name and returns latitude, longitude, and a formatted address.
  • reverse_geocode: Finds the nearest address for a latitude and longitude.
  • geocode_with_details: Performs forward geocoding with additional information such as bounding boxes when supported.
  • geocode_multiple_locations: Geocodes a list of address strings with rate limiting.
  • reverse_geocode_multiple_locations: Processes a list of coordinate pairs and returns address results or unsuccessful entries.
  • distance_between_addresses: Geocodes two addresses and calculates their distance in miles or kilometers.
  • distance_between_coords: Calculates distance directly between two latitude/longitude pairs in miles or kilometers.

Limitations and notes

Results depend on the configured provider, its availability, and the quality of its location data. Detailed fields are returned only when the geocoder supports them. Failed or missing lookups do not produce a usable location result. Batch requests are intentionally slowed by rate limiting, so they may take longer as the input list grows. Bing use requires an API key, and provider usage may be subject to external quotas or service policies.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Geo

webcoderz/MCP-Geo is an MCP server that connects AI clients to GeoPy-supported Nominatim, ArcGIS, or Bing geocoders. Its main tools geocode addresses, reverse-geocode coordinates, process location lists, and calculate distances between addresses or coordinate pairs in miles or kilometers.

Install it by cloning the repository, entering its directory, and running `uv sync`; for Claude Desktop, the documented command is `fastmcp install geo.py --name "MCP Geo"`. Other clients can run `geo.py` through `uv` using an MCP command configuration.

It supports Nominatim, ArcGIS, and Bing. Set `GEOCODER_PROVIDER` to select a provider; Nominatim is the default. ArcGIS can use username and password variables, while Bing requires `BING_API_KEY`.

Yes, `distance_between_addresses` geocodes two address strings and returns their distance in miles or kilometers. If either address cannot be geocoded, the result is `None`; coordinate inputs can instead use `distance_between_coords`.

It documents a general MCP configuration that runs `geo.py` through `uv`, so a compatible client may use that command-based setup.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Geo AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/webcoderz-mcp-geo?style=directory)](https://allmcps.com/mcp/webcoderz-mcp-geo)
HTML Embed
<a href="https://allmcps.com/mcp/webcoderz-mcp-geo"><img src="https://allmcps.com/api/badge/webcoderz-mcp-geo?style=directory" alt="MCP Geo on AllMCPs" /></a>