K

KaranThink41

customer-data-platformsmarketing

297 查看 · 2026-07-07 更新

HubSpot MCP 服务器

smithery 徽章

这是一个 Model Context Protocol (MCP) 服务器,提供了与 HubSpot CRM 交互的工具。该服务器允许您在 HubSpot 中创建、更新、删除和获取摘要记录(以笔记互动的形式存储)。

DockerFile

  • docker build -t mcp-hubspot-ts .
  • docker run --env-file .env -it mcp-hubspot-ts

功能

  • 在 HubSpot 中创建一个作为笔记互动的摘要
  • 从 HubSpot 获取所有摘要记录(笔记)
  • 按日期筛选摘要记录
  • 更新现有的摘要记录
  • 删除摘要记录
  • 通过聊天或电子邮件发送摘要记录

设置

通过 Smithery 安装

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

bash npx -y @smithery/cli install @KaranThink41/hubspot-mcp-summary --client claude

手动安装

  1. 安装依赖

    bash npm install

  2. 创建 .env 文件

    在项目根目录下创建一个 .env 文件,并填入您的 HubSpot 凭证:

    env HUBSPOT_ACCESS_TOKEN=your_access_token_here USER_ROLES_FILE=path/to/user_roles.json

  3. 构建项目

    编译您的 TypeScript 文件:

    bash npm run build

  4. 启动服务器

    启动 MCP 服务器:

    bash npm start

开发

要在开发模式下运行服务器并启用热重载:

bash npm run dev

使用 MCP Inspector 进行测试

要检查和测试您的 MCP 服务器实现,您可以使用 MCP Inspector。例如:

bash npx @modelcontextprotocol/inspector -e HUBSPOT_ACCESS_TOKEN=your_access_token_here node build/index.js

这将在 http://localhost:5173 上启动 MCP Inspector UI。使用该界面向您的服务器发送 JSON-RPC 请求。

配置

可以通过环境变量配置服务器:

  • HUBSPOT_ACCESS_TOKEN:您的 HubSpot API 访问令牌
  • USER_ROLES_FILE:用户角色配置文件的路径

许可证

该项目采用 MIT 许可证 - 详情请参阅 LICENSE 文件。

来源