HubSpot MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Provides integration with HubSpot CRM, enabling AI models to interact with HubSpot data including contacts, companies, and engagements. Offers tools for retrieving, creating, and managing HubSpot objects, as well as accessing recent engagement history.
HubSpot MCP Server
Overview
A Model Context Protocol (MCP) server implementation that provides integration with HubSpot CRM. This server enables AI models to interact with HubSpot data and operations through a standardized interface.
For more information about the Model Context Protocol and how it works, see Anthropic's MCP documentation.
Components
Resources
No resources are implemented. At the end of the day, tools are all we need.
Example Prompts
- Create Hubspot contacts by copying from LinkedIn profile webpage: Copy
- Get latest activities for your company:Copy
Tools
The server offers several tools for managing HubSpot objects:
Contact Management Tools
hubspot_create_contact
- Create a new contact in HubSpot (checks for duplicates before creation)
- Input:
firstname
(string): Contact's first namelastname
(string): Contact's last nameemail
(string, optional): Contact's email addressproperties
(dict, optional): Additional contact properties- Example:
{"phone": "123456789", "company": "HubSpot"}
- Example:
- Behavior:
- Checks for existing contacts with the same first name and last name
- If
company
is provided in properties, also checks for matches with the same company - Returns existing contact details if a match is found
- Creates new contact only if no match is found
Company Management Tools
hubspot_create_company
- Create a new company in HubSpot (checks for duplicates before creation)
- Input:
name
(string): Company nameproperties
(dict, optional): Additional company properties- Example:
{"domain": "example.com", "industry": "Technology"}
- Example:
- Behavior:
- Checks for existing companies with the same name
- Returns existing company details if a match is found
- Creates new company only if no match is found
hubspot_get_company_activity
- Get activity history for a specific company
- Input:
company_id
(string): HubSpot company ID
- Returns: Array of activity objects
Engagement Tools
hubspot_get_recent_engagements
- Get recent engagement activities across all contacts and companies
- Input:
days
(integer, optional): Number of days to look back (default: 7)limit
(integer, optional): Maximum number of engagements to return (default: 50)
- Returns: Array of engagement objects with full metadata
hubspot_get_recent_companies
- Get most recently active companies from HubSpot
- Input:
limit
(integer, optional): Maximum number of companies to return (default: 10)
- Returns: Array of company objects with full metadata
hubspot_get_recent_contacts
- Get most recently active contacts from HubSpot
- Input:
limit
(integer, optional): Maximum number of contacts to return (default: 10)
- Returns: Array of contact objects with full metadata
Setup
Installing via Smithery
To install buryhuang/mcp-hubspot for Claude Desktop automatically via Smithery:
Prerequisites
You'll need a HubSpot access token. You can obtain this by:
- Creating a private app in your HubSpot account:
Follow the HubSpot Private Apps Guide
- Go to your HubSpot account settings
- Navigate to Integrations > Private Apps
- Click "Create private app"
- Fill in the basic information:
- Name your app
- Add description
- Upload logo (optional)
- Define required scopes:
- tickets
- crm.objects.contacts.write
- crm.objects.contacts.sensitive.read
- crm.objects.companies.sensitive.read
- sales-email-read
- crm.objects.deals.sensitive.read
- crm.objects.companies.write
- crm.objects.companies.read
- crm.objects.deals.read
- crm.objects.deals.write
- crm.objects.contacts.read
- Review and create the app
- Copy the generated access token
Note: Keep your access token secure and never commit it to version control.
Docker Installation
You can either build the image locally or pull it from Docker Hub. The image is built for the Linux platform.
Supported Platforms
- Linux/amd64
- Linux/arm64
- Linux/arm/v7
Option 1: Pull from Docker Hub
Option 2: Build Locally
Run the container:
You can also pass the access token directly as a command-line argument:
Cross-Platform Publishing
To publish the Docker image for multiple platforms, you can use the docker buildx
command. Follow these steps:
- Create a new builder instance (if you haven't already):Copy
- Build and push the image for multiple platforms:Copy
- Verify the image is available for the specified platforms:Copy
Usage with Claude Desktop
Installing via Smithery
To install mcp-hubspot for Claude Desktop automatically via Smithery:
Docker Usage
You can also use the command-line argument:
Development
To set up the development environment:
License
This project is licensed under the MIT License.
You must be authenticated.
Enables AI models to interact with HubSpot CRM data and operations through a standardized interface, supporting contact and company management.