HubSpot MCP Server
HubSpot MCP 服务器
概述
模型上下文协议 (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 数据进行语义搜索 |
性能特点
矢量存储:利用 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:latestDocker 配置
对于 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 toolshubspot_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
Scored across 16 tools
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.
All tools follow a consistent 'hubspot_verb_noun' pattern in snake_case, making the naming predictable and easy to follow.
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.
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
Related MCP Connectors
The HubSpot MCP Server acts as a bridge that enables AI assistants and Large Language Models to securely interact with HubSpot CRM data through natural conversation, without requiring users to understand complex API structures. It provides read-only access to standard CRM objects (contacts, companies, deals, tickets, products, invoices, and more) and their associations, secured via OAuth 2.0, allowing AI agents to perform tasks like summarizing deals, fetching company updates, and looking up record changes.
Operate the Plixana CRM from any AI: contacts, deals, quotes, WhatsApp and metrics.
CRM, inbox, meetings, revenue intelligence, analytics and automations for AI agents.
Small business CRM: search and update contacts, companies, deals, sales pipeline, and tasks.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with HubSpot CRM for managing contacts, companies, deals, and sending emails through natural language commands.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables management of HubSpot CRM entities including contacts, companies, deals, and pipelines through natural language. It provides comprehensive tools for listing, searching, creating, and updating records with support for OAuth 2.0 authentication.MIT
- AlicenseAqualityCmaintenanceExposes HubSpot CRM data and actions as tools for AI agents, enabling contact lookup, company search, contact creation, and activity logging via natural language.4MIT
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to HubSpot CRM, providing tools to manage contacts, companies, deals, and more via natural language.MIT