Overpass

v0.2.1
io.github.pipeworx-io/overpass Checked 1 day ago Published 29 days ago

OpenStreetMap Overpass MCP — programmatic queries against the OSM database

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

query

Run a raw Overpass QL query against OpenStreetMap. Use for complex spatial queries the helper tools can't express. Example: `[out:json][timeout:25]; area["name"="Berlin"][admin_level=4]->.a; node["amenity"="library"](area.a); out body;`. Returns the raw Overpass JSON (elements array with node/way/relation).

ParameterTypeDescription
qql *stringFull Overpass QL query string. Start with `[out:json][timeout:<n>];` and end with `out body;` (or similar output statement).

pois_near

Find OpenStreetMap points of interest (shops, amenities, businesses) near a location. Give a location either as latitude+longitude OR as a place name via "place" (e.g. place: "Göttingen, Germany" — auto-geocoded). For the category, pass a plain-English term ("bike rental", "pharmacy", "restaurant", "gas station", "ev charger", "hotel", "atm") or an exact OSM tag ("amenity=cafe", "shop=bakery"). Answers "find bike rental shops in <city>", "pharmacies near me", "restaurants around this point". Returns matching places with names, tags, and coordinates.

ParameterTypeDescription
tag *stringCategory: a plain term like "bike rental", "pharmacy", "restaurant", "ev charger", or an exact OSM tag like "amenity=cafe", "shop=bakery", "tourism=museum".
latitudenumberCenter latitude (provide with longitude, OR use place)
limitnumberMax results (1-500, default 100)
longitudenumberCenter longitude (provide with latitude, OR use place)
placestringPlace name to search near, e.g. "Göttingen, Germany" or "downtown Portland OR". Auto-geocoded to coordinates. Provide this OR latitude+longitude.
radius_mnumberSearch radius in metres (1-10000, default 1000)

places_in_bbox

Find OSM POIs inside a bounding box. Use for "every park in this area" or "all restaurants in this neighborhood". Bounding box is (south, west, north, east) in degrees.

ParameterTypeDescription
east *numberMaximum longitude
north *numberMaximum latitude
south *numberMinimum latitude
tag *stringOSM tag filter (e.g., "leisure=park", "amenity=hospital")
west *numberMinimum longitude
limitnumberMax results (1-1000, default 200)