# Foursquare [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/pipeworx-io/mcp-foursquare  
**GitHub Stars:** 0  
**npm Downloads (last month):** 688  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/foursquare

## Description
Foursquare Places MCP (v3 Places API)

## Tools
Capabilities this server exposes over MCP:

- **search_places** — Search Foursquare places (keyless, Pipeworx supplies the key). Combine `query` (e.g., "coffee", "hardware store") with a location anchor, either `near` ("Brooklyn, NY", "San Francisco, CA") or `latitude`+`longitude`. sort:"RATING" orders results by Foursquare rating (best first); the rating NUMBER itself is a Foursquare Premium field and is returned only where enabled, check `rating_included` / `rating_reason` in the response, and read `rating_note` before telling a caller a place is unrated. Returns name, fsq_place_id, categories, address, distance, lat/lon, tel, website.
- **get_place** — Full place details by fsq_place_id. Returns name, categories, address, lat/lon, social media, website, tel. hours/rating/price/popularity are Foursquare Premium fields, present only where enabled (see `rating_included` / `rating_note` in the response).
- **nearby_places** — 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, tel, website. rating/hours/popularity are Foursquare Premium fields, present only where enabled (see `rating_included` / `rating_note`).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "foursquare": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-foursquare"],
    "env": {
      "PLATFORM_FOURSQUARE_KEY": ""
    }
  }
}
```

**Requires environment variables:** `PLATFORM_FOURSQUARE_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Foursquare does

Foursquare provides MCP access to the Foursquare Places API for finding and inspecting points of interest. The integration covers three place-oriented operations:

- Search for places using an optional text query such as “coffee” or “hardware store,” anchored by a named area or latitude and longitude.
- Retrieve detailed information for a place using its `fsq_place_id`.
- Find nearby places from coordinates without supplying a text query.

Returned Pro-level data can include a place name, Foursquare ID, categories, address, distance, coordinates, telephone number, website, and social media information where available. Category filters, result limits, radius, and sort options help narrow searches. Selecting `RATING` sorts results by Foursquare rating, but the numeric rating is only returned when the relevant Premium field is available.

## How it works

The hosted MCP endpoint is available at `https://gateway.pipeworx.io/foursquare/mcp`. Add that URL to an MCP client, or connect to the full Pipeworx gateway at `https://gateway.pipeworx.io/mcp`. Both endpoints use the same gateway and data sources. A Foursquare pack endpoint lists the Foursquare tools along with shared Pipeworx tools such as `ask_pipeworx`, `discover_tools`, `search_within`, and memory tools; the full gateway lists the broader catalog directly.

For local use, run the package with `npx -y @pipeworx/mcp-foursquare`. The standalone process communicates over standard input and output and exposes only the Foursquare pack tools. The gateway also supports direct HTTP tool calls, including POST requests to `/v1/tools/search_places`.

## Setup and configuration

An MCP client can use the hosted endpoint with a configuration such as:

```json
{
  "mcpServers": {
    "foursquare": {
      "url": "https://gateway.pipeworx.io/foursquare/mcp"
    }
  }
}
```

The gateway uses the `PLATFORM_FOURSQUARE_KEY` platform credential. Bring-your-own-key requests can pass an API key with the `_apiKey` query parameter after registering through Foursquare’s developer site. The local package runs without a Pipeworx account or gateway round trip.

The underlying API is `places-api.foursquare.com/places` and uses bearer authentication with the `X-Places-Api-Version: 2025-06-17` header. The package is available under the MIT license.

## Tools and capabilities

`search_places` accepts `query`, `near`, or a latitude-and-longitude pair. It also supports radius, category, sort, and limit parameters. Its response includes core identifying, location, and contact fields.

`get_place` takes an `fsq_id` and returns fuller place information, including categories, address, coordinates, social media, website, and telephone data.

`nearby_places` requires latitude and longitude and optionally accepts `radius_m`, numeric Foursquare category IDs, and a result limit. Results are ordered by distance.

Foursquare marks `rating`, `price`, `popularity`, `hours`, descriptions, tips, and photos as Premium fields. Responses include `rating_included` and `rating_reason`; when a rating is absent, `rating_note` distinguishes an unrequested or vendor-withheld value from an unrated place. If a Premium request is refused, the gateway retries with Pro-only fields rather than failing the call.

## Limitations and notes

The Foursquare free allowance is 10,000 Pro calls per month. Premium fields use separate billing and have no free tier; requesting them can incur the Premium rate. Until Premium access is enabled for the platform account, public requests receive Pro-only results, although `sort: "RATING"` can still order results by rating.

Hosted pack endpoints include shared gateway meta-tools in addition to the three Foursquare tools, so clients may display more tools than this integration defines. The standalone stdio package does not include those shared tools or cross-catalog routing. The integration is independent and unofficial, and is not affiliated with or endorsed by Foursquare.

_Full upstream README: https://allmcps.com/mcp/foursquare/readme_

