places_in_bbox

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

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.

Parameters

NameTypeRequiredDescription
southnumberyesMinimum latitude
westnumberyesMinimum longitude
northnumberyesMaximum latitude
eastnumberyesMaximum longitude
tagstringyesOSM tag filter (e.g., “leisure=park”, “amenity=hospital”)
limitnumbernoMax results (1-1000, default 200)

Example call

Arguments

{
  "south": 48.8,
  "west": 2.2,
  "north": 48.9,
  "east": 2.4,
  "tag": "leisure=park"
}

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":"places_in_bbox","arguments":{"south":48.8,"west":2.2,"north":48.9,"east":2.4,"tag":"leisure=park"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('places_in_bbox', {
  "south": 48.8,
  "west": 2.2,
  "north": 48.9,
  "east": 2.4,
  "tag": "leisure=park"
});

More examples

{
  "south": 40.7,
  "west": -74,
  "north": 40.8,
  "east": -73.9,
  "tag": "amenity=hospital",
  "limit": 100
}

Response shape

Always returns: bbox, tag, count, elements

FieldTypeDescription
bboxobjectBounding box coordinates
tagstringOSM tag filter used
countnumberNumber of places found
elementsarrayArray of place elements
Full JSON Schema
{
  "type": "object",
  "properties": {
    "bbox": {
      "type": "object",
      "description": "Bounding box coordinates",
      "properties": {
        "south": {
          "type": "number",
          "description": "Minimum latitude"
        },
        "west": {
          "type": "number",
          "description": "Minimum longitude"
        },
        "north": {
          "type": "number",
          "description": "Maximum latitude"
        },
        "east": {
          "type": "number",
          "description": "Maximum longitude"
        }
      },
      "required": [
        "south",
        "west",
        "north",
        "east"
      ]
    },
    "tag": {
      "type": "string",
      "description": "OSM tag filter used"
    },
    "count": {
      "type": "number",
      "description": "Number of places found"
    },
    "elements": {
      "type": "array",
      "description": "Array of place 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": [
    "bbox",
    "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 June 26, 2026