Skip to main content
Glama

🌍 bbox-mcp-server

FREE Geospatial tools for AI agents, with results you can inspect on a map.

Search OpenStreetMap & Overture Maps Places, convert coordinates, generate H3 grids, calculate routes, and sample terrain elevation. 12 MCP tools, no API keys required to get started. Spatial results include shareable links to the interactive map.

Node.js License: MIT

Try asking

  • “Find cafes near Times Square.”

  • “Find commercial coffee shops near Times Square with confidence scores, websites, and phone numbers.”

  • “Find me pizza near the Colosseum?”

  • “Eiffel Tower to the Louvre: walk or bike? Compare the routes.”

  • “Where are Manhattan’s coffee hotspots?”

  • “EV road trip: find chargers within 5km of Monterey.”

  • “How high up is Denver, really?”

  • “Find the route with the fewest traffic lights from Times Square to Central Park.”

Related MCP server: Magic Lane MCP Server

Quick start

Requires Node.js 18+. Add this to your MCP client configuration:

{
  "mcpServers": {
    "bbox": {
      "command": "npx",
      "args": ["-y", "bbox-mcp-server"]
    }
  }
}

Client

Configuration file

Claude Desktop

claude_desktop_config.json

Cursor

.cursor/mcp.json

Windsurf

~/.codeium/windsurf/mcp_config.json

VS Code (GitHub Copilot)

.vscode/mcp.json - use servers instead of mcpServers

Tools

Tool

What it does

get_bounds

Find, buffer, convert, and project bounding boxes across formats and coordinate systems.

get_h3_indices

Generate H3 cells for a bounding box or exact polygon boundary, including holes.

generate_share_url

Create a shareable map link for a bounding box.

reverse_geocode

Resolve coordinates to an address and OpenStreetMap details.

search_overpass

Find or count OSM features within an area, bounding box, or radius.

search_places

Query Overture Maps Places POIs directly with confidence scores, brands, phones, websites, and addresses.

list_osm_tags

Find OSM tags by category using curated suggestions and Taginfo fallback.

aggregate_overpass_h3

Group OSM query results into H3 hexagons for density analysis.

calculate_route

Get driving, walking, or cycling routes with optional waypoints, alternatives, and geometry.

get_elevation

Get elevation for points, sample terrain grids, analyze 3D line-of-sight with Earth curvature, or compute route elevation/grade profiles using the 90m Copernicus DEM.

spatial_calc

Calculate geometry relations, point containment, WGS84 ellipsoidal distance/bearing, grid subdivisions, and 3D camera frustum footprints offline.

check_traffic_controls

Check traffic signals and stop signs at a junction, in a bbox/radius, or along a route.

Your MCP client discovers each tool's full parameter and output schemas automatically. H3 tools use resolution (0–15).

Inputs and outputs

Tools with a location parameter accept place names. Tools with a bbox parameter auto-detect raw coordinates, single points, z/x/y tiles, WKT, GeoJSON, GeoJSON bboxes, and ogrinfo extents.

Coordinate order: raw bboxes default to lat1,lng1,lat2,lng2; points use lat,lng. Use GeoJSON or WKT to avoid ambiguity, for example {"bbox":[-74.006,40.712,-73.985,40.758]} in west/south/east/north order. coord_order on get_bounds controls formatted output only.

get_bounds supports 3,900+ bundled projections via epsg and nine output formats: csv, wkt, geojson-bbox, geojson-polygon, leaflet, overpass, ogc-bbox, kml, and stac-bbox.

For Overpass searches, supply a selector such as nwr["amenity"="cafe"]; the server adds spatial filters. Set radius_meters for an explicit distance or omit it to search the area. Use list_osm_tags to find selectors by category.

For commercial POIs with confidence scores, brands, phone numbers, and websites, search_places queries Overture Maps GeoParquet files directly via HTTP range requests (no Python runtime required).

Configuration

Place search uses Nominatim with Photon fallback; a Mapbox token is optional. Defaults work without configuration.

Add an env object alongside command and args in your server configuration.

Variable

Purpose / default

OSM_USER_AGENT

Identify your application and contact; defaults to the server name, version, and repository URL.

NOMINATIM_EMAIL

Optional contact email for Nominatim requests.

NOMINATIM_API_URL

Geocoder endpoint; defaults to https://nominatim.openstreetmap.org.

PHOTON_API_URL

Fallback geocoder; defaults to https://photon.komoot.io.

MAPBOX_ACCESS_TOKEN

Optional additional geocoding fallback.

OVERPASS_API_URL

Custom Overpass endpoint(s); defaults rotate across public instances.

OSRM_API_URL

Preferred routing endpoint; defaults use public OSRM services.

ELEVATION_API_URL

Elevation endpoint; defaults to https://api.open-meteo.com/v1/elevation.

MAX_H3_CELLS

H3 generation cap; defaults to 50000.

OVERTURE_STAC_URL

Custom Overture Maps STAC root catalog URL; defaults to https://stac.overturemaps.org/catalog.json.

OVERTURE_STORAGE_PROVIDER

Preferred cloud mirror for Overture GeoParquet files (aws default, or azure).

OVERTURE_MAX_ROW_GROUPS

Row-group scan safety cap per search_places query; defaults to 40.

For developers

Successful calls return readable content and structuredContent matching the tool's output schema, including provenance, complete, and warnings. Spatial tools also return share_url. Errors use isError: true; structured logs go to stderr, keeping stdout reserved for MCP.

To run from source:

npm install
npm test
npm start

npm test builds the server and runs the test suite.

Data and service use

Data © OpenStreetMap contributors and Overture Maps Foundation (CDLA-Permissive-2.0). Public services have usage limits: avoid bulk scraping and frequent polling, and configure your own endpoints for shared or heavy workloads.

  • Nominatim and FOSSGIS routing limit requests to 1 per second. Nominatim also requires application identification, caching, and attribution. The server's per-process queue does not cover traffic across multiple instances.

  • Photon's public endpoint is a demo service without availability guarantees.

  • Open-Meteo's free API is for non-commercial use. Elevation grids return sample statistics, not guaranteed terrain-wide extrema or slopes.

MIT License

Available Tools

12 tools
aggregate_overpass_h3A
Read-onlyIdempotent

Executes an Overpass query and bins the results into H3 hexagons at a specified resolution to analyze spatial density. Plots the top density hotspots on the shareable verification map.

Inputs: query (required), resolution (required), bbox, location, +3 more. Returns: complete, warnings, share_url, hex_counts, +9 more

calculate_routeA
Read-onlyIdempotent

Calculate real-world travel distance, duration, turn-by-turn summary (with maneuver coordinates), GeoJSON route geometry, and route bounding box between two locations or coordinate pairs using OpenStreetMap routing (FOSSGIS / OSRM, or configurable OSRM_API_URL). Supports optional intermediate 'waypoints' and requesting 'alternatives' (up to 3 OSRM routes for side-by-side comparison with check_traffic_controls).

Inputs: origin (required), destination (required), profile, waypoints, +2 more. Returns: steps, origin, profile, complete, +16 more

check_traffic_controlsA
Read-onlyIdempotent

Check OpenStreetMap for traffic signals (traffic lights) and stop signs at a junction, within a radius of a coordinate/place, across a bounding box/area, or along a route corridor. Returns explicit booleans (has_traffic_signal, has_stop_sign), junction classification (control_type: 'traffic_signals' | 'stop_sign' | 'both' | 'none'), separate counts, exact coordinates, and a shareable verification map.

MODES:

  • Junction / Coordinate: pass a point in 'bbox' (e.g. '40.7580,-73.9855') with optional 'radius_meters' (defaults to 35m).

  • Bounding box / Area: pass a bbox or 'location' (without 'radius_meters') to count or list all traffic signals and stop signs inside.

  • Route corridor (by endpoints): pass 'origin' and 'destination' (plus optional 'profile': driving/walking/cycling) to route via OSRM and inspect traffic controls along the route in one call.

  • Route corridor (by geometry): pass 'route_geometry' (the GeoJSON LineString from calculate_route) with optional 'radius_meters' (defaults to 20m) to evaluate traffic signals and stop signs along a route in travel order.

Inputs: bbox, limit, offset, origin, +9 more. Returns: limit, counts, offset, complete, +19 more

generate_share_urlA
Read-onlyIdempotent

Generates a URL that links to the visual Bounding Box tool to display these coordinates on a map. Supports WKT, GeoJSON, ogrinfo extent, tile 'z/x/y', and raw coordinate strings as input.

Inputs: bbox (required). Returns: bbox, complete, warnings, share_url, +1 more

get_boundsA
Read-onlyIdempotent

Get converted coordinates for a bounding box or natural-language location search (powered by Nominatim with configurable Photon & optional Mapbox fallbacks). Supports parsing WKT, GeoJSON, ogrinfo extent, Web Mercator tiles ('z/x/y'), single points ('lat,lng'), and raw coordinate strings, plus optional metric buffering.

Inputs: bbox, epsg, zoom, format, +4 more. Returns: epsg, center, format, area_km2, +12 more

get_elevationA
Read-onlyIdempotent

Query terrain elevation in meters above sea level using the Open-Meteo 90m Copernicus DEM API (free for non-commercial use; commercial use requires a paid key or self-hosted ELEVATION_API_URL). Supports 4 modes: 'points' (discrete coordinates), 'grid' (N×N bbox sample statistics), 'line_of_sight' (3D terrain intervisibility with WGS84 Earth curvature & atmospheric refraction between two points), and 'profile' (cumulative elevation gain/loss and max grade % along a route_geometry or path).

Inputs: bbox, mode, origin, points, +8 more. Returns: bbox, mode, samples, complete, +9 more

get_h3_indicesA
Read-onlyIdempotent

Get Uber H3 cell indices for a polygon (including interior holes), location boundary, or bounding box at a target resolution. When a WKT/GeoJSON polygon or named location boundary is provided, fills the exact polygon geometry (subtracting interior holes) rather than just its bounding rectangle.

Inputs: resolution (required), bbox, compact, location, +3 more. Returns: cells, compact, geojson, complete, +9 more

list_osm_tagsA
Read-onlyIdempotent

Discovery tool to look up the correct OpenStreetMap tags for any category. Uses built-in category index and live Taginfo API fallback to prevent tag hallucination.

Inputs: category (required). Returns: tags, source, category, complete, +3 more

reverse_geocodeA
Read-onlyIdempotent

Reverse geocode latitude and longitude coordinates to discover context, place name, address components, and OSM details ('what is here?').

Inputs: lat (required), lng (required), zoom. Returns: bbox, type, class, center, +8 more

search_overpassA
Read-onlyIdempotent

Execute an Overpass QL query to find POIs, roads, or other OSM features within an admin boundary area, bounding box, or radius. The server wraps your query in spatial filters, detects Overpass runtime errors, and returns structured JSON with provenance, completeness metadata, distance calculations, and a map link.

SEARCH MODES:

  • Location / Admin Area: when 'location' resolves to an OSM boundary polygon (e.g. 'Manhattan', 'Seattle'), searches inside exact boundary polygon.

  • Bounding box (default): searches a rectangular area.

  • Circle: searches within an exact radius when 'radius_meters' is provided.

  • Fast Count: set 'count_only: true' to get instant element counts without downloading full element payloads.

COMMON TAG EXAMPLES:

  • Restaurants: nwr["amenity"="restaurant"]

  • Pizza: nwr["amenity"="fast_food"]["cuisine"="pizza"]

  • Supermarkets: nwr["shop"="supermarket"]

  • Parks: nwr["leisure"="park"]

  • Hospitals: nwr["amenity"="hospital"]

  • EV Charging: nwr["amenity"="charging_station"]

  • Gyms: nwr["leisure"="fitness_centre"]

  • Banks: nwr["amenity"="bank"]

Inputs: query (required), bbox, limit, offset, +7 more. Returns: limit, osm3s, counts, offset, +18 more

search_placesA
Read-only

Query Overture Maps global Places dataset (88M+ POIs merged from Meta, Microsoft, Foursquare, and others) directly via GeoParquet range requests. Returns rich commercial POI metadata often missing in OSM: existence confidence scores (0-1), brand & Wikidata IDs, websites, phones, emails, socials, structured addresses, operating status, taxonomy categories, and contributing data sources. Either 'location' or 'bbox' is required.

Inputs: bbox, limit, query, offset, +8 more. Returns: bbox, count, limit, query, +15 more

spatial_calcA
Read-onlyIdempotent

Perform deterministic offline geometric calculations on bounding boxes, points, polygons, and 3D camera frustums (zero network calls): 'relation' (intersects, contains, overlap area %, union & intersection bbox between two geometries), 'point_in_geometry' (check if a point is inside a bbox or WKT/GeoJSON polygon respecting interior holes), 'distance_bearing' (WGS84 ellipsoidal Vincenty distance, initial/final bearings, geodesic midpoint, and ENU vector between two points), 'split_grid' (subdivide a bbox into an N x M grid), or 'camera_footprint' (3D ray-ellipsoid intersection to project a drone/aerial camera frustum onto the WGS84 ground polygon).

Inputs: bbox_a (required), operation (required), cols, rows, +9 more. Returns: to, bbox, cols, from, +42 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools target clearly distinct resources (routing, elevation, H3 indexing, geocoding, traffic controls, tag lookup). A few boundaries are softer: search_places vs search_overpass (different datasets but same 'find POIs' intent), aggregate_overpass_h3 vs get_h3_indices (both H3, one for density binning of Overpass results, one for pure cell enumeration), and get_bounds vs generate_share_url, which both accept the same zoo of coordinate formats. Descriptions do clarify these, so misselection is unlikely but possible.

    Naming Consistency4/5

    Almost all names follow a snake_case verb_noun pattern (search_places, calculate_route, get_elevation, check_traffic_controls, get_bounds, get_h3_indices, list_osm_tags, reverse_geocode, search_overpass, generate_share_url). The deviations are minor: spatial_calc is noun-based rather than verb_noun, and aggregate_overpass_h3 appends a format suffix to an otherwise verb_noun name.

    Tool Count4/5

    12 tools is comfortably within a well-scoped range for a geospatial analysis server and each tool maps to a real capability (search, route, elevation, geometry, H3, geocode, tags, sharing). generate_share_url is arguably a cross-cutting utility that many other tools already partially cover by returning map links, which makes the set slightly heavier than strictly necessary.

    Completeness4/5

    The surface covers a full analysis lifecycle: POI search (Overture and OSM), routing, elevation in four modes, offline geometry math, H3 indexing/aggregation, forward and reverse geocoding, tag discovery, traffic controls, and shareable map output. Gaps are modest: no batch/multi-address geocoding, no isochrone or origin-destination matrix tool, and forward geocoding is buried inside get_bounds rather than exposed directly.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Geospatial 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.
      18
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to become geospatially intelligent assistants with tools for location search, smart routing, round trip planning, reverse geocoding, isochrone analysis, route visualization, geofence management, and interactive map display.
      8
      20 npm
      8
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 15 geospatial utility tools for AI agents, covering coordinate transformation, spatial data validation, elevation/terrain, viewshed analysis, and drone flight planning.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides geographic coordinate geometry tools for computing midpoints, centroids, bounding boxes, and point-in-bbox tests, enabling spatial calculations via natural language queries.
      52 npm
      MIT