Back to MCP Servers
HubSpot MCP Server

HubSpot MCP Server

Public
SheffieldP/hubspot_mcp

Enables AI models to seamlessly access and manage HubSpot CRM data—including contacts, companies, and recent engagements—via a standardized Model Context Protocol interface with multi-user token support.

python
0 tools
May 30, 2025
Updated Jun 4, 2025

Supercharge Your AI with HubSpot MCP Server

MCP Server

Unlock the full potential of HubSpot MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

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

The server exposes the following resources:

  • hubspot://hubspot_contacts: A dynamic resource that provides access to HubSpot contacts
  • hubspot://hubspot_companies: A dynamic resource that provides access to HubSpot companies
  • hubspot://hubspot_recent_engagements: A dynamic resource that provides access to HubSpot engagements from the last 3 days

All resources auto-update as their respective objects are modified in HubSpot.

Example Prompts

  • 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?
    

Tools

The server offers several tools for managing HubSpot objects:

Contact Management Tools

  • hubspot_get_contacts

    • Retrieve contacts from HubSpot
    • No input required
    • Returns: Array of contact objects
  • hubspot_create_contact

    • Create a new contact in HubSpot (checks for duplicates before creation)
    • Input:
      • firstname (string): Contact's first name
      • lastname (string): Contact's last name
      • email (string, optional): Contact's email address
      • properties (dict, optional): Additional contact properties
        • Example: {"phone": "123456789", "company": "HubSpot"}
    • 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_get_companies

    • Retrieve companies from HubSpot
    • No input required
    • Returns: Array of company objects
  • hubspot_create_company

    • Create a new company in HubSpot (checks for duplicates before creation)
    • Input:
      • name (string): Company name
      • properties (dict, optional): Additional company properties
        • Example: {"domain": "example.com", "industry": "Technology"}
    • 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 HubSpot engagements from all companies and contacts from the last 3 days
    • No input required
    • Returns: Array of engagement objects with full metadata

Multi-User Support

This MCP server is designed to work with multiple HubSpot users, each with their own access token. The server does not use a global environment variable for the access token.

Instead, each request to the MCP server should include the user's specific access token in one of the following ways:

  1. In the request header: X-HubSpot-Access-Token: your-token-here
  2. In the request body as accessToken: {"accessToken": "your-token-here"}
  3. In the request body as hubspotAccessToken: {"hubspotAccessToken": "your-token-here"}

This design allows you to store user tokens in your own backend (e.g., Supabase) and pass them along with each request.

Example Multi-User Integration

// Example of how to use this MCP server in a multi-user setup async function makeHubSpotRequest(userId, action, params) { // Retrieve the user's HubSpot token from your database const userToken = await getUserHubSpotToken(userId); // Make request to MCP server with the user's token const response = await fetch('https://your-mcp-server.vercel.app/', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-HubSpot-Access-Token': userToken }, body: JSON.stringify({ action, ...params }) }); return await response.json(); }

Setup

Prerequisites

You'll need a HubSpot access token for each user. 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:

      • oauth (required)
    • Optional scopes:

      • crm.dealsplits.read_write
      • crm.objects.companies.read
      • crm.objects.companies.write
      • crm.objects.contacts.read
      • crm.objects.contacts.write
      • crm.objects.deals.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

docker pull buryhuang/mcp-hubspot:latest

Option 2: Build Locally

docker build -t mcp-hubspot .

Run the container:

docker run \ buryhuang/mcp-hubspot:latest

Cross-Platform Publishing

To publish the Docker image for multiple platforms, you can use the docker buildx command. Follow these steps:

  1. Create a new builder instance (if you haven't already):

    docker buildx create --use
  2. 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 .
  3. Verify the image is available for the specified platforms:

    docker buildx imagetools inspect buryhuang/mcp-hubspot:latest

Usage with Claude Desktop

Installing via Smithery

To install mcp-hubspot for Claude Desktop automatically via Smithery:

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

Docker Usage

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

Development

To set up the development environment:

pip install -e .

License

This project is licensed under the MIT License.

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • Mondaycom MCP Server

    Enables Model Context Protocol clients to seamlessly manage Monday.com boards, items, updates, and d...

    8 tools
    Added May 30, 2025
  • mcp-server-asana

    Enables seamless interaction with Asana API via Model Context Protocol, providing advanced task, pro...

    22 tools
    Added May 30, 2025
  • SQLite MCP Server

    A Model Context Protocol server enabling AI models to execute SQL queries, manage SQLite database sc...

    Added May 30, 2025
  • Gmail Plugin MCP Server

    Enables seamless Gmail integration via Model Context Protocol, allowing MCP clients to securely send...

    Added May 30, 2025
  • Postman MCP Server

    Enables running Postman collections via Newman through the Model Context Protocol, providing LLMs wi...

    1 tools
    Added May 30, 2025