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

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

Share HubSpot with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or private app token sign-in, 46 tools (22 read-only).

---

To give your team HubSpot in Claude, ChatGPT, Cursor and other AI clients, an admin shares the HubSpot integration in a Metorial portal, and each person signs in to HubSpot with their own account. Agents can create, read, update, and delete CRM objects including contacts, companies, deals, tickets, and custom objects. The integration has 46 tools, 22 read-only, 16 write and 8 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares HubSpot in a portal and how each person connects
- The 10 OAuth scopes HubSpot can request, and what each one allows
- How to keep the 22 read-only tools and reject the other 24

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with HubSpot 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 |
| --- | --- | --- |
| **OAuth (Legacy Public App)** (default) | OAuth | Signs in to HubSpot |
| **Private App Token (Legacy Private App)** | API token | `token` |
| **OAuth (Developer Platform / CLI App)** | OAuth | Signs in to HubSpot |

The portal and `metorial setup` use **OAuth (Legacy Public App)** unless someone picks another method.

### OAuth (Legacy Public App)

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

| Scope | Name | What it allows |
| --- | --- | --- |
| `crm.objects.custom.read` | Custom Objects Read | Read custom objects (Enterprise) |
| `crm.objects.custom.write` | Custom Objects Write | Write custom objects (Enterprise) |
| `crm.schemas.contacts.write` | CRM Contact Schemas Write | Create and update contact property settings |
| `crm.schemas.companies.write` | CRM Company Schemas Write | Create and update company property settings |
| `crm.schemas.deals.write` | CRM Deal Schemas Write | Create and update deal property settings |
| `crm.schemas.custom.read` | CRM Custom Schemas Read | Read custom object schemas (Enterprise) |
| `crm.pipelines.orders.read` | Order Pipelines Read | Read order pipelines |
| `crm.pipelines.orders.write` | Order Pipelines Write | Create and update order pipelines |
| `automation.sequences.read` | Sequences Read | Read HubSpot sales and service sequences |
| `automation.sequences.enrollments.write` | Sequences Enrollments Write | Enroll contacts in HubSpot sales and service sequences |

### Private App Token (Legacy Private App)

To connect, a person enters:

- `token`: Private App access token from HubSpot Settings > Integrations > Private Apps

### OAuth (Developer Platform / CLI App)

It requests the same scopes as **OAuth (Legacy Public App)**.

## Use your own HubSpot OAuth app

With your own OAuth app, people see your company's name on the HubSpot 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 HubSpot and copy the **Redirect URI**.

2. **Register the app with HubSpot**

   Create an app in your HubSpot developer account, following HubSpot's app creation guide. Add the redirect URI from Metorial as the app's redirect URL and select the scopes it may request, then copy the client ID and client secret from the app's settings. In Metorial, pick **OAuth (Legacy Public App)** or **OAuth (Developer Platform / CLI App)**, whichever matches the kind of app you created.

   Only a Super Admin can install an app in a HubSpot account, and the person installing it needs access to every scope it requests. A HubSpot token follows the app's scopes, not the person's own HubSpot permissions. With `crm.objects.contacts.read`, the agent can read every contact in the account, even if that person can only see their own.

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 HubSpot integration.

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

3. **Limit the tools**

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

4. **Choose who gets it**

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

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

## Employee: connect HubSpot

### In the portal

1. **Open HubSpot in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A HubSpot 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 hubspot
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth (Legacy Public App)**. To connect with **Private App Token (Legacy Private App)** 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 HubSpot 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 hubspot
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 22 read-only tools, such as `get_deal` and `get_list`, and lose the 16 write tools, such as `create_deal` or `create_list`, and the 8 destructive tools, such as `delete_deal` or `delete_list`.

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 hubspot
metorial tools <integration-id>
metorial call <integration-id> list_pipelines -d '{"objectType":"deals"}'
```

`metorial tools` lists the 46 tools, minus any you rejected. `list_pipelines` needs `objectType`, so replace the placeholders. It lists all pipelines for a given object type in HubSpot.

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

## Tools

### Read-only tools (22)

- `list_owners`: List CRM owners (users who can be assigned to records) in HubSpot.
- `get_ticket`: Retrieve a support ticket from HubSpot by ID. Needs `ticketId`.
- `list_pipelines`: List all pipelines for a given object type in HubSpot. Needs `objectType`.
- `get_contact`: Retrieve a contact from HubSpot CRM by ID. Needs `contactId`.
- `get_associations`: Retrieve all associations of a specific type for a CRM object. Needs `fromObjectType`, `fromObjectId` and `toObjectType`.
- `list_deals`: List deals from HubSpot CRM with pagination support.
- `list_companies`: List companies from HubSpot CRM with pagination support.
- `get_owner`: Retrieve a specific CRM owner by ID from HubSpot. Needs `ownerId`.
- `get_engagement`: Retrieve an engagement (note, email, call, meeting, or task) from HubSpot by ID and type. Needs `engagementType` and `engagementId`.
- `search_crm`: Search for CRM objects in HubSpot using filters, query text, and sorting. Needs `objectType`.
- `list_properties`: List all properties defined for a CRM object type in HubSpot. Needs `objectType`.
- `list_tickets`: List support tickets from HubSpot with pagination support.
- `list_contacts`: List contacts from HubSpot CRM with pagination support.
- `get_company`: Retrieve a company from HubSpot CRM by ID. Needs `companyId`.
- `search_lists`: Search for lists in HubSpot by name. Needs `query`.
- `get_pipeline`: Retrieve a specific pipeline with its stages from HubSpot. Needs `objectType` and `pipelineId`.
- `get_list`: Retrieve a list from HubSpot by ID, including its metadata and membership count. Needs `listId`.
- `get_deal`: Retrieve a deal from HubSpot CRM by ID. Needs `dealId`.
- `get_sequence_enrollment_status`: Check whether a HubSpot contact is currently enrolled in a sales or service sequence. Needs `contactId`.
- `list_sequences`: List HubSpot sales or service sequences for a HubSpot user.
- `get_sequence`: Retrieve details for a specific HubSpot sales or service sequence, including steps, settings, and dependencies. Needs `sequenceId`.
- `who_am_i`: Identify the HubSpot user and account connected to this integration.

### Write tools (16)

- `create_pipeline`: Create a new pipeline with stages in HubSpot for deals, tickets, or orders. Needs `objectType`, `label`, `displayOrder` and `stages`.
- `update_deal`: Update an existing deal's properties in HubSpot CRM. Needs `dealId` and `properties`.
- `update_contact`: Update an existing contact's properties in HubSpot CRM. Needs `contactId` and `properties`.
- `update_list_membership`: Add or remove records from a manually managed HubSpot list. Needs `listId`.
- `create_association`: Create an association (relationship) between two CRM objects in HubSpot. Needs `fromObjectType`, `fromObjectId`, `toObjectType`, `toObjectId` and `associationTypeId`.
- `create_deal`: Create a new deal in HubSpot CRM. Needs `properties`.
- `create_ticket`: Create a new support ticket in HubSpot. Needs `properties`.
- `create_property`: Create a new custom property on a CRM object type in HubSpot. Needs `objectType`, `name`, `label`, `type`, `fieldType` and `groupName`.
- `update_ticket`: Update an existing ticket's properties in HubSpot. Needs `ticketId` and `properties`.
- `update_company`: Update an existing company's properties in HubSpot CRM. Needs `companyId` and `properties`.
- `create_engagement`: Create a new engagement (note, email, call, meeting, or task) in HubSpot and optionally associate it with CRM records. Needs `engagementType` and `properties`.
- `create_contact`: Create a new contact in HubSpot CRM. Needs `properties`.
- `create_company`: Create a new company in HubSpot CRM. Needs `properties`.
- `update_engagement`: Update an existing engagement's properties in HubSpot. Needs `engagementType`, `engagementId` and `properties`.
- `create_list`: Create a new contact list in HubSpot. Needs `name` and `processingType`.
- `enroll_contact_in_sequence`: Enroll a HubSpot contact in a sales or service sequence using a connected sender email address. Needs `sequenceId`, `contactId` and `senderEmail`.

### Destructive tools (8)

- `delete_ticket`: Archive (soft delete) a ticket in HubSpot. Needs `ticketId`.
- `delete_deal`: Archive (soft delete) a deal in HubSpot CRM. Needs `dealId`.
- `delete_contact`: Archive (soft delete) a contact in HubSpot CRM. Needs `contactId`.
- `delete_company`: Archive (soft delete) a company in HubSpot CRM. Needs `companyId`.
- `delete_pipeline`: Delete a pipeline from HubSpot. Needs `objectType` and `pipelineId`.
- `delete_list`: Delete a list from HubSpot. Needs `listId`.
- `delete_association`: Remove an association between two CRM objects in HubSpot. Needs `fromObjectType`, `fromObjectId`, `toObjectType` and `toObjectId`.
- `delete_engagement`: Delete an engagement (note, email, call, meeting, or task) from HubSpot. Needs `engagementType` and `engagementId`.

## Triggers

HubSpot has 2 triggers, which fire on events in HubSpot:

- `crm_object_webhook`
- `crm_object_changes`: [Polling fallback] Triggers when CRM objects (contacts, companies, deals, tickets) are created or modified in HubSpot.

## 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 HubSpot 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
- [HubSpot on metorial.com](https://metorial.com/integrations/hubspot): the integration overview