geospatial-mcp
The server offers 22 keyless geospatial MCP tools covering coordinates, geometry, routing, terrain, weather, RF, and data conversion.
Convert and validate coordinates across decimal, DMS, USNG/MGRS, geohash, H3, Plus Code, UTM, quadkey, and GeoJSON.
Transform coordinates between CRS/EPSG systems with accuracy and datum notes.
Measure geodesic distance, bearing, area, perimeter, centroid, and bounding box.
Manipulate geometries: buffer, simplify, hulls, centroid, repair, bbox.
Overlay geometries: intersection, union, difference, symmetric difference.
Relate geometries: point-in-polygon, overlap, containment, adjacency, nearest distance.
Geocode places/addresses, reverse geocode coordinates, and search POIs by category.
Route: turn-by-turn directions, isochrones, and origin-destination matrices.
Terrain: point elevation and elevation profiles along a path.
Weather, sun/moon/twilight/golden hour/shadow, time zone and DST info.
Convert geospatial data: GeoJSON, WKT, WKB, KML, GPX, CSV, polyline.
RF: link budget/cell radius and nearby cell tower lookup.
Discover enabled toolsets and how to enable more; many tools work offline.
Uses OpenStreetMap-derived data for geocoding, place search, and routing capabilities.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@geospatial-mcp How long to drive from the depot to the customer?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-geospatial
An MCP server for geospatial work: coordinates, geocoding, routing, terrain, weather and radio links. 22 tools, no API key required for any of them.
Built for logistics, telecom, agriculture, insurance, real estate, utilities, emergency response, surveying and mapping — anywhere a question starts with where.
The package and command are mcp-geospatial. The server is not on PyPI under
either name: install it from this repository, as below. The PyPI package
named geospatial-mcp is an unrelated project; installing it will not give
you this server.
"Where can I live within a 30-minute drive of work?" route_isochrone
"Where's the nearest depot by road to each of today's jobs?" route_matrix
"How long to drive from the depot to the customer?" route_directions
"How steep is this section of the trail?" terrain_profile
"How far will a 1800 MHz cell reach over suburban ground?" rf_link_budget
"What's the area of this field in hectares?" geom_measure
"Convert this grid reference the survey crew gave me" coord_convertInstall
Nothing to clone by hand. Every client below runs the server with uvx,
straight from this repository. To install it into an environment of your own
instead, use pip install git+https://github.com/ystoneman/geospatial-mcp.
claude mcp add geospatial -- uvx --from git+https://github.com/ystoneman/geospatial-mcp mcp-geospatial{
"mcpServers": {
"geospatial": {
"command": "uvx",
"args": ["--from", "git+https://github.com/ystoneman/geospatial-mcp", "mcp-geospatial"]
}
}
}[mcp_servers.geospatial]
command = "uvx"
args = ["--from", "git+https://github.com/ystoneman/geospatial-mcp", "mcp-geospatial"]{
"mcpServers": {
"geospatial": {
"command": "uvx",
"args": ["--from", "git+https://github.com/ystoneman/geospatial-mcp", "mcp-geospatial"]
}
}
}{
"servers": {
"geospatial": {
"type": "stdio",
"command": "uvx",
"args": ["--from", "git+https://github.com/ystoneman/geospatial-mcp", "mcp-geospatial"]
}
}
}{
"context_servers": {
"geospatial": {
"command": { "path": "uvx", "args": ["--from", "git+https://github.com/ystoneman/geospatial-mcp", "mcp-geospatial"] }
}
}
}docker build -t mcp-geospatial https://github.com/ystoneman/geospatial-mcp.git
docker run -p 8000:8000 mcp-geospatial --transport httpThe HTTP transport binds 127.0.0.1 unless PORT is set by the platform. Put
it behind a reverse proxy with authentication before exposing it publicly.
Related MCP server: mapsi-mcp
Tools
Every tool taking a location accepts any of these, interchangeably:
48.8584, 2.2945 decimal degrees (canonical, latitude first)
48°51'30"N 2°17'40"E degrees / minutes / seconds
31UDQ4825211954 USNG / MGRS grid reference
u09tunquc geohash
geohash:u09tunquc geohash, marked so it is never taken for a place name
891fb46741bffff H3 cell
8FW4V75V+9R6 Plus Code
Eiffel Tower, Paris a place name, geocoded for youcore — 20 tools, on by default
Tool | What it answers | Offline |
| This position in every notation at once | ● |
| Is this a valid coordinate, and how precise? | ● |
| Between EPSG systems, with an accuracy figure | ● |
| Distance, bearing, area, perimeter, centroid | ● |
| Buffer, simplify, hull, centroid, repair | ● |
| Intersection, union, difference | ● |
| Point-in-polygon, overlap, nearest distance | ● |
| Address or place name → coordinates | ○ |
| Coordinates → address | ○ |
| Fuel, hospitals, chargers, warehouses nearby | ○ |
| Driving, cycling, walking, HGV directions | ○ |
| Everywhere reachable in N minutes | ○ |
| Travel times between many origins and destinations | ○ |
| Height above sea level | ○ |
| Elevation along a path, ascent and descent | ○ |
| Current conditions and forecast | ○ |
| Sunrise, twilight, golden hour, shadow length | ● |
| Time zone, local time, next DST change | ● |
| GeoJSON ⇄ WKT ⇄ KML ⇄ GPX ⇄ CSV ⇄ polyline | ● |
| What is enabled, and how to enable more | ● |
rf — 2 tools, on by default
Tool | What it answers | Offline |
| Path-loss budget and cell radius | ● |
| Known cell towers nearby | ○ |
analysis — 2 tools, opt-in (the stats extra)
Tool | What it answers | Offline |
| Where do these points concentrate? | ● |
| Bin points into H3 or geohash cells | ● |
● runs with no network at all. ○ calls a free public API.
Link budgets are an everyday tool for mobile operators, wireless ISPs, utilities running SCADA telemetry and IoT fleets: how far a radio reaches for a given power, frequency and environment.
This is one server among many. If you are working out which to use, Sparkgeo's geo-mcp-servers is a curated, machine-checked index of the geospatial MCP field, kept current and marked for liveness — a better place to compare coverage than any claim this README could make about itself. docs/REFERENCES.md lists the servers, standards and research this project leans on or points at.
Selecting toolsets
The examples call the command directly. If it is not installed, prefix it
with uvx --from git+https://github.com/ystoneman/geospatial-mcp, as in the
client configs above. all also needs the stats extra:
uvx --from 'mcp-geospatial[stats] @ git+https://github.com/ystoneman/geospatial-mcp' mcp-geospatial --toolsets all.
mcp-geospatial --toolsets core # 20 tools, drops the RF set
mcp-geospatial --toolsets all # adds the analysis toolset (needs [stats])
GEO_TOOLSETS=offline mcp-geospatial # 13 tools that never touch the network
mcp-geospatial --list-tools # print the catalogue and exitoffline is for field use with no signal. It keeps only tools that make no
network call under any input, so it excludes geom_measure and the place
tools — those accept a place name, which means they may geocode.
Toolset | Tools | Needs |
| 20 | nothing |
| 2 | nothing |
| 2 | the |
Configuration
No API key is needed for anything. Every keyed provider has a keyless default.
Variable | Purpose |
|
|
| Response cache location (default |
|
|
| Override the User-Agent sent to providers |
| Append one JSON line per tool call to this file (off by default; records arguments, so it holds locations) |
|
|
| Point at self-hosted instances |
| Optional routing upgrade over the keyless default |
| Optional; larger cell-tower database |
| Required for commercial weather use (see below) |
Data sources and licensing
Results carry the attribution their licence requires in meta.attribution —
pass it through when you display them. Two obligations worth knowing before you
build on this: OpenStreetMap-derived data (geocoding, places, routing) is
ODbL 1.0 and requires attribution, and Open-Meteo's free tier is
non-commercial, so commercial deployments need OPEN_METEO_API_KEY or a
self-hosted instance.
The public instances are free and shared. This server caches aggressively and
rate-limits per host to stay inside their usage policies; for heavy use,
self-host and set the corresponding *_URL. See
Sources and credits for the complete list.
What it gets right that is easy to get wrong
Distances and areas are geodesic. Karney's algorithm on the WGS84 ellipsoid, accurate to millimetres at any distance. Not
111.32 km/degree, which is 0.25% out at 60° latitude and worse further north.Buffers are circles on the ground. Buffering in degrees produces an ellipse stretched by 1/cos(latitude) — 2× wrong at 60°, 5× at 78°. Every buffer here is projected to an azimuthal equidistant plane first.
Grid references truncate, they never round. A reference names the square a position falls in, so dropping digits must move the point to the coarser square's corner. Rounding would hand back a neighbouring square — a kilometre away at four digits, and confidently wrong.
DEM gaps stay gaps. A missing elevation is reported as
null, never substituted with zero. Substituting sea level flattens a ridge into an entirely plausible plain, and every statistic downstream inherits it.Place names are never silently guessed. "Springfield" matches cities of near-equal prominence 1,500 km apart, so a tool asked about it lists them and asks, rather than quietly answering for Illinois. When a name is clear enough to use,
meta.notessays exactly which place it was taken to mean, and names any others that share it.A place name is not mistaken for a code. "Bergen", "Denver" and "Sydney" are spelt entirely from the geohash alphabet, and decoding them lands in Alaska, the Atlantic and Turkey. A bare token is decoded as a geohash at once only when it is written like one, in lowercase with a digit among the letters. Anything else that could be a geohash is geocoded first, with a note in
meta.notesgiving the geohash reading, and is read as a geohash only if no place has the name. Writegeohash:gcpvjto skip the lookup. A 4-character geohash such assw19could be a postcode district, so it is decoded with a note saying so.Errors are errors. Failures raise, so the MCP response is marked
isError. A tool that returns{"status": "error"}is reported to the model as a success, and it will proceed on invented data.Empirical models report their limits. COST231-Hata outside 1500–2000 MHz still returns a number;
meta.notestells you it is out of range.CRS transforms admit their accuracy. Every transform names the operation PROJ used for that point and its published accuracy. When a better operation needs a grid file that is not installed, the response names the file; when no published transformation exists at all, it says the datum shift was ignored.
Development
git clone https://github.com/ystoneman/geospatial-mcp && cd geospatial-mcp
uv sync --all-extras
make check # lint, types, tests — exactly what CI runs
make evals # tool-selection eval suite
make evals-network # the same, plus the cases that call live APIsSee AGENTS.md for the layout and conventions, and CONTRIBUTING.md to add a tool.
Sources and credits
Almost none of the geospatial computation here is ours. This package is an integration layer: it chooses which established libraries, published algorithms and public data services to expose to a language model, wires them together, and tries hard to get the units, datums and error handling right. The interesting work was done by the projects below, and this section exists so you can see exactly which ones you are depending on.
To put a number on it — of the Python that ships when you install this package,
1.0% is ours and 99.0% is dependencies (6,912 lines against 654,791), inside
a 150 MB installation of which 109 MB is compiled native libraries and 9 MB is
the EPSG registry. Counted by installing the package with no extras into an
empty environment and measuring site-packages.
Runtime dependencies
Everything below is permissively licensed. Licences were read from each
package's own LICENSE file, not from its classifiers — the two disagree more
often than you would expect.
Package | Version | Licence | What it provides here |
2.0.0 | MIT | The Model Context Protocol SDK: tool registration, transports, schemas | |
2.12.5 | MIT | Tool input and output schemas, response validation | |
2.4.2 | BSD-3-Clause and others | Terrain arrays, profile statistics, hillshade kernels | |
2.1.2 | BSD-3-Clause | All polygon geometry — buffer, union, hulls, predicates | |
3.7.2 | MIT | CRS transforms and every geodesic distance, bearing and area | |
26.8.18 | MIT | Rhumb lines, great-circle intersections, cross-track distance, USNG/MGRS grid references | |
4.5.0 | Apache-2.0 | Uber's hexagonal hierarchical spatial index | |
1.6.0 | BSD-3-Clause | Geohash encoding and decoding | |
2022.1.3 | Apache-2.0 | Open Location Code (Plus Codes) | |
1.2.1 | BSD-3-Clause | XYZ tile and quadkey arithmetic | |
3.2 | Apache-2.0 | Sun and moon position, twilight, golden hour | |
1.3.3 | MIT | Offline timezone lookup from coordinates | |
2.1.1 | MIT | Typed GeoJSON models | |
2.0.4 | MIT | Google encoded polyline format | |
3.1.6 | MIT | Shapefile reading and writing without GDAL |
Optional extras: pillow (MIT-CMU),
sgp4 and
skyfield (MIT),
scikit-learn, esda and
libpysal (BSD-3-Clause),
fast-tsp (MIT),
staticmap (Apache-2.0),
rasterio and
rio-tiler (BSD),
pystac-client (Apache-2.0),
morecantile (MIT).
Native libraries bundled inside those wheels
Library | Licence | Reached through |
LGPL-2.1-or-later |
| |
MIT |
|
GEOS is the one copyleft component in the tree. It is unavoidable — it sits under Shapely, GeoPandas, OGR, PostGIS and DuckDB-spatial alike, and there is no permissive replacement with equivalent overlay correctness.
Live data services
None require an API key. Results carry the attribution their licence demands in
meta.attribution; pass it through when you display them.
Service | Provides | Data licence |
Geocoding, reverse geocoding | OpenStreetMap, ODbL 1.0 | |
Points of interest by category | OpenStreetMap, ODbL 1.0 | |
Routing, isochrones, matrices | OpenStreetMap, ODbL 1.0 | |
Weather, elevation, air quality | CC-BY 4.0 — free tier is non-commercial | |
Copernicus GLO-90 DEM | Elevation, via Open-Meteo | © DLR e.V. 2010–2014, © Airbus Defence and Space GmbH 2014–2018 |
Cell towers (keyless default) | Public domain (CC0) | |
Cell towers (optional, keyed) | CC-BY-SA 4.0 — share-alike on derived databases |
Algorithms, and where they come from
Every computation in this package traces to a library, a published formula or a public service. None of it was invented here, and the literature is cited so you can check the implementation against the source.
Capability | Implemented by | Source |
Geodesic distance, bearing, area | PROJ, via | Karney, C. F. F. (2013), "Algorithms for geodesics", Journal of Geodesy 87(1), 43–55 |
Datum and projection transforms | PROJ | The EPSG Geodetic Parameter Dataset |
USNG / MGRS grid references |
| FGDC-STD-011-2001, the United States National Grid; the same squares are MGRS outside the US |
Polygon overlay, buffering, hulls | GEOS, via | The OGC Simple Features specification |
Line simplification | GEOS | Douglas, D. H. & Peucker, T. K. (1973), The Canadian Cartographer 10(2), 112–122 |
Hexagonal spatial index |
| Uber H3 |
Geohash |
| Niemeyer, G. (2008) |
Plus Codes |
| Google Open Location Code specification |
Free-space path loss | this package | ITU-R P.525, "Calculation of free-space attenuation" |
Okumura-Hata path loss | this package | Hata, M. (1980), IEEE Trans. Veh. Technol. 29(3), 317–325; after Okumura et al. (1968) |
COST 231-Hata path loss | this package | COST Action 231 final report (1999), ch. 4 |
Two-ray ground reflection | this package | Standard textbook propagation model |
Slope, aspect, hillshade | this package | Horn, B. K. P. (1981), "Hill shading and the reflectance map", Proc. IEEE 69(1), 14–47 |
Terrarium DEM decode | this package | Mapzen Terrain Tiles published encoding |
Sun and moon position |
| Standard astronomical almanac formulae |
DBSCAN clustering |
| Ester, M. et al. (1996), KDD-96 |
HDBSCAN clustering |
| Campello, R. J. G. B. et al. (2013), PAKDD |
"Implemented by: this package" means the formula was written out from the cited
publication in geo/rf.py or
geo/terrain.py, because no permissively
licensed Python library implements it. The mathematics is not ours; only the
transcription is.
What this package actually adds
Given the above, it is worth being plain about what is left:
The composition — which capabilities belong in one server, and what the tool surface should look like for a model rather than a human.
Correct units and datums at the seams. Geodesic buffering via an azimuthal equidistant reprojection, geodesic path sampling, geodesic area — the places where naive degree arithmetic silently gives wrong answers.
A shared HTTP layer with per-host rate limiting, a disk cache, bounded retries and mirror failover, so the free public services are used within their stated policies.
Error design — tools raise rather than returning an error payload, and every message names the input, the problem and a valid example.
Attribution plumbing, so licence obligations travel with the data.
Tests and evals — 293 tests and a 31-case tool-selection eval library.
Full licence texts and obligations are in THIRD_PARTY_NOTICES.md. If you spot a missing or incorrect attribution, please open an issue — that is a bug.
Licence
MIT — see LICENSE.
Available Tools
22 toolscoord_convertARead-onlyIdempotent
Convert a position between every common coordinate notation at once.
Detects the input format automatically and returns decimal degrees, DMS, USNG/MGRS, UTM, geohash, H3, Plus Code, quadkey and GeoJSON together, so one call answers any "what is this in X?" question.
Use this for format conversion. For a different datum or projection (British National Grid, State Plane, Web Mercator) use coord_transform_crs. To check whether a string is a valid coordinate without converting it, use coord_describe.
Inputs: location (required), tile_zoom, grid_digits, h3_resolution, +1 more. Returns: meta, input, formats, detected_format, +1 more
coord_describeARead-onlyIdempotent
Check whether a string is a valid coordinate and report its precision.
Identifies which notation it is, normalises it, and states the ground accuracy the notation implies -- a grid reference with four digits names a 1 km square, not a point, and a 5-character geohash is about 5 km wide. Returns is_valid=false with an explanation rather than failing, so it is safe to use for validating user input before acting on it.
Inputs: value (required). Returns: meta, input, problem, is_valid, +5 more
coord_transform_crsARead-onlyIdempotent
Transform coordinates between any two coordinate reference systems.
For national grids (EPSG:27700 British National Grid, EPSG:2154 Lambert-93, State Plane), Web Mercator (EPSG:3857) and any other EPSG-registered CRS.
Reports the transformation PROJ used for this point and its published accuracy. ballpark=true means no published transformation links the two datums, so the shift was ignored: expect tens to hundreds of metres of error. When a more accurate transformation needs a grid file that is not installed, missing_grids names it.
Inputs and outputs are always x/easting first, y/northing second, regardless of the axis order the CRS authority declares.
Inputs: x (required), y (required), source_crs, target_crs. Returns: x, y, meta, source, +7 more
data_convertARead-onlyIdempotent
Convert geospatial data between GeoJSON, WKT, WKB, KML, GPX, CSV and polyline.
Detects the input format automatically and validates the result, reporting specific problems (self-intersections, out-of-range coordinates, the removed RFC 7946 'crs' member) rather than a bare pass/fail.
Handles the everyday format wrangling of real work: a customer sends KML, the routing engine wants an encoded polyline, the warehouse system exports CSV, the web map needs GeoJSON. Runs entirely offline.
Inputs: data (required), to_format, from_format. Returns: meta, output, validation, input_format, +2 more
env_weatherARead-onlyIdempotent
Get current weather and a multi-day forecast for a location.
Returns temperature, precipitation, wind, cloud cover, humidity and visibility from Open-Meteo -- no API key needed.
Useful for delivery and field-work scheduling, construction and outdoor event planning, agricultural spray windows, and travel decisions.
Note the free Open-Meteo tier is licensed for non-commercial use; set OPEN_METEO_API_KEY and OPEN_METEO_BASE_URL for commercial deployments.
Inputs: location (required), days, include_hourly. Returns: meta, daily, current, latitude, +3 more
geo_capabilitiesARead-onlyIdempotent
List which geospatial toolsets are enabled and what else is available.
Call this when a capability seems to be missing, before telling the user something is impossible -- the tool they need may simply be in a toolset that is switched off, and this returns the exact command to enable it.
Also reports which optional API keys are configured and where the response cache lives.
Inputs: no named parameters. Returns: meta, cache, version, api_keys, +3 more
geom_measureARead-onlyIdempotent
Measure geodesic distance and bearing between points, or a geometry's area.
Distances use Karney's algorithm on the WGS84 ellipsoid, accurate to millimetres at any distance including near-antipodal pairs. Areas are computed on the ellipsoid, not in degree space.
This is straight-line ("as the crow flies") distance. For travel distance and time along real roads, use route_directions instead -- road distance is typically 20-40% longer.
Inputs: origin (required), geojson, destination. Returns: meta, compass, geometry, midpoint, +6 more
geom_overlayARead-onlyIdempotent
Combine two geometries with a set operation, reporting the resulting area.
The workhorse of overlay analysis: how much of this delivery zone falls inside that flood extent (intersection), what is the combined footprint of these service areas (union), which part of a territory is not yet covered (difference).
Invalid input geometries are repaired automatically before the operation, since self-intersecting polygons are common in real data.
Inputs: geojson_a (required), geojson_b (required), operation. Returns: meta, geometry, measurements
geom_relateARead-onlyIdempotent
Test the spatial relationship between two geometries.
Answers point-in-polygon, overlap, containment and adjacency in one call, plus the shortest geodesic distance between them and the nearest point on each. Use this for geofence checks ("is this vehicle inside the zone?"), territory assignment and proximity screening.
Inputs: geojson_a (required), geojson_b (required). Returns: meta, distance_m, relationships, nearest_points
geom_transformARead-onlyIdempotent
Reshape a geometry: buffer, simplify, hull, centroid, repair or bounding box.
All distances are true ground metres. Buffering projects to an azimuthal equidistant plane centred on the geometry, so a 5 km buffer is 5 km on the ground at every latitude -- not an ellipse stretched by longitude convergence, which is what buffering in degrees produces.
concave_hull traces the real outline of a scattered point set (a service territory, a fire perimeter); convex_hull bridges across genuine gaps.
Inputs: geojson (required), operation (required), ratio, distance_m. Returns: meta, geometry, measurements
place_geocodeARead-onlyIdempotent
Find the coordinates of an address, place name or landmark.
Uses OpenStreetMap: Nominatim for exact structured lookups, or Photon when fuzzy=true for misspelled or partial input (Nominatim's usage policy forbids autocomplete-style queries, so route those here).
To go the other way -- coordinates to an address -- use place_reverse. To find categories of thing nearby (fuel, hospitals, hotels) rather than one named place, use place_search.
Inputs: query (required), fuzzy, limit, country_codes. Returns: meta, query, matches, provider
place_reverseARead-onlyIdempotent
Find the address or place name at a set of coordinates.
The inverse of place_geocode. Useful for labelling GPS traces, describing a delivery destination, or identifying the administrative area a position falls in (lower the zoom to get city, region or country instead of a street address).
Inputs: location (required), zoom. Returns: meta, type, address, category, +3 more
place_searchARead-onlyIdempotent
Find points of interest of a given category near a location.
Searches OpenStreetMap for facilities by type -- fuel stations along a route, hospitals near an incident, EV chargers in a city, warehouses in a catchment, communication towers on a ridge. Results are sorted by distance and include the bearing from the search centre.
For one specific named place, use place_geocode instead.
Inputs: category (required), location (required), limit, radius_m. Returns: meta, count, centre, places, +2 more
rf_link_budgetARead-onlyIdempotent
Calculate maximum allowable path loss and the resulting cell radius.
Works out EIRP, the loss budget available to the link, and how far that reaches under the chosen propagation model. Use it to size cell coverage, compare frequency bands, or check whether a proposed link closes.
Reports a warning when parameters fall outside the model's published validity range -- an empirical model used out of range still returns a confident number, and nothing else will catch that.
This is a statistical model over an idealised environment, not a specific path: it answers "how far does this radio reach here?", not "does this exact link clear that ridge?". For the ground between two points, use terrain_profile. For what is already transmitting nearby, use rf_towers.
Inputs: model, losses_db, environment, rx_gain_dbi, +7 more. Returns: meta, model, inputs, eirp_dbm, +7 more
rf_towersARead-onlyIdempotent
Find known cell towers near a location.
Returns crowdsourced tower records with radio technology (GSM/UMTS/LTE/NR), operator MCC-MNC and approximate position. Useful for coverage benchmarking, IoT and fixed-wireless site qualification, and understanding why signal is poor at a specific address.
Uses OpenCelliD when OPENCELLID_API_KEY is set, otherwise the keyless BeaconDB. Coverage is crowdsourced and sparse outside dense urban areas -- an empty result means no contributor has mapped the area, not that no towers exist.
Inputs: location (required), radius_m. Returns: meta, count, towers, latitude, +3 more
route_directionsARead-onlyIdempotent
Get driving, cycling or walking directions along real roads.
Returns distance, travel time and turn-by-turn instructions using OpenStreetMap road data via Valhalla -- no API key needed.
Use this for anything involving actual travel: delivery and field-service scheduling, ambulance response-time modelling, freight planning with vehicle restrictions, commute estimation, hiking and cycling routes.
For straight-line distance instead, use geom_measure -- it is much cheaper and needs no network. To find everywhere reachable within a time budget rather than the path to one place, use route_isochrone. For travel times between many places at once, use route_matrix rather than calling this repeatedly.
Inputs: origin (required), destination (required), via, detail, +2 more. Returns: end, meta, start, steps, +9 more
route_isochroneARead-onlyIdempotent
Map everywhere reachable within a travel-time budget.
Returns drive-time (or walk-time, cycle-time) polygons. This is the tool for catchment and accessibility questions: which customers are within 30 minutes of a depot, what a store's 15-minute trade area looks like, how many homes a fire station covers in 8 minutes, where to site a warehouse.
direction='to' computes the reverse catchment, which is the correct choice when siting a facility people travel to.
Returns polygons that can be passed straight to geom_relate or geom_overlay to count what falls inside them.
For the path to one specific destination, use route_directions instead.
Inputs: location (required), minutes, profile, direction. Returns: meta, centre, profile, contours, +1 more
route_matrixARead-onlyIdempotent
Get road travel times and distances between many origins and destinations at once.
One call answers "which depot is closest by road to each customer", "which crew can reach each job fastest", or ranks candidate sites by access. Returns a duration and distance for every origin-destination pair, indexed [origin][destination], plus the nearest destination for each origin. Unreachable pairs are null.
For turn-by-turn directions on one trip, use route_directions. For everywhere reachable within a time budget, use route_isochrone. For straight-line distance, use geom_measure.
Inputs: origins (required), profile, destinations. Returns: meta, nearest, origins, profile, +3 more
sun_moonARead-onlyIdempotent
Get sunrise, sunset, twilight, golden hour and moon phase for a location.
Computed offline from astronomical formulas -- no network needed.
Includes the shadow-length ratio, which is what construction shadow studies, right-to-light assessments and solar-panel shading analysis actually need: a 10 m object at 30 degrees solar elevation casts a 17.3 m shadow. Also used for photography scheduling, crop modelling, delivery windows before dusk, and retail daylight-hours analysis.
Inside the polar circles, events that do not occur are returned as null with an explanation rather than as an error.
Inputs: location (required), on_date. Returns: sun, date, meta, moon, +4 more
terrain_elevationARead-onlyIdempotent
Get ground elevation above sea level at a location.
Returns height in metres and feet from the Copernicus GLO-90 global DEM (90 m resolution), relative to the EGM2008 geoid -- that is, orthometric height above mean sea level, which is what "elevation" normally means. GNSS receivers report ellipsoidal height, which differs by tens of metres.
For elevation along a path rather than at one point, use terrain_profile -- it fetches up to 100 samples in a single request.
Inputs: location (required). Returns: meta, dataset, latitude, longitude, +3 more
terrain_profileARead-onlyIdempotent
Get the terrain elevation profile along a path between two points.
Samples the ground along a true geodesic and returns the full profile plus statistics: minimum, maximum, relief, total ascent and descent. All samples come from one batched request rather than one call per point.
Use this for cycling and hiking route difficulty, pipeline and cable routing, drainage assessment, or sizing earthworks. For the elevation at a single point, or at a scattered set of them, use terrain_elevation -- this tool always samples the straight line between two ends.
Inputs: origin (required), destination (required), samples. Returns: meta, profile, samples, statistics, +1 more
time_at_locationARead-onlyIdempotent
Get the time zone and current local time at a location.
Returns the IANA zone name, current local time, UTC offset, whether daylight saving is active, and when the next DST transition happens. Computed offline from a bundled boundary dataset.
Useful for scheduling across sites, interpreting timestamps in GPS traces, and working out delivery or support-window overlaps.
Inputs: location (required). Returns: info, meta, latitude, longitude
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Each tool has a clearly distinct purpose: coordinate validation/conversion/CRS transformation, geometry operations, place lookup, routing modes, terrain, weather, time, data conversion, and RF analysis are all separated. Descriptions explicitly cross-reference similar tools (e.g., coord_convert vs coord_transform_crs, geom_measure vs route_directions), so misselection is unlikely.
Tool names follow a predictable lower_snake_case prefix-based pattern (coord_, geom_, place_, route_, terrain_, rf_) and are readable. However, not all follow a single verb_noun grammar: some are noun_noun (route_directions, env_weather) or noun_prep_noun (time_at_location), making the convention consistent but not perfectly uniform.
At 22 tools, the count sits above the typical 3-15 range and feels slightly heavy, but the broad geospatial domain justifies the number. Each tool covers a distinct capability with no obvious redundancy, and the prefix grouping keeps the set navigable.
The tool surface covers core geospatial workflows well: coordinate/CRS handling, geometry analysis, geocoding/search, routing, terrain, weather, timezone, data conversion, and RF. Minor gaps such as batch geocoding, historical weather, or route optimization exist, but most are workarounds and tools compose cleanly (e.g., isochrones into geom_overlay/relate).
Related MCP Connectors
Pay-per-call GIS tools for AI agents: coordinates, measurement, reprojection, geodata conversion.
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Geocoding, reverse geocoding, IP, timezone, elevation and postal code lookups.
171Address to coordinates and back, postal codes, worldwide (OpenStreetMap). Free, no key.
Related MCP Servers
- AlicenseBqualityBmaintenanceProvides 14 comprehensive tools for geocoding, navigation, and visual mapping using Google Maps APIs. It also offers detailed environmental data including weather forecasts, air quality indices, and solar irradiance for location-based analysis and trip planning.1410MIT
- AlicenseAqualityDmaintenanceGeospatial API tools for AI agents — geocoding, reverse geocoding, routing, isochrone, distance matrix, static maps, H3 hexagons, elevation, GPS map-matching, point-in-polygon, address normalisation, timezone lookup, and batch geocoding. Built on OpenStreetMap infrastructure. Cost-effective alternative to Google Maps API.18MIT
- AlicenseNot gradedqualityDmaintenanceProvides geolocation, routing, and navigation tools including geocoding, place search, distance matrix, and turn-by-turn directions via NextBillion.ai APIs.6 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides 15 geospatial utility tools for AI agents, covering coordinate transformation, spatial data validation, elevation/terrain, viewshed analysis, and drone flight planning.1MIT