HubSpot MCP Server

MIT License
  • Linux
  • Apple

Integrations

  • Enables interaction with HubSpot CRM data and operations, providing tools for managing contacts, companies, and engagement activities, as well as a shared space feature for storing and retrieving conversation summaries among team members.

HubSpot MCP 服务器

概述

该项目实现了一个模型上下文协议 (MCP) 服务器,该服务器与 HubSpot CRM 集成,并新增了集中式共享空间功能。该服务器使 AI 模型能够通过标准化接口与 HubSpot 数据和操作进行交互,同时允许团队实时共享关键对话摘要。

有关模型上下文协议及其工作原理的更多信息,请参阅 Anthropic 的 MCP 文档。

成分

资源

没有资源得到落实。最终,系统是由工具驱动的。

示例提示

通过从 LinkedIn 个人资料网页复制来创建 HubSpot 联系人:

# Example YAML prompt - 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

获取贵公司的最新活动:

# Example VB.NET prompt - What's happening latestly with my pipeline?

共享空间示例:

会议结束后,AI 命令框会提示:“请问对话摘要是否应该存储在公司共享空间中?”(是/否)确认后,对话摘要将集中存储,公司所有授权经理都可以访问。

工具

该服务器提供了多种用于管理 HubSpot 对象的工具以及新的共享空间工具:

联系人管理工具

  • hubspot_create_contact
    • 在 HubSpot 中创建新联系人(带有重复检查)。
    • 输入:
      • 名字(字符串)
      • 姓氏(字符串)
      • 电子邮件(字符串,可选)
      • 属性(字典,可选;例如,{“phone”:“123456789”,“company”:“HubSpot”})

公司管理工具

  • hubspot_create_company
    • 在 HubSpot 中创建一个新公司(并进行重复检查)。
    • 输入:
      • 名称(字符串)
      • 属性(字典,可选)
  • hubspot_get_company_activity
    • 检索特定公司的活动历史记录。
    • 输入:
      • company_id(字符串)

参与工具

  • hubspot_get_recent_engagements
    • 检索最近的参与活动。
    • 输入:
      • 天(整数,默认 7)
      • 限制(整数,默认 50)
  • hubspot_get_recent_companies
    • 检索最近活跃的公司。
    • 输入:
      • 限制(整数,默认 10)
  • hubspot_get_recent_contacts
    • 检索最近活动的联系人。
    • 输入:
      • 限制(整数,默认 10)

共享空间工具

  • create_shared_summary
    • 在共享空间中创建新的对话摘要。
    • 输入:
      • user_id(字符串,用户的电子邮件/ID)
      • company_id(字符串)
      • 摘要(字符串)
  • get_shared_summaries
    • 检索给定公司的所有对话摘要。
    • 输入:
      • 用户 ID(字符串)
      • company_id(字符串)

这些共享空间工具允许授权经理共享会议摘要,实现实时团队协作和集中访问关键见解。

设置

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 buryhuang/mcp-hubspot:

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

先决条件

您需要一个 HubSpot 访问令牌。您可以通过在您的 HubSpot 帐户中创建一个私有应用来获取该令牌(请参阅 HubSpot 私有应用指南)。请妥善保管您的令牌。

Docker 安装

**选项 1:**从 Docker Hub 拉取

docker pull buryhuang/mcp-hubspot:latest

**选项 2:**本地构建

docker build -t mcp-hubspot .

运行容器:

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

或者将令牌作为参数传递:

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

跨平台发布

创建一个新的构建器实例:

docker buildx create --use

构建并推动多个平台:

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

验证图像:

docker buildx imagetools inspect buryhuang/mcp-hubspot:latest

与 Claude Desktop 一起使用

通过 Smithery 安装
npx -y @smithery/cli@latest install mcp-hubspot --client claude
Docker 使用
{ "mcpServers": { "hubspot": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "HUBSPOT_ACCESS_TOKEN=your_access_token_here", "buryhuang/mcp-hubspot:latest" ] } } }

或者使用命令行参数:

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

发展

设置开发环境:

pip install -e .

共享空间整合

共享空间功能在一个单独的模块 (shared_space.py) 中实现。该模块:

  • 加载动态用户角色(来自外部 JSON 文件或数据库)。
  • 为对话摘要实现 CRUD 端点(create_summary、get_summaries、update_summary 和 delete_summary)。
  • 触发实时通知占位符(您稍后可以将其与 SSE 或 WebSockets 集成)。

主 server.py 文件导入这些函数并将它们注册为新的 MCP 工具(create_shared_summary 和 get_shared_summaries)。

执照

该项目已获得 MIT 许可。

此更新的 README 现在反映了使用 HubSpot MCP 集成的附加共享空间功能,并解释了系统的结构和使用方式。

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    Enables AI models to interact with HubSpot CRM data and operations through a standardized interface, supporting contact and company management.
    Last updated -
    5
    56
    Python
    MIT License
    • Linux
  • A
    security
    A
    license
    A
    quality
    Enables AI models to interact with messages from various messaging platforms (Mobile, Mail, WhatsApp, LinkedIn, Slack, Twitter, Telegram, Instagram, Messenger) through a standardized interface.
    Last updated -
    3
    3
    Python
    MIT License
    • Linux
  • -
    security
    F
    license
    -
    quality
    Enables AI assistants to interact with Metabase, providing access to dashboards, questions, databases, and tools for executing queries and viewing data through natural language.
    Last updated -
    JavaScript
    • Apple
  • -
    security
    A
    license
    -
    quality
    A server that enables AI models to interact with HubSpot CRM data and operations through a standardized interface, supporting contact and company management with multi-user token-based authentication.
    Last updated -
    Python
    MIT License
    • Linux

View all related MCP servers

ID: rt2f3pgyin