nearby_places
Pack: foursquare · Endpoint: https://gateway.pipeworx.io/foursquare/mcp
Return POIs sorted by distance from a lat/lon without a text query. Requires latitude+longitude; optional radius_m (default 500m) and numeric fsq_category_ids filter. Returns name, categories, address, distance, rating, hours, and popularity.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Latitude |
longitude | number | yes | Longitude |
radius_m | number | no | 1-100000 metres (default 500) |
categories | string | no | OPTIONAL numeric fsq_category_id values only (from a prior result). Do NOT invent IDs; unknown IDs are ignored. |
limit | number | no | Results (1-50, default 20) |
Example call
Arguments
{
"latitude": 51.5074,
"longitude": -0.1278,
"radius_m": 500,
"limit": 20
}
curl
curl -X POST https://gateway.pipeworx.io/foursquare/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"nearby_places","arguments":{"latitude":51.5074,"longitude":-0.1278,"radius_m":500,"limit":20}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('nearby_places', {
"latitude": 51.5074,
"longitude": -0.1278,
"radius_m": 500,
"limit": 20
});
More examples
{
"latitude": 35.6762,
"longitude": 139.6503,
"radius_m": 2000,
"categories": "13000,13001",
"limit": 15
}
Response shape
Always returns: center, count, results
| Field | Type | Description |
|---|---|---|
center | object | |
count | number | Number of results returned |
results | array |
Full JSON Schema
{
"type": "object",
"properties": {
"center": {
"type": "object",
"properties": {
"latitude": {
"type": "number",
"description": "Search centre latitude"
},
"longitude": {
"type": "number",
"description": "Search centre longitude"
}
},
"required": [
"latitude",
"longitude"
]
},
"count": {
"type": "number",
"description": "Number of results returned"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fsq_place_id": {
"type": [
"string",
"null"
],
"description": "Foursquare place ID"
},
"name": {
"type": [
"string",
"null"
],
"description": "Place name"
},
"categories": {
"type": "array",
"items": {
"type": "string"
},
"description": "Place category names"
},
"category_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Foursquare category IDs"
},
"address": {
"type": [
"string",
"null"
],
"description": "Formatted address"
},
"locality": {
"type": [
"string",
"null"
],
"description": "City or locality name"
},
"region": {
"type": [
"string",
"null"
],
"description": "State or region"
},
"country": {
"type": [
"string",
"null"
],
"description": "Country name"
},
"postcode": {
"type": [
"string",
"null"
],
"description": "Postal code"
},
"latitude": {
"type": [
"number",
"null"
],
"description": "Latitude coordinate"
},
"longitude": {
"type": [
"number",
"null"
],
"description": "Longitude coordinate"
},
"distance_m": {
"type": [
"number",
"null"
],
"description": "Distance in metres from search centre"
},
"popularity": {
"type": [
"number",
"null"
],
"description": "Popularity score"
},
"rating": {
"type": [
"number",
"null"
],
"description": "Place rating"
},
"price": {
"type": [
"number",
"null"
],
"description": "Price level"
},
"website": {
"type": [
"string",
"null"
],
"description": "Place website URL"
},
"tel": {
"type": [
"string",
"null"
],
"description": "Phone number"
},
"hours": {
"type": [
"string",
"null"
],
"description": "Hours of operation display text"
},
"open_now": {
"type": [
"boolean",
"null"
],
"description": "Whether place is open now"
},
"chain": {
"type": [
"string",
"null"
],
"description": "Chain name if applicable"
},
"timezone": {
"type": [
"string",
"null"
],
"description": "Time zone"
},
"description": {
"type": [
"string",
"null"
],
"description": "Place description"
},
"foursquare_url": {
"type": [
"string",
"null"
],
"description": "Foursquare profile URL"
}
}
}
}
},
"required": [
"center",
"count",
"results"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"foursquare": {
"url": "https://gateway.pipeworx.io/foursquare/mcp"
}
}
}
See Getting Started for client-specific install steps.