Set up HubSpot in Metorial for Claude, ChatGPT and Cursor
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'll 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 with at least one access group
- An account with HubSpot for each person who connects
- For the CLI steps: the Metorial 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.
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.
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.
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
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
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.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from HubSpot.
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:
Employee: connect HubSpot
In the portal
Open HubSpot in the catalog
Sign in to your portal and open HubSpot. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A HubSpot sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
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.
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.
Check it worked
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. NeedsticketId.list_pipelines: List all pipelines for a given object type in HubSpot. NeedsobjectType.get_contact: Retrieve a contact from HubSpot CRM by ID. NeedscontactId.get_associations: Retrieve all associations of a specific type for a CRM object. NeedsfromObjectType,fromObjectIdandtoObjectType.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. NeedsownerId.get_engagement: Retrieve an engagement (note, email, call, meeting, or task) from HubSpot by ID and type. NeedsengagementTypeandengagementId.search_crm: Search for CRM objects in HubSpot using filters, query text, and sorting. NeedsobjectType.list_properties: List all properties defined for a CRM object type in HubSpot. NeedsobjectType.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. NeedscompanyId.search_lists: Search for lists in HubSpot by name. Needsquery.get_pipeline: Retrieve a specific pipeline with its stages from HubSpot. NeedsobjectTypeandpipelineId.get_list: Retrieve a list from HubSpot by ID, including its metadata and membership count. NeedslistId.get_deal: Retrieve a deal from HubSpot CRM by ID. NeedsdealId.get_sequence_enrollment_status: Check whether a HubSpot contact is currently enrolled in a sales or service sequence. NeedscontactId.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. NeedssequenceId.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. NeedsobjectType,label,displayOrderandstages.update_deal: Update an existing deal's properties in HubSpot CRM. NeedsdealIdandproperties.update_contact: Update an existing contact's properties in HubSpot CRM. NeedscontactIdandproperties.update_list_membership: Add or remove records from a manually managed HubSpot list. NeedslistId.create_association: Create an association (relationship) between two CRM objects in HubSpot. NeedsfromObjectType,fromObjectId,toObjectType,toObjectIdandassociationTypeId.create_deal: Create a new deal in HubSpot CRM. Needsproperties.create_ticket: Create a new support ticket in HubSpot. Needsproperties.create_property: Create a new custom property on a CRM object type in HubSpot. NeedsobjectType,name,label,type,fieldTypeandgroupName.update_ticket: Update an existing ticket's properties in HubSpot. NeedsticketIdandproperties.update_company: Update an existing company's properties in HubSpot CRM. NeedscompanyIdandproperties.create_engagement: Create a new engagement (note, email, call, meeting, or task) in HubSpot and optionally associate it with CRM records. NeedsengagementTypeandproperties.create_contact: Create a new contact in HubSpot CRM. Needsproperties.create_company: Create a new company in HubSpot CRM. Needsproperties.update_engagement: Update an existing engagement's properties in HubSpot. NeedsengagementType,engagementIdandproperties.create_list: Create a new contact list in HubSpot. NeedsnameandprocessingType.enroll_contact_in_sequence: Enroll a HubSpot contact in a sales or service sequence using a connected sender email address. NeedssequenceId,contactIdandsenderEmail.
Destructive tools (8)
delete_ticket: Archive (soft delete) a ticket in HubSpot. NeedsticketId.delete_deal: Archive (soft delete) a deal in HubSpot CRM. NeedsdealId.delete_contact: Archive (soft delete) a contact in HubSpot CRM. NeedscontactId.delete_company: Archive (soft delete) a company in HubSpot CRM. NeedscompanyId.delete_pipeline: Delete a pipeline from HubSpot. NeedsobjectTypeandpipelineId.delete_list: Delete a list from HubSpot. NeedslistId.delete_association: Remove an association between two CRM objects in HubSpot. NeedsfromObjectType,fromObjectId,toObjectTypeandtoObjectId.delete_engagement: Delete an engagement (note, email, call, meeting, or task) from HubSpot. NeedsengagementTypeandengagementId.
Triggers
HubSpot has 2 triggers, which fire on events in HubSpot:
crm_object_webhookcrm_object_changes: [Polling fallback] Triggers when CRM objects (contacts, companies, deals, tickets) are created or modified in HubSpot.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use HubSpot there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- HubSpot on metorial.com: the integration overview