Converts an address or place name to latitude, longitude, and formatted address
Converts latitude and longitude coordinates to the nearest address
Returns detailed geocoding information including bounding boxes and address components
Geocodes a list of addresses, returning coordinates and formatted addresses for each
Converts multiple coordinate pairs to their corresponding addresses
Calculates the distance between two addresses in miles or kilometers
Calculates the distance between two coordinate pairs in miles or kilometers
GeoPy Geocoding provides a comprehensive set of geocoding tools for Large Language Models. It leverages the GeoPy library to convert between addresses and geographic coordinates, calculate distances between locations, and retrieve detailed location information. With support for multiple geocoding providers including Nominatim (OpenStreetMap), ArcGIS, and Bing Maps, this MCP enables models to work with geographic data in a flexible and powerful way. The server includes built-in safety features like rate limiting to prevent excessive requests to geocoding services.
fastmcp install geo.py --name "MCP Geo"
git clone https://github.com/webcoderz/MCP-Geo.git
cd MCP-Geo
uv sync
{
"mcp-geo": {
"command": "uv",
"args": [
"--directory",
"PATH_TO_MCP_GEO_DIRECTORY",
"run",
"geo.py"
],
"env": {
"NOMINATIM_URL": "${NOMINATIM_URL}",
"SCHEME": "http",
"GEOCODER_PROVIDER": "nominatim"
}
}
}
Replace PATH_TO_MCP_GEO_DIRECTORY
with the actual path to the MCP-Geo directory on your system.
The server can be configured using environment variables:
| Variable | Description | Default |
|----------|-------------|---------|
| GEOCODER_PROVIDER
| Geocoding service provider ("nominatim", "arcgis", or "bing") | nominatim |
| NOMINATIM_URL
| Domain for Nominatim | nominatim.openstreetmap.org |
| SCHEME
| Protocol (http/https) | http |
| ARC_USERNAME
| ArcGIS username (required for ArcGIS) | None |
| ARC_PASSWORD
| ArcGIS password (required for ArcGIS) | None |
| BING_API_KEY
| Bing Maps API key (required for Bing) | None |
These variables can be set in your shell environment or in the MCP settings file.
I need to find the latitude and longitude of the Empire State Building in New York.
What's the address at coordinates 40.7128, -74.0060?
How far is it from Los Angeles to San Francisco in miles?
By default, the server uses Nominatim (OpenStreetMap) as the geocoding provider. To use a different provider:
GEOCODER_PROVIDER
environment variable to "arcgis" or "bing"ARC_USERNAME
and ARC_PASSWORD
BING_API_KEY