/hubspot:api-patternsfrom hubspot
Provides patterns for HubSpot's MCP server and CRM Search API: connection via Conduit, OAuth scopes, sensitive-data exclusion, filter/sort/pagination syntax, rate limits, and error handling.
Ships in hubspot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
HubSpot provides a first-party remote MCP server, which Conduit brokers as the hubspot connector. Its CRM tools are generic over object type and are backed by the HubSpot CRM Search API; they cover contacts, companies, deals, tickets, tasks, notes, associations and custom objects. This skill covers MCP server connection, the complete tool reference, search patterns, error handling, and best practices.
hubspot-contacts, hubspot-companies, hubspot-deals, or
hubspot-tickets.warmly-api-patterns or pandadoc-api-patterns.Through Conduit, the hubspot connector is HubSpot's own hosted MCP server at https://mcp.hubspot.com/anthropic/v1/mcp. Connect it once in the Conduit web UI: HubSpot's OAuth flow runs there, Conduit stores and refreshes the token, and sends it upstream as Authorization: Bearer. Nothing is configured on the client; this plugin ships no .mcp.json, so install the wyre-gateway plugin to reach Conduit at https://conduit.wyre.ai/v1/mcp.
The older community server (WYRE-AI/hubspot-mcp, whose tools were prefixed hubspot_ and split per object type) is not what Conduit serves. Those names do not exist on the live connector.
Scopes are granted on HubSpot's consent screen during the Conduit connect flow. A tool whose object type the connected user cannot read or write returns a permission error rather than an empty result; discover_hubspot_schema shows which object types are readable and writable.
HubSpot's hosted server excludes properties marked as sensitive (for example PHI) from results. A property that exists in the portal but never appears in a response may be one of these.
| Tool | Purpose | Key arguments |
|---|---|---|
search_crm_objects | Search and list records of one object type | objectType (contacts, companies, deals, tickets, notes, tasks, ... or a custom p<portalId>_<name>), query, filterGroups (property filters + associatedWith), properties, sorts, limit (max 200), offset |
get_crm_objects | Fetch up to 100 records of one type by ID | objectType, objectIds, properties |
manage_crm_objects | Create or update records, and create associations. Not classified in Conduit, so it needs the admin grant. | createRequest / updateRequest with objects[] (objectType, properties, associations, objectId on update); confirmationStatus |
query_crm_data | Read-only SQL over CRM data, for counts and aggregates | sql; call tool_guidance first |
discover_hubspot_schema | Object types (including custom objects) and access | — |
There is no delete tool and no separate association tool. Associations are read with an associatedWith filter on search_crm_objects and written through the associations array on manage_crm_objects. Notes and tasks are created with manage_crm_objects (objectType: "notes" / "tasks") and associated to the record they belong to.
| Tool | Purpose |
|---|---|
search_properties | Find property definitions by keyword (all properties when no keywords) |
get_properties | Full definitions, including enumeration values, for named properties |
search_owners | Resolve owners by name, email or owner ID (hubspot_owner_id values) |
get_user_details | The connected user's identity, owner ID, teams and roles |
tool_guidance | Required guidance before query_crm_data, and usage notes for other tools |
The same connector also serves marketing and CMS tools that this plugin does not cover in depth: manage_campaign_objects, read_campaign_data, get_campaign_attribution_reports, manage_segment, query_segments, manage_social_posts, read_social_posts, get_social_channels, get_social_post_analytics, manage_blog_post, manage_landing_page, manage_website_page, get_content_analytics_report, manage_saved_reports, get_aeo_metrics, manage_aeo_prompts, manage_aeo_recommendations, search_intent_signals, get_organization_details, manage_onboarding, render_asset and import-claude-design-from-url. Treat every manage_* tool as a write.
manage_crm_objects takes a confirmationStatus. Set CONFIRMED only after the user has approved the exact objects and property values; CONFIRMATION_WAIVED_FOR_SESSION only if the user explicitly said not to ask again this session. Creating or updating a contact can enrol that person in HubSpot workflows that send email (see GOVERNANCE.md).
HubSpot MCP tools that search records use the CRM Search API under the hood. Search tools accept filterGroups for structured queries:
Filter Group Structure:
{
"filterGroups": [
{
"filters": [
{
"propertyName": "email",
"operator": "CONTAINS_TOKEN",
"value": "acme.com"
}
]
}
]
}
| Operator | Description | Example |
|---|---|---|
EQ | Equals | {"propertyName": "lifecyclestage", "operator": "EQ", "value": "customer"} |
NEQ | Not equals | {"propertyName": "lifecyclestage", "operator": "NEQ", "value": "subscriber"} |
LT | Less than | {"propertyName": "amount", "operator": "LT", "value": "1000"} |
LTE | Less than or equal | {"propertyName": "amount", "operator": "LTE", "value": "5000"} |
GT | Greater than | {"propertyName": "amount", "operator": "GT", "value": "10000"} |
GTE | Greater than or equal | {"propertyName": "createdate", "operator": "GTE", "value": "2026-01-01"} |
CONTAINS_TOKEN | Contains token (word match) | {"propertyName": "email", "operator": "CONTAINS_TOKEN", "value": "acme"} |
NOT_CONTAINS_TOKEN | Does not contain token | {"propertyName": "email", "operator": "NOT_CONTAINS_TOKEN", "value": "test"} |
HAS_PROPERTY | Property has a value | {"propertyName": "phone", "operator": "HAS_PROPERTY"} |
NOT_HAS_PROPERTY | Property has no value | {"propertyName": "phone", "operator": "NOT_HAS_PROPERTY"} |
IN | Value in list | {"propertyName": "dealstage", "operator": "IN", "values": ["stage1", "stage2"]} |
NOT_IN | Value not in list | {"propertyName": "dealstage", "operator": "NOT_IN", "values": ["closedlost"]} |
BETWEEN | Between two values | {"propertyName": "amount", "operator": "BETWEEN", "value": "1000", "highValue": "5000"} |
{
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
]
}
Sort Directions: ASCENDING, DESCENDING
search_crm_objects pages with an integer offset token:
| Parameter | Description | Default | Max |
|---|---|---|---|
limit | Results per page | 100 | 200 |
offset | Paging token from the previous page | None | - |
Iterating through all results:
search_crm_objects with limit (up to 200) and no offsetoffset set to itThe raw HubSpot REST after / paging.next.after cursor below is what the server translates; do not pass after to the MCP tool.
Single Resource:
{
"id": "12345",
"properties": {
"firstname": "John",
"lastname": "Smith",
"email": "[email protected]",
"company": "Acme Corporation",
"phone": "555-123-4567",
"lifecyclestage": "customer",
"createdate": "2025-06-15T10:30:00.000Z",
"lastmodifieddate": "2026-01-20T14:15:00.000Z"
},
"createdAt": "2025-06-15T10:30:00.000Z",
"updatedAt": "2026-01-20T14:15:00.000Z"
}
Search Results:
{
"total": 47,
"results": [
{
"id": "12345",
"properties": {
"firstname": "John",
"lastname": "Smith",
"email": "[email protected]"
}
}
],
"paging": {
"next": {
"after": "12345"
}
}
}
| Metric | Limit |
|---|---|
| Requests per 10 seconds | 100 (per OAuth app) |
| Requests per day | 500,000 (varies by plan) |
| Search requests per day | 1,000 (Free), 10,000+ (paid plans) |
When rate limited, the MCP tool will return a 429 error. Wait before retrying. The MCP server handles OAuth token refresh automatically.
| HubSpot Plan | Daily API Limit | Search Limit |
|---|---|---|
| Free | 100,000 | 1,000 |
| Starter | 250,000 | 5,000 |
| Professional | 500,000 | 10,000 |
| Enterprise | 1,000,000 | 25,000 |
| Error | Cause | Resolution |
|---|---|---|
| Tool not found | MCP server not connected | Verify OAuth credentials and server URL |
| 401 Unauthorized | OAuth token expired or invalid | Restart MCP connection to re-authenticate |
| 403 Forbidden | Insufficient scopes or plan limitation | Check HubSpot plan tier and MCP Auth App permissions |
| 404 Not Found | Invalid object ID | Verify the record ID exists |
| 409 Conflict | Duplicate record | Check for existing records before creating |
| 429 Too Many Requests | Rate limit exceeded | Wait 10 seconds and retry |
| Invalid property | Property name not valid | Use search_properties to find the property, then get_properties for its definition and allowed values |
get_user_details confirms the connection and returns the user's owner ID. If it also returns 401, fix the HubSpot connection in Conduit rather than retryingdiscover_hubspot_schema shows which object types the connected user can read and writesearch_crm_objects with filterGroups instead of listing all recordslimit=100 to minimize total tool callssearch_properties / get_properties to discover available fields before searchingWhat SKILL.md sets; muted values are Claude Code's defaults
When connecting to the HubSpot MCP server, constructing CRM search queries, or diagnosing auth, scope, and rate-limit failures. Use when: hubspot api, hubspot query, hubspot filter, hubspot rate limit, hubspot authentication, hubspot mcp, hubspot oauth, hubspot request, hubspot scope, hubspot tools, hubspot connection, or hubspot search api.
Three short reads, in order
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin hubspot6 skills in this plugin
/activitiesHubSpot ActivitiesHubSpot tasks, notes, and associations: task priority and status values, notes-vs-tasks semantics, the association type matrix linking contacts, companies, deals, and tickets, and engagement-history workflows.
/companiesHubSpot CompaniesHubSpot company records: core fields, industry classification values, lifecycle stages, domain-based deduplication and automatic contact-company matching, and cross-referencing associated contacts, deals, and tickets.
/contactsHubSpot ContactsHubSpot contact records: core and MSP-relevant custom fields, lifecycle stages, lead status values, contact ownership, CRM search filter patterns, and associations to companies and deals.
/dealsHubSpot DealsHubSpot deal records and sales pipelines: deal fields, default and custom pipeline stages, deal amount conventions (MRR vs. TCV), forecast categories and weighted forecasting, and associating deals with contacts and companies.
/ticketsHubSpot TicketsHubSpot support tickets: core fields, default pipeline stages, priority levels, MSP ticket categories, SLA timestamp properties, and associating tickets with contacts, companies, and deals.
Other plugins' skills for the same job