HubSpot MCP server

Integrates with HubSpot's CRM platform to enable contact and company management, activity tracking, and conversation summaries with role-based access control
Back to servers
Setup instructions
Provider
Karan Singh
Release date
Mar 23, 2025
Language
Python

This MCP server integrates with HubSpot CRM to enable AI models to interact with HubSpot data and operations through a standardized interface. It also includes a shared space feature that allows teams to share conversation summaries in real-time.

Installation

Prerequisites

You'll need a HubSpot access token. Obtain one by creating a private app in your HubSpot account. Keep your token secure.

Installing via Smithery

To install buryhuang/mcp-hubspot for Claude Desktop automatically:

npx -y @smithery/cli install buryhuang/mcp-hubspot --client claude

Docker Installation

Option 1: Pull from Docker Hub

docker pull buryhuang/mcp-hubspot:latest

Option 2: Build Locally

docker build -t mcp-hubspot .

Run the container with your access token:

docker run -e HUBSPOT_ACCESS_TOKEN=your_access_token_here buryhuang/mcp-hubspot:latest

Or pass the token as an argument:

docker run buryhuang/mcp-hubspot:latest --access-token your_access_token_here

Usage

Configuration with Claude Desktop

Installing via Smithery

npx -y @smithery/cli@latest install mcp-hubspot --client claude

Docker Configuration

Add the following to your Claude Desktop configuration:

{
  "mcpServers": {
    "hubspot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HUBSPOT_ACCESS_TOKEN=your_access_token_here",
        "buryhuang/mcp-hubspot:latest"
      ]
    }
  }
}

Or using command-line argument:

{
  "mcpServers": {
    "hubspot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "buryhuang/mcp-hubspot:latest",
        "--access-token",
        "your_access_token_here"
      ]
    }
  }
}

Available Tools

Contact Management Tools

  • hubspot_create_contact: Create a new contact in HubSpot (with duplicate checking)
    • Inputs:
      • firstname (string)
      • lastname (string)
      • email (string, optional)
      • properties (dict, optional; e.g., {"phone": "123456789", "company": "HubSpot"})

Company Management Tools

  • hubspot_create_company: Create a new company in HubSpot

    • Inputs:
      • name (string)
      • properties (dict, optional)
  • hubspot_get_company_activity: Retrieve activity history for a specific company

    • Input:
      • company_id (string)

Engagement Tools

  • hubspot_get_recent_engagements: Retrieve recent engagement activities

    • Inputs:
      • days (integer, default 7)
      • limit (integer, default 50)
  • hubspot_get_recent_companies: Retrieve most recently active companies

    • Input:
      • limit (integer, default 10)
  • hubspot_get_recent_contacts: Retrieve most recently active contacts

    • Input:
      • limit (integer, default 10)

Shared Space Tools

  • create_shared_summary: Create a new conversation summary in the shared space

    • Inputs:
      • user_id (string, the user's email/ID)
      • company_id (string)
      • summary (string)
  • get_shared_summaries: Retrieve all conversation summaries for a given company

    • Inputs:
      • user_id (string)
      • company_id (string)

Example Prompts

Creating HubSpot Contacts

You can create contacts by copying from a LinkedIn profile:

- 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

Accessing Pipeline Information

- What's happening latestly with my pipeline?

Shared Space Example

After a meeting, you might see a prompt like: "Kya aap is conversation summary ko company ke shared space mein share karna chahenge? (Yes/No)"

On confirmation, the conversation summary is stored centrally and accessible to all authorized managers in your company.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "hubspot" '{"command":"docker","args":["run","-i","--rm","-e","HUBSPOT_ACCESS_TOKEN=your_access_token_here","buryhuang/mcp-hubspot:latest"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "hubspot": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "HUBSPOT_ACCESS_TOKEN=your_access_token_here",
                "buryhuang/mcp-hubspot:latest"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "hubspot": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "-e",
                "HUBSPOT_ACCESS_TOKEN=your_access_token_here",
                "buryhuang/mcp-hubspot:latest"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later