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

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

Share Gusto with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 20 tools (9 read-only).

---

To give your team Gusto in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Gusto integration in a Metorial portal, and each person signs in to Gusto with their own account. Agents can discover the authorized Gusto company, read personnel and payroll records, and manage documented benefits, locations, departments and compensation. The integration has 20 tools, 9 read-only, 10 write and 1 destructive, plus 7 triggers.

**What you will learn**

- How an admin shares Gusto in a portal and how each person connects
- The 40 OAuth scopes Gusto can request, and what each one allows
- How to keep the 9 read-only tools and reject the other 11

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Gusto for each person who connects
- 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 |
| --- | --- | --- |
| **Demo** (default) | OAuth | Signs in to Gusto |
| **Production** | OAuth | Signs in to Gusto |

The portal and `metorial setup` use **Demo** unless someone picks another method.

### Demo

People sign in to Gusto and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `companies:read` | Companies Read | Read company information |
| `companies:write` | Companies Write | Create and update company information |
| `employees:read` | Employees Read | Read employee information |
| `employees:write` | Employees Write | Create and update employee information |
| `payrolls:read` | Payrolls Read | Read payroll information |
| `payrolls:write` | Payrolls Write | Create and process payrolls |
| `contractors:read` | Contractors Read | Read contractor information |
| `contractors:write` | Contractors Write | Create and update contractor information |
| `contractor_payments:read` | Contractor Payments Read | Read contractor payment information |
| `contractor_payments:write` | Contractor Payments Write | Create and manage contractor payments |
| `company_benefits:read` | Company Benefits Read | Read company benefit information |
| `company_benefits:write` | Company Benefits Write | Create and update company benefits |
| `employee_benefits:read` | Employee Benefits Read | Read employee benefit enrollments |
| `employee_benefits:write` | Employee Benefits Write | Create and update employee benefit enrollments |
| `pay_schedules:read` | Pay Schedules Read | Read pay schedule information |
| `pay_schedules:write` | Pay Schedules Write | Create and update pay schedules |
| `locations:read` | Locations Read | Read company location information |
| `locations:write` | Locations Write | Create and update company locations |
| `bank_accounts:read` | Bank Accounts Read | Read bank account information |
| `bank_accounts:write` | Bank Accounts Write | Create and update bank accounts |
| `jobs:read` | Jobs Read | Read job information |
| `jobs:write` | Jobs Write | Create and update job information |
| `compensations:read` | Compensations Read | Read compensation information |
| `compensations:write` | Compensations Write | Create and update compensation information |
| `taxes:read` | Taxes Read | Read tax information |
| `taxes:write` | Taxes Write | Update tax information |
| `forms:read` | Forms Read | Read forms and documents |
| `forms:write` | Forms Write | Create and manage forms |
| `time_off_policies:read` | Time Off Policies Read | Read time off policies and balances |
| `time_off_policies:write` | Time Off Policies Write | Create and update time off policies |
| `signatories:read` | Signatories Read | Read signatory information |
| `signatories:write` | Signatories Write | Create and update signatories |
| `earning_types:read` | Earning Types Read | Read earning type information |
| `earning_types:write` | Earning Types Write | Create and update earning types |
| `garnishments:read` | Garnishments Read | Read garnishment information |
| `garnishments:write` | Garnishments Write | Create and update garnishments |
| `departments:read` | Departments Read | Read department information |
| `departments:write` | Departments Write | Create and update departments |
| `webhooks:read` | Webhooks Read | Read webhook subscriptions |
| `webhooks:write` | Webhooks Write | Create and manage webhook subscriptions |

### Production

It requests the same scopes as **Demo**.

## Use your own Gusto OAuth app

With your own OAuth app, people see your company's name on the Gusto consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Gusto and copy the **Redirect URI**.

2. **Register the app with Gusto**

   Create an OAuth app or client in Gusto and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in [OAuth documentation](https://docs.gusto.com/app-integrations/docs/oauth2).

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Gusto integration.

## Admin: share Gusto 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 Gusto. Under **Auth Method**, keep **Demo** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Gusto as themselves.

3. **Limit the tools**

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

4. **Choose who gets it**

   Add the access groups that should see Gusto. 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 Gusto integration. Once it exists, check which groups have it:

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

## Employee: connect Gusto

### In the portal

1. **Open Gusto in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Gusto sign-in tab opens. Sign in and approve the permissions listed.

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 gusto
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Demo**. To connect with **Production** 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 Gusto 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 gusto
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 9 read-only tools, such as `list_forms` and `get_company`, and lose the 10 write tools, such as `manage_employee` or `manage_contractor`, and the destructive tool `process_payroll`.

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 gusto
metorial tools <integration-id>
metorial call <integration-id> list_forms -d '{"scope":"company"}'
```

`metorial tools` lists the 20 tools, minus any you rejected. `list_forms` needs `scope`, so replace the placeholders. It lists company or employee form metadata, or retrieve one form by ID.

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

## Tools

### Read-only tools (9)

- `list_contractors`: List contractors (1099 workers) for a company. Needs `companyId`.
- `list_employees`: List employees for a company. Needs `companyId`.
- `manage_time_off`: List time off policies for a company or retrieve an employee's time off activity for one exact type. Needs `action`.
- `list_pay_schedules`: List pay schedules for a company. Needs `companyId`.
- `get_company`: Retrieve detailed information about a Gusto company, including its profile, locations, and configuration. Needs `companyId`.
- `get_payroll`: Retrieve detailed information about a specific payroll, including employee compensations, taxes, deductions, and totals. Needs `companyId` and `payrollId`.
- `list_forms`: List company or employee form metadata, or retrieve one form by ID. Needs `scope`.
- `list_payrolls`: List payrolls for a company. Needs `companyId`.
- `get_current_context`: Discover the current Gusto token resource, resource owner, granted scopes and company UUID.

### Write tools (10)

- `manage_employee_benefit`: List, create, or update employee benefit enrollments. Needs `action`.
- `manage_job_compensation`: Manage employee jobs and compensations. Needs `action`.
- `manage_contractor_payment`: List contractor payments grouped by contractor and returned as individual payments. Needs `action` and `companyId`.
- `manage_earning_type`: List, create, or update custom earning types for a company. Needs `action` and `companyId`.
- `manage_employee`: Create, update, retrieve, terminate, or rehire a W-2 employee. - To **create**: provide companyId, firstName, lastName, and optionally other fields. - To **get** or **update**: provide employeeId and any fields to update. - To **terminate**: provide employeeId and termination details. - To **rehire**: provide employeeId and rehire details. Needs `action`.
- `manage_garnishment`: List, create, or update wage garnishments for an employee. Needs `action`.
- `manage_department`: List, create, or update departments for a company. Needs `action`.
- `manage_company_benefit`: List, create, retrieve, or update company-level benefit types (health insurance, 401(k), HSA, etc.). Needs `action`.
- `manage_company_location`: List, create, or update company locations. Needs `action`.
- `manage_contractor`: Create, retrieve, or update a contractor (1099 worker). - To **create**: provide companyId, type, and contractor details. - To **get**: provide contractorId. - To **update**: provide contractorId and fields to change. Needs `action`.

### Destructive tools (1)

- `process_payroll`: Request asynchronous payroll calculation or submission for an approved Embedded Payroll company. Needs `companyId`, `payrollId` and `action`.

## Triggers

Gusto has 7 triggers, which fire on events in Gusto:

- `payroll_events`: Triggered when payroll lifecycle events occur, including creation, calculation, submission, processing, payment, reversal, and cancellation.
- `general_events`: Triggered for miscellaneous Gusto webhook events including bank account changes, location updates, signatory changes, pay schedule changes, employee address/compensation changes, notification events, and other resource events not covered by specialized triggers.
- `benefit_events`: Triggered when company benefit or employee benefit enrollment events occur, including creation, updates, and deletion of benefits and enrollments.
- `contractor_events`: Triggered when contractor lifecycle events occur, including creation, updates, onboarding, deactivation, reactivation, and deletion.
- `employee_events`: Triggered when employee lifecycle events occur, including creation, updates, onboarding, termination, rehire, and deletion.
- `company_events`: Triggered when company lifecycle events occur, including provisioning, deprovisioning, updates, onboarding, approval status changes, and suspension events.
- `form_events`: Triggered when form or document events occur, including creation, updates, signing, and document generation success or failure.

## 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 Gusto there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Gusto on metorial.com](https://metorial.com/integrations/gusto): the integration overview