@iamsamuelfraga/mcp-hubspot
This server provides comprehensive MCP access to HubSpot CRM through 37–53 tools, enabling management of CRM objects, associations, properties, workflows, automation callbacks, and more.
CRM Object Management
CRUD & batch operations: Create, read, update, archive, and upsert deals, line items, products, quotes, calls, meetings, tasks, notes, and emails — up to 100 records per batch call
Smart search: Filter groups, multiple operators (EQ, NEQ, LT, GT, BETWEEN, IN, etc.), multi-field sorting, and cursor pagination
Sales Tools
Merge duplicate deals — absorb a secondary deal into a primary (irreversible)
Assemble quotes — create a HubSpot Quote and associate it to a deal and line items in one call
Association Management
Create, archive, and list associations between any two CRM object types (v4 API)
Batch-create up to 100 association pairs in a single request
Discover valid association label types between object pairs
Custom Properties
List all properties for any CRM object type (standard + custom)
Get specific property definitions (type, field type, options, etc.)
Create custom properties with various types (text, number, date, enumeration, boolean, etc.)
Workflow Automation (v4 BETA)
List, get, create, update, and delete automation workflows
Batch read multiple workflows by ID
Retrieve associated email campaigns and performance metrics
Map legacy v3 workflow IDs to v4 flow IDs
Automation Callbacks
Complete single or batch async custom-action callbacks, reporting execution state (SUCCESS, FAIL_CONTINUE, or BLOCK)
Contact Enrollment (v2)
Enroll or unenroll contacts in workflows by email
Retrieve all active enrollments for a contact by HubSpot VID
Legacy Workflows (v3)
Read-only access to list and get existing v3 workflow definitions
Custom Workflow Actions (requires developer API key + App ID)
16 additional tools to manage custom action definitions, revisions, functions, and requires-object settings
Resources & Prompts
Static reference resources for HubSpot scopes, CRM object types, and usage conventions
Guided prompts for common multi-step operations (e.g., creating deals with line items, enrolling contacts)
Provides comprehensive tools for managing HubSpot CRM, including CRUD operations on contacts, companies, deals, tickets, quotes, line items, and engagements; batch operations; smart search with filters and pagination; association management; custom property definitions; workflow automation (v4 BETA and v3 legacy); enrollment management; and delayed workflow callbacks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@iamsamuelfraga/mcp-hubspotlist all deals won this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@nubiia/mcp-hubspot
The most complete HubSpot MCP server for Claude.
A Model Context Protocol (MCP) server that gives Claude comprehensive, enterprise-grade access to HubSpot CRM — covering contacts, companies, deals, tickets, quotes, owners, pipelines, custom object schemas, engagements, workflows, and more, all through 54 battle-tested tools (70 with a developer key).
Built and maintained by Nubiia — automatización e integraciones con IA para negocios (MCP, HubSpot, Pipedrive, Holded y más). ¿Quieres algo así para tu empresa? Escríbenos en nubiia.es.
Features
54 Tools Across 10 Toolsets (+ 16 with developer key = 70 total) — complete coverage of the HubSpot CRM API surface
Workflow Automation v4 BETA — create, update, monitor, and delete automation workflows
Contact Enrollment — enroll and unenroll any CRM object in a workflow
CRM Object CRUD — full create/read/update/archive for contacts, companies, deals, tickets, quotes, line_items, notes, calls, emails, meetings, and tasks
Batch Operations — up to 100 objects per call for efficient bulk reads and writes
Smart & Guided Search — filter groups with multiple operators and sorting, plus guided helpers (
search_by_property,search_recent) so you don't hand-write filtersOwner Resolution — translate
hubspot_owner_idvalues into real users (name, email)Pipelines & Stages — translate
dealstage/ ticket stage IDs into readable stage labelsCustom Object Schemas — define, inspect, update, and delete custom object types
Engagement Logging — log a note/call/email/meeting/task and associate it to records in one call
Deal & Quote Assembly — merge duplicate deals, assemble quotes from existing deals
Association Management — link any two CRM objects with typed association labels
Properties & Groups — discover, create, update, and archive property definitions and property groups
Rate Limiting + Retry Logic — automatic backoff to protect your HubSpot API quota
MCP Resources — three static reference resources (scope guide, object type catalog, conventions)
MCP Prompts — five guided workflows to orchestrate multi-step CRM operations
Toolset Filtering — enable only the domains you need via
HUBSPOT_TOOLSETSFull TypeScript — strict types, Zod validation, and comprehensive TSDoc
Related MCP server: hubspot-mcp
Tool Categories
Domain | Tools | Description |
CRM | 13 | Generic CRUD and batch for all object types, advanced search, plus guided |
Sales | 2 | Deal merging and quote assembly |
Engagements | 1 | Log a note/call/email/meeting/task and associate it to records in one call |
Associations | 5 | Create, archive, list, and batch-create object associations |
Properties | 7 | List, get, create, update, archive properties + list/create property groups |
Owners | 2 | Resolve |
Pipelines | 3 | Resolve pipeline and stage IDs to readable stages (list / get / get stages) |
Schemas | 5 | Manage custom object type definitions (list / get / create / update / delete) |
Workflows v4 BETA | 9 | Create, update, delete, and monitor automation workflows |
Automation | 2 | Complete delayed workflow callbacks (single and batch) |
Enrollment | 5 | Enroll/unenroll objects in workflows; v3 legacy reads ¹ |
Actions (dev key) | 16 | Custom Workflow Action definitions — requires |
¹ The v3 legacy tools (
hubspot_workflows_v3_list,hubspot_workflows_v3_get) belong to theautomationtoolset — activate them withHUBSPOT_TOOLSETS=automation.² Actions tools use developer API key auth (hapikey) instead of a Private App access token and are only registered when
HUBSPOT_DEVELOPER_API_KEYis present. See Actions Toolset below.
Installation
Global install
npm install -g @nubiia/mcp-hubspotVia npx (no install needed)
npx @nubiia/mcp-hubspotConfiguration
Prerequisites
You need a HubSpot Private App to obtain an access token:
Log in to HubSpot and go to Settings → Integrations → Private Apps
Click Create a Private App
Give it a name and select the required scopes (see table below)
Click Create app and copy the generated access token (
pat-na1-...)
Claude Desktop Setup
Add the server to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"hubspot": {
"command": "npx",
"args": ["-y", "@nubiia/mcp-hubspot"],
"env": {
"HUBSPOT_ACCESS_TOKEN": "pat-na1-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}
}
}Environment Variables
Variable | Required | Default | Description |
| Yes | — | HubSpot Private App access token ( |
| No | all | Comma-separated domains to enable: |
| No |
| Logging level: |
Required Scopes
Grant only the scopes your use-case needs:
Toolset | Required Scopes |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Advanced Configuration Examples
Enable only sales and properties toolsets:
{
"mcpServers": {
"hubspot": {
"command": "npx",
"args": ["-y", "@nubiia/mcp-hubspot"],
"env": {
"HUBSPOT_ACCESS_TOKEN": "pat-na1-...",
"HUBSPOT_TOOLSETS": "sales,properties"
}
}
}
}Enable debug logging for troubleshooting:
{
"env": {
"HUBSPOT_ACCESS_TOKEN": "pat-na1-...",
"LOG_LEVEL": "debug"
}
}Usage Examples
Create a deal and attach products
"Create a deal named 'Acme Corp - Enterprise Plan' closing on March 31st, add a line item for the Enterprise annual plan at $24,000, and associate it with the contact john.doe@acme.com."
Claude will:
Search for the contact by email using
hubspot_crm_searchCreate the deal with
hubspot_crm_create(objectType: deals)Create the line item with
hubspot_crm_create(objectType: lineItems)Link them with
hubspot_associations_createAssociate the contact with
hubspot_associations_create
Find all deals closing this month above $10k
"Search for all open deals with a close date in the current month and amount greater than $10,000. Sort by amount descending."
Claude will:
Use
hubspot_crm_searchwith filterGroups combiningclosedateBETWEEN andamountGT operatorsSet sorts to
[{ propertyName: "amount", direction: "DESCENDING" }]Paginate through results using the
aftercursor if there are more than one page
Enroll a contact who just filled a form in the onboarding workflow
"The contact with ID 98765 just submitted the trial sign-up form. Enroll them in the onboarding workflow."
Claude will:
Use
hubspot_workflows_listto find the onboarding workflow (filtering by objectTypeId for contacts)Verify the contact exists with
hubspot_crm_getEnroll with
hubspot_enrollment_enrollConfirm enrollment with
hubspot_enrollment_get_enrollments
Workflows v4 BETA
The workflows toolset uses HubSpot's Workflows v4 API, which is currently in BETA:
Breaking changes may occur without notice
Access requires explicit approval from HubSpot — contact HubSpot support if you receive 403 errors
The following tools are included in the
workflowstoolset:hubspot_workflows_list,hubspot_workflows_get,hubspot_workflows_create,hubspot_workflows_update,hubspot_workflows_delete,hubspot_workflows_batch_read,hubspot_workflows_email_campaigns,hubspot_workflows_performance,hubspot_workflows_id_mappings
For stable, read-only access to existing workflows, use the legacy v3 tools included in the automation toolset:
hubspot_workflows_v3_list— list all workflowshubspot_workflows_v3_get— get a specific workflow by ID
Actions Toolset (Phase 7)
The actions toolset exposes 16 tools for managing Custom Workflow Action definitions — the
reusable action types that developers can publish to the HubSpot Workflows editor.
Required environment variables
Variable | Required | Description |
| Yes (for actions) | HubSpot developer API key — obtain from your developer account at developers.hubspot.com |
| Yes (for actions) | The HubSpot App ID that owns the action definitions |
Activation
Actions tools are only registered when HUBSPOT_DEVELOPER_API_KEY is present. They do not
appear in the tool list when only HUBSPOT_ACCESS_TOKEN is configured. You can also explicitly
enable them via HUBSPOT_TOOLSETS=actions (still requires the developer key).
Authentication
All 16 hubspot_actions_* tools authenticate via hapikey (developer API key appended to the
query string), not the Private App bearer token used by the other 37 tools.
Tools
Tool | Description |
| List all custom action definitions for an app |
| Create a new action definition |
| Get a single action definition |
| Update (PATCH) an action definition |
| Delete an action definition |
| List all revisions for an action |
| Get a specific revision |
| List all functions on an action |
| Get a function by type |
| Create or replace a function by type |
| Delete a function by type |
| Get a function by type and ID |
| Replace a function by type and ID |
| Delete a function by type and ID |
| Get the requires-object setting for an action |
| Set the requires-object setting for an action |
Claude Desktop configuration example
{
"mcpServers": {
"hubspot": {
"command": "npx",
"args": ["-y", "@nubiia/mcp-hubspot"],
"env": {
"HUBSPOT_ACCESS_TOKEN": "pat-na1-...",
"HUBSPOT_DEVELOPER_API_KEY": "your-developer-api-key",
"HUBSPOT_APP_ID": "123456"
}
}
}
}Known Limitations
Search latency: Records created or updated via the API may take 1–5 minutes to appear in
hubspot_crm_searchresults due to HubSpot's indexing pipelineBatch cap: All
hubspot_crm_batch_*tools enforce a hard limit of 100 objects per call; split larger sets across multiple callsWorkflows v4 API: Subject to breaking changes while in BETA; HubSpot support approval required for access
Quote assembly:
hubspot_quotes_assemblerequires the deal to have at least one associated line item; the call will fail otherwise
MCP Resources
Three static reference resources are available to LLM clients:
URI | Name | Description |
| HubSpot Private App Scopes Guide | Required OAuth scopes per toolset/domain |
| CRM Object Types Catalog | Supported objectType values and key properties |
| HubSpot MCP Usage Conventions | Rate limits, batch caps, search latency, pagination |
MCP Prompts
Five guided workflow prompts help orchestrate multi-step operations:
Prompt | Description |
| Create a Deal and attach Line Items from HubSpot Products |
| Assemble a HubSpot Quote from an existing Deal |
| Log a CRM engagement (call, email, or meeting) and associate it with contacts/deals |
| Enroll a contact (or other object) in a HubSpot Workflow |
| Search CRM records with filters, sort, and pagination |
Contributing
See CONTRIBUTING.md for development setup, code style guidelines, testing requirements, and how to add new tools.
Security
See SECURITY.md for the vulnerability reporting policy and security best practices.
About Nubiia
This MCP server is built and maintained by Nubiia.
Nubiia ayuda a empresas a automatizar procesos e integrar sus herramientas con IA: servidores MCP a medida, integraciones con CRMs y ERPs (HubSpot, Pipedrive, Holded), y agentes que conectan tus datos de negocio con asistentes como Claude. Este @nubiia/mcp-hubspot es un ejemplo open source de lo que hacemos.
👉 ¿Quieres una integración o automatización con IA para tu negocio? nubiia.es · ✉️ hola@nubiia.es
Author
Built by Nubiia — nubiia.es · hola@nubiia.es
Maintainer: Samuel Fraga — GitHub
Links
License
MIT — Copyright (c) 2025 Samuel Fraga
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nubiia-dev/mcp-hubspot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server