Skip to main content
Glama
HubSpot MCP Server

HubSpot MCP Server

by baryhuang

HubSpot MCP 服务器

Docker 中心 许可证:MIT

概述

模型上下文协议 (MCP) 服务器,使 AI 助手能够与 HubSpot CRM 数据交互。该服务器将 AI 模型与您的 HubSpot 帐户连接起来,让您直接访问联系人、公司和互动数据。内置的向量存储和缓存机制有助于克服 HubSpot API 的限制,同时缩短响应时间。

我们的实施优先考虑最常用、高价值的 HubSpot 操作,并提供强大的错误处理和 API 稳定性。每个组件都针对 AI 友好型交互进行了优化,即使在复杂、多步骤的 CRM 工作流程中也能确保可靠的性能。

Related MCP server: HubSpot MCP Server

为什么选择 MCP-HubSpot?

  • 直接 CRM 访问:无需中间步骤即可将 Claude 和其他 AI 助手连接到您的 HubSpot 数据

  • 上下文保留:使用 FAISS 进行向量存储可以跨先前的交互进行语义搜索

  • 零配置:只需最少的设置即可进行简单的 Docker 部署

示例提示

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

可用工具

该服务器提供 HubSpot 管理和数据检索工具:

工具

目的

hubspot_create_contact

创建具有重复预防功能的联系人

hubspot_create_company

创建具有重复预防能力的公司

hubspot_get_company_activity

检索特定公司的活动

hubspot_get_active_companies

检索最近活跃的公司

hubspot_get_active_contacts

检索最近活跃的联系人

hubspot_get_recent_conversations

检索最近包含消息的对话线程

hubspot_search_data

对先前检索到的 HubSpot 数据进行语义搜索

性能特点

  • 矢量存储:利用 FAISS 进行高效的语义搜索和检索

  • 线程级索引:单独存储每个对话线程,以便进行精确检索

  • 嵌入缓存:使用具有自动缓存功能的 SentenceTransformer

  • 持久存储:数据在可配置的存储目录中的会话之间持久保存

  • 多平台支持:针对各种架构优化的 Docker 镜像

设置

先决条件

您需要具有以下范围的 HubSpot 访问令牌:

  • crm.objects.contacts(读/写)

  • crm.objects.companies(读/写)

  • 销售电子邮件阅读

快速入门

# 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 配置

对于 Claude 桌面中的手动配置:

{
  "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"
      ]
    }
  }
}

构建 Docker 镜像

要在本地构建 Docker 镜像:

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

对于多平台构建:

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

发展

pip install -e .

执照

MIT 许可证

Available Tools

16 tools
hubspot_create_companyC

Create a new company in HubSpot

Inputs: name (required), properties.

hubspot_create_contactC

Create a new contact in HubSpot

Inputs: lastname (required), firstname (required), email, properties.

hubspot_create_propertyB

Create a new custom property in HubSpot

Inputs: name (required), type (required), label (required), fieldType (required), +4 more.

hubspot_get_active_companiesB

Get most recently active companies from HubSpot

Inputs: limit.

hubspot_get_active_contactsB

Get most recently active contacts from HubSpot

Inputs: limit.

hubspot_get_companyB

Get a specific company by ID from HubSpot

Inputs: company_id (required), properties.

hubspot_get_company_activityC

Get activity history for a specific company

Inputs: company_id (required).

hubspot_get_contactC

Get a specific contact by ID from HubSpot

Inputs: contact_id (required), properties.

hubspot_get_propertyB

Get details of a specific HubSpot property definition

Inputs: object_type (required), property_name (required).

hubspot_get_recent_conversationsB

Get recent conversation threads from HubSpot with their messages

Inputs: after, limit, refresh_cache.

hubspot_get_ticket_conversation_threadsB

Get conversation threads associated with a specific ticket

Inputs: ticket_id (required).

hubspot_get_ticketsC

Get tickets from HubSpot based on configurable selection criteria

Inputs: limit, criteria, max_retries, retry_delay.

hubspot_search_dataB

Search for similar data in stored HubSpot API responses

Inputs: query (required), limit.

hubspot_update_companyC

Update an existing company record in HubSpot

Inputs: company_id (required), properties (required).

hubspot_update_contactB

Update an existing contact record in HubSpot

Inputs: contact_id (required), properties (required).

hubspot_update_propertyB

Update a HubSpot property definition (e.g., add dropdown options)

Inputs: options (required), object_type (required), property_name (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 16 tools

    Disambiguation4/5

    Most tools have distinct purposes (companies, contacts, properties, tickets, conversations), but 'hubspot_search_data' is vague and overlaps with the broader search concept, and 'get_active_companies' vs 'get_company' could cause confusion.

    Naming Consistency5/5

    All tools follow a consistent 'hubspot_verb_noun' pattern in snake_case, making the naming predictable and easy to follow.

    Tool Count4/5

    16 tools cover several CRM entities (companies, contacts, properties, tickets, conversations). The count is reasonable but slightly on the higher end for the breadth of operations provided.

    Completeness2/5

    While many core operations exist (create, get, update for companies/contacts/properties, get tickets), there are notable gaps: no delete operations, no ticket creation or update, no conversation creation, and missing ticket update.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers