Geocoding MCP server with GeoPY! - Python 3.6+ Install all required dependencies: - fastmcp: Framework for building Model Context Protocol servers - geoPy: Python library for accessing and geocoding/reverse geocoding locations. All dependencies are specified in requirements.txt for easy installation. - System Requirements - Dependencies - MCP Tools - Getting Started - Installation Options - Claude
Add this skill
npx mdskills install webcoderz/mcp-geoComprehensive geocoding server with seven well-documented tools and multiple provider support
1# MCP-Geo2Geocoding MCP server with GeoPY!345<a href="https://glama.ai/mcp/servers/ujss4qy5fs">6 <img width="380" height="200" src="https://glama.ai/mcp/servers/ujss4qy5fs/badge?v=1" />7</a>89## 📋 System Requirements101112- Python 3.6+1314## 📦 Dependencies1516Install all required dependencies:1718```bash19# Using uv20uv sync21```2223### Required Packages24- **fastmcp**: Framework for building Model Context Protocol servers25- **geoPy**: Python library for accessing and geocoding/reverse geocoding locations.262728All dependencies are specified in `requirements.txt` for easy installation.2930## 📑 Table of Contents31- [System Requirements](#-system-requirements)32- [Dependencies](#-dependencies)33- [MCP Tools](#%EF%B8%8F-mcp-tools)34- [Getting Started](#-getting-started)35- [Installation Options](#-installation-options)36 - [Claude Desktop](#option-1-install-for-claude-desktop)37 - [Elsewhere](#option-2-install-elsewhere)38- [Safety Features](#-safety-features)39- [Development Documentation](#-development-documentation)40- [Environment Variables](#%EF%B8%8F-environment-variables)4142## 🛠️ MCP Tools4344This MCP server provides the following geocoding tools to Large Language Models (LLMs):4546### geocode_location4748- Takes a user-provided address or place name and returns the best match’s latitude, longitude, and formatted address.4950- Handles errors gracefully and returns None if the location is not found or if an error occurs.5152### reverse_geocode5354- Takes a latitude and longitude and returns the nearest address.55- Useful for finding descriptive information about a point on the map.5657### geocode_with_details5859- Similar to geocode_location but returns additional data such as bounding boxes and more detailed address info, if supported by the geocoder.6061### geocode_multiple_locations6263- Accepts a list of address strings and returns a list of geocoding results (lat/lon/address) for each address.64- Rate-limited to avoid hitting geocoding service quotas.6566### reverse_geocode_multiple_locations6768- Accepts a list of [lat, lon] pairs to perform reverse geocoding for each.69- Returns a list of dictionaries containing lat, lon, and address or None for unsuccessful lookups, also rate-limited.7071### distance_between_addresses7273- Calculate the distance between two addresses or place names.74- accepts 2 addresses and a unit of measurement (miles/kilometer)75- Returns the distance in the specified unit, or None if either address could not be geocoded.7677### distance_between_coords7879- Calculate the distance between two lat/lon pairs.80- accepts 2 pairs of latitude and longitude and a unit of measurement (kilometer/miles)81- Returns the distance in the specified unit.828384## 🚀 Getting Started8586Clone the repository:8788```bash89git clone https://github.com/webcoderz/MCP-Geo.git90cd MCP-Geo91```929394## 📦 Installation Options9596You can install this MCP server in either Claude Desktop or elsewhere. Choose the option that best suits your needs.9798### Option 1: Install for Claude Desktop99100Install using FastMCP:101102```bash103fastmcp install geo.py --name "MCP Geo"104```105106### Option 2: Install elsewhere107108To use this server anywhere else:1091101111. Add the following configuration to the settings file:112113```json114{115 "mcp-geo": {116 "command": "uv",117 "args": [118 "--directory",119 "MCP-Geo",120 "run",121 "geo.py"122 ],123 "env": {124 "NOMINATIM_URL": "${NOMINATIM_URL}",125 "SCHEME": "http",126 "GEOCODER_PROVIDER": "nominatim"127 }128 }129}130```131132133🔒 Safety Features134 • Rate Limiting: Each geocoding call is rate-limited (e.g., 1-second delay) to avoid excessive requests that violate usage limits.135 • Error Handling: Catches geopy exceptions (timeouts, service errors) and returns safe None results instead of crashing.136137📚 Development Documentation138139If you’d like to extend or modify this server:140 • Check geo.py for how each tool is implemented and how geopy is integrated.141 • Adjust environment variables to switch providers (Nominatim, ArcGIS, Bing, etc.).142 • Look at geopy’s official docs for advanced usage like bounding boxes, language settings, or advanced data extraction.143144⚙️ Environment Variables145146Configure the server using environment variables:147148| Variable | Description | Default |149 |----------------------|------------------------------------------|--------------------|150| `GEOCODER_PROVIDER` (optional) | "nominatim", "arcgis", or "bing" | nominatim |151| `NOMINATIM_URL` (optional) | Domain for Nominatim | nominatim.openstreetmap.org |152| `SCHEME` (optional) | http/https | http |153| `ARC_USERNAME` (optional for ArcGIS) | ArcGIS username | None |154| `ARC_PASSWORD` (optional for ArcGIS) | ArcGIS password | None |155| `BING_API_KEY` (required for Bing) | Your Bing Maps key. | None |156157These can be set in your shell or in the MCP settings file for your environment. If more are needed just edit geo.py and add them in to whichever geocoder you are using.158
Full transparency — inspect the skill content before installing.