pois_near

Pack: overpass · Endpoint: https://gateway.pipeworx.io/overpass/mcp

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 ”, “pharmacies near me”, “restaurants around this point”. Returns matching places with names, tags, and coordinates.

Parameters

NameTypeRequiredDescription
placestringnoPlace name to search near, e.g. “Göttingen, Germany” or “downtown Portland OR”. Auto-geocoded to coordinates. Provide this OR latitude+longitude.
latitudenumbernoCenter latitude (provide with longitude, OR use place)
longitudenumbernoCenter longitude (provide with latitude, OR use place)
radius_mnumbernoSearch radius in metres (1-10000, default 1000)
tagstringyesCategory: a plain term like “bike rental”, “pharmacy”, “restaurant”, “ev charger”, or an exact OSM tag like “amenity=cafe”, “shop=bakery”, “tourism=museum”.
limitnumbernoMax results (1-500, default 100)

Example call

Arguments

{
  "latitude": 48.8566,
  "longitude": 2.3522,
  "tag": "amenity=cafe",
  "radius_m": 500
}

curl

curl -X POST https://gateway.pipeworx.io/overpass/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pois_near","arguments":{"latitude":48.8566,"longitude":2.3522,"tag":"amenity=cafe","radius_m":500}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('pois_near', {
  "latitude": 48.8566,
  "longitude": 2.3522,
  "tag": "amenity=cafe",
  "radius_m": 500
});

More examples

{
  "latitude": 51.5074,
  "longitude": -0.1278,
  "tag": "shop=bakery",
  "radius_m": 2000,
  "limit": 50
}

Response shape

Always returns: center, radius_m, tag, count, elements

FieldTypeDescription
centerobjectSearch center coordinates
radius_mnumberSearch radius in metres
tagstringOSM tag filter used
countnumberNumber of POIs found
elementsarrayArray of POI elements
Full JSON Schema
{
  "type": "object",
  "properties": {
    "center": {
      "type": "object",
      "description": "Search center coordinates",
      "properties": {
        "latitude": {
          "type": "number",
          "description": "Center latitude"
        },
        "longitude": {
          "type": "number",
          "description": "Center longitude"
        }
      },
      "required": [
        "latitude",
        "longitude"
      ]
    },
    "radius_m": {
      "type": "number",
      "description": "Search radius in metres"
    },
    "tag": {
      "type": "string",
      "description": "OSM tag filter used"
    },
    "count": {
      "type": "number",
      "description": "Number of POIs found"
    },
    "elements": {
      "type": "array",
      "description": "Array of POI elements",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "node",
              "way",
              "relation"
            ],
            "description": "OSM element type"
          },
          "id": {
            "type": "number",
            "description": "OSM element ID"
          },
          "osm_url": {
            "type": "string",
            "description": "Direct link to element on OpenStreetMap"
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ],
            "description": "Latitude coordinate or null if unavailable"
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ],
            "description": "Longitude coordinate or null if unavailable"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "OSM name tag value or null"
          },
          "tags": {
            "type": "object",
            "description": "All OSM tags as key-value pairs"
          }
        },
        "required": [
          "type",
          "id",
          "osm_url",
          "latitude",
          "longitude",
          "name",
          "tags"
        ]
      }
    }
  },
  "required": [
    "center",
    "radius_m",
    "tag",
    "count",
    "elements"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "overpass": {
      "url": "https://gateway.pipeworx.io/overpass/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 21, 2026