> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Instacart in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/instacart
Last updated: 2026-11-24

Share Instacart with your team in Claude, ChatGPT and Cursor through Metorial: OAuth 2.0 client credentials or API key sign-in, 14 tools (6 read-only).

---

To give your team Instacart in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Instacart integration in a Metorial portal, and each person connects with OAuth 2.0 client credentials. Agents can create shoppable recipe and shopping-list pages, discover nearby retailers, and manage retailer delivery and pickup fulfillment with Instacart Developer Platform and Connect. The integration has 14 tools, 6 read-only, 7 write and 1 destructive, plus 3 triggers.

**What you will learn**

- How an admin shares Instacart in a portal and how each person connects
- What Instacart asks for when you connect, and where to find it
- How to keep the 6 read-only tools and reject the other 8

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- OAuth 2.0 client credentials from Instacart for each person, or one set for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **OAuth 2.0 Client Credentials (Connect)** (default) | Custom credentials | `clientId`, `clientSecret` and `scopes` |
| **API Key (Developer Platform)** | API token | `apiKey` |

The portal and `metorial setup` use **OAuth 2.0 Client Credentials (Connect)** unless someone picks another method.

### OAuth 2.0 Client Credentials (Connect)

To connect, a person enters these values:

- `clientId`: OAuth client ID provided by Instacart
- `clientSecret`: OAuth client secret provided by Instacart
- `scopes`: Comma-separated scopes, e.g. "connect:fulfillment,connect:post_checkout"

### API Key (Developer Platform)

To connect, a person enters:

- `apiKey`: API key from the Instacart Developer Dashboard

### Setup settings

Whichever method you pick, setup also asks for:

- `environment` (optional): The environment to use. Development uses connect.dev.instacart.tools, production uses connect.instacart.com. One of "production", "development".

## Admin: share Instacart in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Instacart. Under **Auth Method**, keep **OAuth 2.0 Client Credentials (Connect)** or pick another. For how members connect, choose **Each person connects** so everyone enters their own OAuth 2.0 client credentials, or **Shared connection** to enter the OAuth 2.0 client credentials once for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Instacart.

4. **Choose who gets it**

   Add the access groups that should see Instacart. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Instacart integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search instacart
```

## Employee: connect Instacart

### In the portal

1. **Open Instacart in the catalog**

   Sign in to your portal and open Instacart. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your OAuth 2.0 client credentials (clientId, clientSecret and scopes).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search instacart
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth 2.0 Client Credentials (Connect)**. To connect with **API Key (Developer Platform)** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Instacart connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list instacart
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 6 read-only tools, such as `get_order` and `find_stores`, and lose the 7 write tools, such as `create_user` or `create_order`, and the destructive tool `cancel_order`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list instacart
metorial tools <integration-id>
metorial call <integration-id> find_stores -d '{"fulfillmentType":"delivery"}'
```

`metorial tools` lists the 14 tools, minus any you rejected. `find_stores` needs `fulfillmentType`, so replace the placeholders. It finds stores offering delivery, pickup, or last mile delivery near a location.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (6)

- `get_order`: Retrieve details for a specific order or list all orders for a Connect user. Needs `userId`.
- `find_stores`: Find stores offering delivery, pickup, or last mile delivery near a location. Needs `fulfillmentType`.
- `list_cart_service_options`: List available delivery or pickup time slots for a specific user and cart. Needs `userId`, `fulfillmentType` and `locationCode`.
- `get_nearby_retailers`: Look up retailers available on Instacart Marketplace near a given postal code. Needs `postalCode` and `countryCode`.
- `preview_service_options`: Preview available delivery or pickup time slots before a customer has signed in or started shopping. Needs `fulfillmentType` and `postalCode`.
- `get_connect_user`: Retrieve a fulfillment customer by the user ID your retailer application provided when creating the user.

### Write tools (7)

- `create_recipe_page`: Create a shoppable recipe page on Instacart Marketplace. Needs `title` and `ingredients`.
- `sandbox_advance_order`: Simulate order lifecycle progression in the sandbox/development environment. Needs `orderId`.
- `create_user`: Create a Connect user account with an associated delivery address. Needs `userId`, `firstName`, `addressLine1` and `postalCode`.
- `create_order`: Create a delivery or pickup order for a Connect user. Needs `fulfillmentType`, `userId`, `locationCode` and `items`.
- `create_shopping_list_page`: Create a smart shopping list page on Instacart Marketplace. Needs `title` and `lineItems`.
- `reserve_service_option`: DEPRECATED — use `reserve_time_slot` instead. Needs `userId`, `serviceOptionId` and `locationCode`.
- `reserve_time_slot`: Reserve a time slot returned by List Cart Service Options using its ID or its desired-window reference.

### Destructive tools (1)

- `cancel_order`: Cancel an existing order. Needs `userId` and `orderId`.

## Triggers

Instacart has 3 triggers, which fire on events in Instacart:

- `item_events`: Receives webhook notifications for item-level events during the picking process, including item_found, item_replaced, item_refunded, and item_not_picked.
- `order_events`: Receives webhook notifications for order lifecycle events including status changes (brand_new, acknowledged, picking, checkout, staged, delivering, delivered, rescheduled, canceled).
- `delivery_events`: Receives webhook notifications for delivery tracking events including order_location (GPS updates), late_delivery, late_pickup, customer_missing, at_store_eta, and last mile events (at_store, acknowledged_for_delivery, bags_verified, arrival_at_customer).

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Instacart there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Instacart on metorial.com](https://metorial.com/integrations/instacart): the integration overview