---
title: "Foursquare Integration"
description: "Manage Foursquare search places, get place, get place tips, get place photos, autocomplete places"
---
The Foursquare integration provides access to manage Foursquare search places, get place, get place tips, get place photos, autocomplete places through the Integrate MCP server.

## Installation

The Foursquare integration is included with the SDK:

```typescript
import { foursquareIntegration } from "integrate-sdk/server";
```

## Setup

### 1. Create a Foursquare OAuth App

1. Create an OAuth application for Foursquare
2. Configure your redirect URI
3. Note your Client ID and Client Secret

### 2. Configure the Integration on Your Server

Add the Foursquare integration to your server configuration. The integration automatically reads `FOURSQUARE_CLIENT_ID` and `FOURSQUARE_CLIENT_SECRET` from your environment variables:

```typescript
import { createMCPServer, foursquareIntegration } from "integrate-sdk/server";

export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    foursquareIntegration({
      scopes: ["places", "tips", "photos"], // Optional
    }),
  ],
});
```

You can override the environment variables by passing explicit values:

```typescript
foursquareIntegration({
  clientId: process.env.CUSTOM_FOURSQUARE_ID,
  clientSecret: process.env.CUSTOM_FOURSQUARE_SECRET,
      scopes: ["places", "tips", "photos"], // Optional
});
```

### 3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

```typescript
import { client } from "integrate-sdk";

await client.authorize("foursquare");
const result = await client.foursquare.searchPlaces({});

console.log(result);
```

If you're using a custom client, add the integration to the integrations array:

```typescript
import { createMCPClient, foursquareIntegration } from "integrate-sdk";

const customClient = createMCPClient({
  integrations: [foursquareIntegration()],
});
```

## Configuration Options

<AutoTypeTable
  path="../src/integrations/foursquare.ts"
  name="FoursquareIntegrationConfig"
/>


## Default Scopes

These defaults are applied unless you override `scopes` in the integration config:

- `places`
- `tips`
- `photos`

## Tools

### `foursquare_search_places`

Search places

<AutoTypeTable
  path="generated/tool-params/foursquare.ts"
  name="FoursquareSearchPlacesParams"
/>

### `foursquare_get_place`

Get place

<AutoTypeTable
  path="generated/tool-params/foursquare.ts"
  name="FoursquareGetPlaceParams"
/>

### `foursquare_get_place_tips`

Get place tips

<AutoTypeTable
  path="generated/tool-params/foursquare.ts"
  name="FoursquareGetPlaceTipsParams"
/>

### `foursquare_get_place_photos`

Get place photos

<AutoTypeTable
  path="generated/tool-params/foursquare.ts"
  name="FoursquareGetPlacePhotosParams"
/>

### `foursquare_autocomplete_places`

Autocomplete places

<AutoTypeTable
  path="generated/tool-params/foursquare.ts"
  name="FoursquareAutocompletePlacesParams"
/>

## Notes

- Category: Food
- Authentication mode: OAuth
