OpenStreetMap

v0.3.2
io.github.ni-c/osm-mcp Checked 15 hours ago Published 1 month ago

Geocoding, walking/driving/cycling distances, route optimization, isochrones and POI search on OSM

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

geocode Geocode a place or address

Converts a place name or address into coordinates using OpenStreetMap. Returns matching places with lat/lon, a display label and the OSM id. Provider "nominatim" (default) is best for addresses; "photon" is typo-tolerant and better for fuzzy place names.

ParameterTypeDescription
query *stringPlace name or address
countrycodesstringRestrict to countries: comma-separated ISO 3166-1 alpha-2 codes, e.g. "de,lu" (Nominatim only)
languagestringLanguage for place names (IETF code like "en" or "de"), default "en"
limitintegerMaximum number of results, default 3
providerstringGeocoder to use, default nominatim

reverse_geocode Reverse geocode coordinates

Converts coordinates into the nearest address or place name (Nominatim).

ParameterTypeDescription
latitude *number
longitude *number
languagestringLanguage for place names (IETF code like "en" or "de"), default "en"

route Route between places

Calculates the real-world travel distance and time between two or more places, walking, driving or cycling, on OpenStreetMap data. Waypoints are visited in the given order. Set include_steps for a turn-by-turn summary. Use route_matrix to compare many pairs, optimize_route to reorder stops.

ParameterTypeDescription
profile *stringTravel mode: on foot, by car or by bicycle
waypoints *arrayStart, optional stops in between, destination
include_stepsbooleanInclude a turn-by-turn step summary, default false
languagestringLanguage for resolved place labels, default "en"

route_matrix Travel time/distance matrix

Computes travel times and distances from every origin to every destination in one call — ideal for comparing options (e.g. 5 hotels against 3 sights). Cells are null where no route exists.

ParameterTypeDescription
destinations *array
origins *array
profile *stringTravel mode: on foot, by car or by bicycle
languagestringLanguage for resolved place labels, default "en"

optimize_route Optimize stop order

Finds the best order to visit a set of stops (traveling-salesman optimization) and returns the optimized itinerary with total distance and time. With roundtrip (default) the tour returns to the first stop; without it the first stop is the start and the last stop the end.

ParameterTypeDescription
profile *stringTravel mode: on foot, by car or by bicycle
stops *array
languagestringLanguage for resolved place labels, default "en"
roundtripbooleanReturn to the first stop at the end, default true

isochrone Reachable area (isochrone)

Shows how far you can get from a place within a time or distance budget ("what is reachable in 15 minutes on foot?"). Returns a compact summary of the reachable area: bounding box and reach per compass direction. Give exactly one of minutes or kilometers.

ParameterTypeDescription
center *stringPlace name, address, or coordinates as "lat,lon"
profile *stringTravel mode: on foot, by car or by bicycle
kilometersnumber
languagestringLanguage for resolved place labels, default "en"
minutesnumber

find_nearby_pois Find nearby places (POIs)

Finds points of interest near a location, sorted by distance. Category shortcuts: restaurant, cafe, bar, pub, fast_food, ice_cream, hotel, hostel, guest_house, apartment, camp_site, attraction, museum, gallery, viewpoint, information, artwork, castle, monument, ruins, supermarket, bakery, convenience, pharmacy, hospital, doctors, police, atm, bank, fuel, charging_station, parking, toilets, drinking_water, bus_stop, train_station, tram_stop, ferry_terminal, bicycle_rental, car_rental, playground, park, beach, swimming_pool. Any other OSM tag works as "key" or "key=value" (e.g. "diet:vegan=yes")…

ParameterTypeDescription
category *stringCategory shortcut or OSM tag filter
near *stringPlace name, address, or coordinates as "lat,lon"
languagestringLanguage used when geocoding place names, default "en"
limitintegerMaximum number of results, default 10
radius_mintegerSearch radius in meters, default 1000

poi_details Get POI details

Fetches the full OpenStreetMap record of one element — all tags (opening hours, website, phone, …), coordinates and a map link. Takes an OSM id as returned by find_nearby_pois or geocode, e.g. "node/240109189".

ParameterTypeDescription
osm_id *string

suggest_meeting_point Suggest a meeting point

Suggests a fair place to meet for people starting from different locations: finds venues around the geographic midpoint and picks the one with the most balanced travel times for everyone.

ParameterTypeDescription
locations *arrayStarting points of all participants
languagestringLanguage used when geocoding place names, default "en"
profilestringHow everyone travels, default foot
search_radius_mintegerVenue search radius around the midpoint, default 1500
venue_categorystringWhat kind of venue to meet at, default "cafe"

straight_line_distance Straight-line distance

Great-circle ("as the crow flies") distance between two places. Instant and independent of any road network — use route for real travel distances.

ParameterTypeDescription
from *stringPlace name, address, or coordinates as "lat,lon"
to *stringPlace name, address, or coordinates as "lat,lon"
languagestringLanguage used when geocoding place names, default "en"