mcp hubspot
Enables AI models to interact with HubSpot CRM data and operations through a standardized interface, supporting contact and company management.
Enables AI models to interact with HubSpot CRM data and operations through a standardized interface, supporting contact and company management.
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.
No resources are implemented. At the end of the day, tools are all we need.
Create Hubspot contacts by copying from LinkedIn profile webpage:
Create HubSpot contacts and companies from following:
John Doe
Software Engineer at Tech Corp
San Francisco Bay Area • 500+ connections
Experience
Tech Corp
Software Engineer
Jan 2020 - Present · 4 yrs
San Francisco, California
Previous Company Inc.
Senior Developer
2018 - 2020 · 2 yrs
Education
University of California, Berkeley
Computer Science, BS
2014 - 2018
Get latest activities for your company:
What's happening latestly with my pipeline?
The server offers several tools for managing HubSpot objects:
hubspot_create_contact
firstname
(string): Contact's first namelastname
(string): Contact's last nameemail
(string, optional): Contact's email addressproperties
(dict, optional): Additional contact properties{"phone": "123456789", "company": "HubSpot"}
company
is provided in properties, also checks for matches with the same companyhubspot_create_company
name
(string): Company nameproperties
(dict, optional): Additional company properties{"domain": "example.com", "industry": "Technology"}
Behavior:
hubspot_get_company_activity
company_id
(string): HubSpot company IDhubspot_get_recent_engagements
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
limit
(integer, optional): Maximum number of companies to return (default: 10)Returns: Array of company objects with full metadata
hubspot_get_recent_contacts
limit
(integer, optional): Maximum number of contacts to return (default: 10)To install buryhuang/mcp-hubspot for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install buryhuang/mcp-hubspot --client claude
You'll need a HubSpot access token. You can obtain this by: 1. 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.
You can either build the image locally or pull it from Docker Hub. The image is built for the Linux platform.
docker pull buryhuang/mcp-hubspot:latest
docker build -t mcp-hubspot .
Run the container:
docker run n -e HUBSPOT_ACCESS_TOKEN=your_access_token_here n buryhuang/mcp-hubspot:latest
You can also pass the access token directly as a command-line argument:
docker run n buryhuang/mcp-hubspot:latest n --access-token your_access_token_here
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):
docker buildx create --use
Build and push the image for multiple platforms:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t buryhuang/mcp-hubspot:latest --push .
Verify the image is available for the specified platforms:
docker buildx imagetools inspect buryhuang/mcp-hubspot:latest
To install mcp-hubspot for Claude Desktop automatically via Smithery:
npx -y @smithery/cli@latest install mcp-hubspot --client claude
{
"mcpServers": {
"hubspot": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"HUBSPOT_ACCESS_TOKEN=your_access_token_here",
"buryhuang/mcp-hubspot:latest"
]
}
}
}
You can also use the command-line argument:
{
"mcpServers": {
"hubspot": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"buryhuang/mcp-hubspot:latest",
"--access-token",
"your_access_token_here"
]
}
}
}
To set up the development environment:
pip install -e .
This project is licensed under the MIT License.
[
{
"description": "Get contacts from HubSpot",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "hubspot_get_contacts"
},
{
"description": "Create a new contact in HubSpot",
"inputSchema": {
"properties": {
"email": {
"description": "Contact's email address",
"type": "string"
},
"firstname": {
"description": "Contact's first name",
"type": "string"
},
"lastname": {
"description": "Contact's last name",
"type": "string"
},
"properties": {
"description": "Additional contact properties",
"type": "object"
}
},
"required": [
"firstname",
"lastname"
],
"type": "object"
},
"name": "hubspot_create_contact"
},
{
"description": "Get companies from HubSpot",
"inputSchema": {
"properties": {},
"type": "object"
},
"name": "hubspot_get_companies"
},
{
"description": "Create a new company in HubSpot",
"inputSchema": {
"properties": {
"name": {
"description": "Company name",
"type": "string"
},
"properties": {
"description": "Additional company properties",
"type": "object"
}
},
"required": [
"name"
],
"type": "object"
},
"name": "hubspot_create_company"
},
{
"description": "Get activity history for a specific company",
"inputSchema": {
"properties": {
"company_id": {
"description": "HubSpot company ID",
"type": "string"
}
},
"required": [
"company_id"
],
"type": "object"
},
"name": "hubspot_get_company_activity"
}
]