mcp-location-server
Provides forward and reverse geocoding using the OpenStreetMap Nominatim API, converting addresses and locations to coordinates and coordinates to addresses.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-location-server
A Model Context Protocol (MCP) server for geocoding, reverse geocoding, and elevation lookup using free, open APIs.
Overview
Forward geocoding: Address/location to lat/long coordinates (via OpenStreetMap Nominatim)
Reverse geocoding: Coordinates to address (via OpenStreetMap Nominatim)
Elevation lookup: Coordinates to elevation in meters/feet (via Open Topo Data)
Free & open: No API key required
Rate limited: Respects 1 req/sec API usage policies
Related MCP server: opencage-geocoding-mcp
Requirements
Python 3.12+
uv (recommended)
Installation
git clone https://github.com/jewzaam/mcp-location-server.git
cd mcp-location-serverInstall globally using either uv or pipx — both create an isolated venv so other pip operations can't break the install:
make install # uses uv tool install
make pipx # uses pipx installFor development (includes test/lint tooling):
make install-devConfigure Claude Code
User-scoped (available in all projects):
claude mcp add --scope user location -- mcp-location-serverAlternatively, use uvx so Claude Code resolves the tool fresh from the local source each invocation (most resilient to breakage):
claude mcp add --scope user location -- uvx --from /path/to/mcp-location-server mcp-location-serverProject-scoped (stored in .mcp.json in the project root):
claude mcp add --scope project location -- mcp-location-serverVerify the server is registered:
claude mcp listConfigure Cursor IDE
Add to your Cursor MCP configuration (~/.cursor/mcp.json on Linux):
{
"mcpServers": {
"location": {
"command": "/absolute/path/to/mcp-location-server/.venv/bin/python",
"args": ["-m", "mcp_location_server.server"],
"cwd": "/absolute/path/to/mcp-location-server"
}
}
}Or use the automated setup:
make install-cursorAfter configuration, restart Cursor and enable the "location" server in Settings > MCP.
Usage
Available Tools
geocode
Convert address/location to coordinates:
"Find coordinates for Eiffel Tower"
"Get lat/long for 123 Main St, Boston, MA"
"Find up to 5 locations named 'Springfield'"reverse_geocode
Convert coordinates to address:
"What's at coordinates 40.7128, -74.0060?"
"What address is at coordinates 48.8584, 2.2945?"get_elevation
Get elevation data for coordinates:
"What's the elevation at 35.6894, -78.7767?"
"Get elevation for Mount Washington's coordinates"Development
make check # Run format, lint, typecheck, test, coverage
make test # Run tests only
make coverage # Run tests with 80% coverage threshold
make format # Format code with black
make lint # Lint with flake8
make typecheck # Type check with mypy
make help # Show all available targetsLimitations
Rate limiting: 1 request/second maximum per API
Internet required: Uses external Nominatim and Open Topo Data APIs
Coordinate precision: APIs return nearest addressable location, not exact input coordinates
Attribution
Nominatim API: nominatim.org — OpenStreetMap data (c) OpenStreetMap contributors
Open Topo Data: opentopodata.org — elevation datasets (SRTM, ASTER, NED)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data.
Address to coordinates and back, postal codes, worldwide (OpenStreetMap). Free, no key.
Geocoding, reverse geocoding, IP, timezone, elevation and postal code lookups.
171Geocode addresses, autocomplete searches and reverse geocode coordinates on open data. Free tier.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides global geocoding capabilities to convert city names and addresses into latitude/longitude coordinates using the free OpenStreetMap Nominatim API.118 PyPI6MIT
- AlicenseNot gradedqualityBmaintenanceProvides forward and reverse geocoding using the OpenCage API, enabling conversion between addresses and geographic coordinates.19MIT
- AlicenseNot gradedqualityCmaintenanceEnables geocoding and reverse geocoding from OpenStreetMap data using the free Nominatim API.316 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables forward and reverse geocoding using the OpenCage API, allowing conversion between addresses and coordinates.70 npmMIT