@iamsamuelfraga/mcp-hubspot
A comprehensive MCP server providing Claude with enterprise-grade access to HubSpot CRM, including contacts, deals, quotes, workflows, and automation through 37 tools.
README
@iamsamuelfraga/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, deals, quotes, workflows, automation callbacks, and more, all through 37 battle-tested tools.
Features
- 37 Tools Across 6 Domains — 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 Search — filter groups, multiple operators, multi-field sorting, and cursor pagination
- Deal & Quote Assembly — merge duplicate deals, assemble quotes from existing deals
- Association Management — link any two CRM objects with typed association labels
- Custom Properties — discover, read, and create property definitions for any object type
- 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_TOOLSETS - Full TypeScript — strict types, Zod validation, and comprehensive TSDoc
Tool Categories
| Domain | Tools | Description |
|---|---|---|
| CRM | 11 | Generic CRUD and batch for all object types (contacts, companies, deals, tickets, quotes, line_items, and engagement types) |
| Sales | 2 | Deal merging and quote assembly |
| Associations | 5 | Create, archive, list, and batch-create object associations |
| Properties | 3 | List, get, and create custom property definitions |
| 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 |
Installation
Global install
npm install -g @iamsamuelfraga/mcp-hubspot
Via npx (no install needed)
npx @iamsamuelfraga/mcp-hubspot
Configuration
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", "@iamsamuelfraga/mcp-hubspot"],
"env": {
"HUBSPOT_ACCESS_TOKEN": "pat-na1-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}
}
}
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
HUBSPOT_ACCESS_TOKEN |
Yes | — | HubSpot Private App access token (pat-na1-...) |
HUBSPOT_TOOLSETS |
No | all | Comma-separated domains to enable: sales,engagements,associations,properties,workflows,automation |
LOG_LEVEL |
No | info |
Logging level: debug, info, warn, error |
Required Scopes
Grant only the scopes your use-case needs:
| Toolset | Required Scopes |
|---|---|
sales |
crm.objects.contacts.read, crm.objects.contacts.write, crm.objects.deals.read, crm.objects.deals.write, crm.objects.quotes.read, crm.objects.quotes.write |
engagements |
crm.objects.contacts.read, crm.objects.contacts.write, crm.objects.engagements.read, crm.objects.engagements.write |
associations |
crm.objects.contacts.read, crm.objects.contacts.write |
properties |
crm.schemas.deals.read, crm.schemas.contacts.read |
workflows |
automation (requires BETA access approval from HubSpot) |
automation |
automation |
Advanced Configuration Examples
Enable only sales and properties toolsets:
{
"mcpServers": {
"hubspot": {
"command": "npx",
"args": ["-y", "@iamsamuelfraga/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_search - Create the deal with
hubspot_crm_create(objectType: deals) - Create the line item with
hubspot_crm_create(objectType: lineItems) - Link them with
hubspot_associations_create - Associate 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 operators - Set 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_get - Enroll with
hubspot_enrollment_enroll - Confirm 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
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 pipeline - Batch cap: All
hubspot_crm_batch_*tools enforce a hard limit of 100 objects per call; split larger sets across multiple calls - Workflows 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://scopes-guide |
HubSpot Private App Scopes Guide | Required OAuth scopes per toolset/domain |
hubspot://crm-object-types |
CRM Object Types Catalog | Supported objectType values and key properties |
hubspot://conventions |
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-deal-with-line-items |
Create a Deal and attach Line Items from HubSpot Products |
assemble-quote |
Assemble a HubSpot Quote from an existing Deal |
log-engagement-and-associate |
Log a CRM engagement (call, email, or meeting) and associate it with contacts/deals |
enroll-contact-in-workflow |
Enroll a contact (or other object) in a HubSpot Workflow |
search-crm-records |
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.
License
MIT — Copyright (c) 2025 Samuel Fraga
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.