Skip to main content

A simple Hubspot MCP server

Project description

HubSpot MCP Server

Docker Hub License: MIT

Overview

A Model Context Protocol (MCP) server that enables AI assistants to interact with HubSpot CRM data. This server bridges AI models with your HubSpot account, providing direct access to contacts, companies, and engagement data. Built-in vector storage and caching mechanisms help overcome HubSpot API limitations while improving response times.

Our implementation prioritizes the most frequently used, high-value HubSpot operations with robust error handling and API stability. Each component is optimized for AI-friendly interactions, ensuring reliable performance even during complex, multi-step CRM workflows.

Why MCP-HubSpot?

  • Direct CRM Access: Connect Claude and other AI assistants to your HubSpot data without intermediary steps
  • Context Retention: Vector storage with FAISS enables semantic search across previous interactions
  • Zero Configuration: Simple Docker deployment with minimal setup

Example Prompts

Create HubSpot contacts and companies from this LinkedIn profile:
[Paste LinkedIn profile text]
What's happening lately with my pipeline?

Available Tools

The server offers tools for HubSpot management and data retrieval:

Tool Purpose
hubspot_create_contact Create contacts with duplicate prevention
hubspot_create_company Create companies with duplicate prevention
hubspot_get_company_activity Retrieve activity for specific companies
hubspot_get_active_companies Retrieve most recently active companies
hubspot_get_active_contacts Retrieve most recently active contacts
hubspot_get_recent_conversations Retrieve recent conversation threads with messages
hubspot_search_data Semantic search across previously retrieved HubSpot data

Performance Features

  • Vector Storage: Utilizes FAISS for efficient semantic search and retrieval
  • Thread-Level Indexing: Stores each conversation thread individually for precise retrieval
  • Embedding Caching: Uses SentenceTransformer with automatic caching
  • Persistent Storage: Data persists between sessions in configurable storage directory
  • Multi-platform Support: Optimized Docker images for various architectures

Setup

Prerequisites

You'll need a HubSpot access token with these scopes:

  • crm.objects.contacts (read/write)
  • crm.objects.companies (read/write)
  • sales-email-read

Quick Start

# Install via Smithery (recommended)
npx -y @smithery/cli@latest install mcp-hubspot --client claude

# Or pull Docker image directly
docker run -e HUBSPOT_ACCESS_TOKEN=your_token buryhuang/mcp-hubspot:latest

Docker Configuration

For manual configuration in Claude desktop:

{
  "mcpServers": {
    "hubspot": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "HUBSPOT_ACCESS_TOKEN=your_token",
        "-v", "/path/to/storage:/storage",  # Optional persistent storage
        "buryhuang/mcp-hubspot:latest"
      ]
    }
  }
}

Building Docker Image

To build the Docker image locally:

git clone https://github.com/buryhuang/mcp-hubspot.git
cd mcp-hubspot
docker build -t mcp-hubspot .

For multi-platform builds:

docker buildx create --name mybuilder --use
docker buildx build --platform linux/amd64,linux/arm64 -t yourusername/mcp-hubspot:latest --push .

Development

pip install -e .

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_mcp_server_hubspot-0.1.0.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_mcp_server_hubspot-0.1.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file mseep_mcp_server_hubspot-0.1.0.tar.gz.

File metadata

  • Download URL: mseep_mcp_server_hubspot-0.1.0.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for mseep_mcp_server_hubspot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d18b97cdf4e3add9e3a4f857b3d832ad4a83e58d08ed91c015addd6676dbc4e4
MD5 b3312a218cd9f67bdc4a9d0c5a4c82b8
BLAKE2b-256 65a01878131ca3fc9591fae4ca0fce1ff7f779256eb43b6b93d8213b6b6cc36d

See more details on using hashes here.

File details

Details for the file mseep_mcp_server_hubspot-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_mcp_server_hubspot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afd179ac77b0d9d27f7021c1153c2f6d98ee202574a9ce62599a128ed8a92940
MD5 6fc9c48d8c2d5b514e610c712dc4a097
BLAKE2b-256 0400953c1cad262272d48f31301b2851daab07e61563b8cab3fc2eeb9a40035e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page