Skip to main content
Glama

HubSpot MCP

npm-версия значок кузнеца

Реализация протокола контекста модели (MCP) для API HubSpot , предоставляющая стандартизированный интерфейс для доступа и управления данными CRM.

Функции

  • Полный охват API HubSpot CRM

  • Поддержка всех стандартных объектов CRM (компании, контакты, сделки и т. д.)

  • Расширенное управление ассоциациями с помощью CRM Associations v4

  • Конечные точки компании с проверкой свойств

  • Пакетные операции для эффективного управления данными

  • Расширенные возможности поиска и фильтрации

  • Проверка параметров безопасности типов с помощью Zod

Related MCP server: HubSpot MCP Server

Предпосылки

Если у вас нет ключа API, следуйте инструкциям здесь, чтобы получить токен доступа. Поддержка OAuth запланирована как будущее улучшение.

Конфигурация клиента

Существует несколько вариантов настройки клиента MCP с сервером. Для настройки сервера на хосте/удалённом сервере используйте CLI Smithery с ключом API Smithery . Для локальной установки используйте npx или сборку из исходного кода. Каждый из этих вариантов поясняется ниже.

Удаленный сервер Smithery (рекомендуется)

Чтобы добавить удаленный сервер в config.json вашего клиента MCP, выполните следующую команду из Smithery CLI :

npx -y @smithery/cli install @shinzo-labs/hubspot-mcp

При появлении соответствующего запроса введите HUBSPOT_ACCESS_TOKEN .

Кузнечное дело SDK

Если вы разрабатываете собственное приложение-агент, вы можете использовать шаблонный код здесь .

Локальная установка NPX

Чтобы установить сервер локально с помощью npx , добавьте следующее в config.json вашего клиента MCP:

{
  "mcpServers": {
    "hubspot": {
      "command": "npx",
      "args": [
        "@shinzolabs/hubspot-mcp"
      ],
      "env": {
        "HUBSPOT_ACCESS_TOKEN": "your-access-token-here"
      }
    }
  }
}

Сборка из исходного кода

  1. Загрузить репозиторий:

git clone https://github.com/shinzo-labs/hubspot-mcp.git
  1. Установить пакеты (внутри клонированного репозитория):

pnpm i
  1. Добавьте следующее в config.json вашего клиента MCP:

{
  "mcpServers": {
    "hubspot": {
      "command": "node",
      "args": [
        "/path/to/hubspot-mcp/index.js"
      ],
      "env": {
        "HUBSPOT_ACCESS_TOKEN": "your-access-token-here"
      }
    }
  }
}

Переменные конфигурации

Переменная

Описание

Необходимый?

По умолчанию

HUBSPOT_ACCESS_TOKEN

Токен доступа для приложения Hubspot

Да

PORT

Порт для метода потоковой передачи HTTP

Нет

3000

Поддерживаемые инструменты

Основные объекты CRM

Базовые операции с объектами

  • crm_list_objects : список объектов CRM с дополнительной фильтрацией и разбиением на страницы

  • crm_get_object : Получить один объект CRM по идентификатору

  • crm_create_object : Создать новый объект CRM

  • crm_update_object : обновить существующий объект CRM

  • crm_delete_object : Удалить объект CRM

Поиск и пакетные операции

  • crm_search_objects : Поиск объектов CRM с использованием расширенных фильтров

  • crm_batch_create_objects : Создание нескольких объектов в одном запросе

  • crm_batch_update_objects : Обновление нескольких объектов за один запрос

  • crm_batch_delete_objects : Удаление нескольких объектов за один запрос

Управление записями CRM

Компании

  • Основные операции:

    • crm_create_company : Создать новую компанию с проверенными свойствами

    • crm_update_company : Обновить существующую компанию

    • crm_get_company : Получить одну компанию по идентификатору

    • crm_search_companies : Поиск компаний с определенными фильтрами

  • Пакетные операции:

    • crm_batch_create_companies : Создание нескольких компаний в одном запросе

    • crm_batch_update_companies : Обновление нескольких компаний за один запрос

  • Управление недвижимостью:

    • crm_get_company_properties : Получить все доступные свойства компании

    • crm_create_company_property : Создать новую собственность компании

Контакты

  • Основные операции:

    • crm_create_contact : Создать новый контакт с проверенными свойствами

    • crm_update_contact : Обновить информацию о существующем контакте

    • crm_get_contact : Получить один контакт по идентификатору

    • crm_search_contacts : Поиск контактов с использованием определенных фильтров

  • Пакетные операции:

    • crm_batch_create_contacts : Создание нескольких контактов в одном запросе

    • crm_batch_update_contacts : Обновление нескольких контактов за один запрос

  • Управление недвижимостью:

    • crm_get_contact_properties : Получить все доступные свойства контакта

    • crm_create_contact_property : Создать новое свойство контакта

Лиды

  • Основные операции:

    • crm_create_lead : создать новый лид с проверенными свойствами

    • crm_update_lead : обновить информацию о существующем лиде

    • crm_get_lead : Получить один лид по идентификатору

    • crm_search_leads : Поиск лидов с использованием определенных фильтров

  • Пакетные операции:

    • crm_batch_create_leads : Создание нескольких лидов в одном запросе

    • crm_batch_update_leads : обновление нескольких лидов в одном запросе

  • Управление недвижимостью:

    • crm_get_lead_properties : Получить все доступные свойства лида

    • crm_create_lead_property : создать новое свойство лида

Управление взаимодействием

Подробности помолвки

  • Основные операции:

    • engagement_details_get : Получить сведения о конкретном взаимодействии

    • engagement_details_create : Создать новое взаимодействие

    • engagement_details_update : Обновить существующую вовлеченность

    • engagement_details_delete : Удалить участие

    • engagement_details_list : Список всех взаимодействий с фильтрацией

    • engagement_details_get_associated : Получить связанные вовлеченности

Звонки

  • Основные операции:

    • calls_create : Создать новую запись вызова

    • calls_get : Получить детализацию звонка

    • calls_update : Обновить запись вызова

    • calls_archive : Архивировать вызов

    • calls_list : Список всех звонков

    • calls_search : Поиск звонков

  • Пакетные операции:

    • calls_batch_create : Создать несколько вызовов

    • calls_batch_read : Чтение нескольких вызовов

    • calls_batch_update : обновление нескольких вызовов

    • calls_batch_archive : Архивировать несколько вызовов

Электронные письма

  • Основные операции:

    • emails_create : Создать новую запись электронной почты

    • emails_get : Получить данные электронной почты

    • emails_update : Обновить электронную почту

    • emails_archive : Архивировать электронное письмо

    • emails_list : Список всех адресов электронной почты

    • emails_search : Поиск писем

  • Пакетные операции:

    • emails_batch_create : Создать несколько писем

    • emails_batch_read : Чтение нескольких писем

    • emails_batch_update : Обновление нескольких писем

    • emails_batch_archive : Архивировать несколько писем

Встречи

  • Основные операции:

    • meetings_create : Создать новую встречу

    • meetings_get : Получить сведения о встрече

    • meetings_update : Обновить встречу

    • meetings_delete : Удалить встречу

    • meetings_list : Список всех встреч

    • meetings_search : Поиск встреч

  • Пакетные операции:

    • meetings_batch_create : Создать несколько встреч

    • meetings_batch_update : обновление нескольких встреч

    • meetings_batch_archive : Архивировать несколько встреч

Примечания

  • Основные операции:

    • notes_create : Создать новую заметку

    • notes_get : Получить сведения о заметке

    • notes_update : Обновить заметку

    • notes_archive : Архивировать заметку

    • notes_list : Список всех заметок

    • notes_search : Поиск заметок

  • Пакетные операции:

    • notes_batch_create : Создать несколько заметок

    • notes_batch_read : Чтение нескольких заметок

    • notes_batch_update : Обновить несколько заметок

    • notes_batch_archive : Архивировать несколько заметок

Задачи

  • Основные операции:

    • tasks_create : Создать новую задачу

    • tasks_get : Получить сведения о задаче

    • tasks_update : Обновить задачу

    • tasks_archive : Архивировать задачу

    • tasks_list : Список всех задач

    • tasks_search : Поиск задач

  • Пакетные операции:

    • tasks_batch_create : Создать несколько задач

    • tasks_batch_read : Чтение нескольких задач

    • tasks_batch_update : Обновление нескольких задач

    • tasks_batch_archive : Архивировать несколько задач

Ассоциации и отношения

Ассоциации CRM v4

  • Основные операции:

    • crm_list_association_types : Список доступных типов ассоциаций

    • crm_get_associations : Получить все ассоциации между объектами

    • crm_create_association : Создать ассоциацию

    • crm_delete_association : Удалить ассоциацию

  • Пакетные операции:

    • crm_batch_create_associations : Создание нескольких ассоциаций

    • crm_batch_delete_associations : Удалить несколько ассоциаций

Настройки связи

Управление подпиской

  • Основные операции:

    • communications_get_preferences : Получить настройки контакта

    • communications_update_preferences : Обновить настройки контактов

    • communications_unsubscribe_contact : Глобальная отписка

    • communications_subscribe_contact : Глобальная подписка

    • communications_get_subscription_definitions : Получить определения подписки

  • Массовые операции:

    • communications_get_subscription_status : Получить статус для нескольких контактов

    • communications_update_subscription_status : обновление статуса для нескольких контактов

Продукция

Основные операции:

  • products_create : Создать продукт с заданными свойствами и вернуть копию объекта, включая идентификатор.

  • products_read : Чтение объекта, идентифицированного по идентификатору

  • products_update : Выполнить частичное обновление объекта, идентифицированного по ID. Свойства только для чтения и несуществующие свойства приведут к ошибке. Значения свойств можно очистить, передав пустую строку.

  • products_archive : Переместить объект, идентифицированный по идентификатору, в корзину для переработки.

  • products_list : Прочитать страницу продуктов. Управляйте тем, что возвращается, с помощью параметра запроса properties . after — это токен курсора постраничного просмотра последнего успешно прочитанного ресурса, который будет возвращен как свойство JSON paging.next.after постраничного ответа, содержащего больше результатов.

  • products_search : Поиск продуктов

Пакетные операции:

  • products_batch_create : Создать партию продуктов

  • products_batch_read : Чтение партии продуктов по внутреннему идентификатору или уникальным значениям свойств. Извлечение записей по параметру idProperty для извлечения записей по пользовательскому уникальному свойству значения.

  • products_batch_update : обновление партии продуктов по внутреннему идентификатору или уникальным значениям, указанным в параметре запроса idProperty .

  • products_batch_archive : Архивировать партию продуктов по идентификатору

Внося вклад

Вклады приветствуются и поощряются! Пожалуйста, прочтите CONTRIBUTING.md для получения инструкций по вопросам, вкладам и контактной информации.

Available Tools

112 tools
calls_archiveC

Archive (delete) a call record

Inputs: callId (required).

calls_batch_archiveC

Archive (delete) multiple call records in a single request

Inputs: callIds (required).

calls_batch_createC

Create multiple call records in a single request

Inputs: inputs (required).

calls_batch_readC

Read multiple call records in a single request

Inputs: inputs (required).

calls_batch_updateC

Update multiple call records in a single request

Inputs: inputs (required).

calls_createD

Create a new call record

Inputs: properties (required), associations.

calls_getC

Get details of a specific call

Inputs: callId (required), associations, properties.

calls_listC

List all calls with optional filtering

Inputs: after, archived, associations, limit, +1 more.

calls_updateC

Update an existing call record

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

communications_get_preferencesC

Get communication preferences for a contact

Inputs: contactId (required), subscriptionId.

communications_get_subscription_definitionsC

Get all subscription definitions for the portal

Inputs: archived.

communications_get_subscription_statusC

Get subscription status for multiple contacts

Inputs: contactIds (required), subscriptionId (required).

communications_subscribe_contactC

Subscribe a contact to all email communications

Inputs: contactId (required), portalSubscriptionLegalBasis, portalSubscriptionLegalBasisExplanation.

communications_unsubscribe_contactC

Unsubscribe a contact from all email communications

Inputs: contactId (required), portalSubscriptionLegalBasis, portalSubscriptionLegalBasisExplanation.

communications_update_preferencesC

Update communication preferences for a contact

Inputs: contactId (required), preferences (required), subscriptionId (required).

communications_update_subscription_statusC

Update subscription status for multiple contacts

Inputs: subscriptionId (required), updates (required).

crm_archive_associationC

Archive (delete) an association between two objects

Inputs: fromObjectId (required), fromObjectType (required), toObjectId (required), toObjectType (required).

crm_archive_objectC

Archive (delete) a CRM object

Inputs: objectId (required), objectType (required).

crm_batch_archive_associationsC

Archive (delete) multiple associations in a single request

Inputs: fromObjectType (required), inputs (required), toObjectType (required).

crm_batch_archive_objectsC

Archive (delete) multiple CRM objects in a single request

Inputs: objectIds (required), objectType (required).

crm_batch_create_associationsC

Create multiple associations in a single request

Inputs: fromObjectType (required), inputs (required), toObjectType (required).

crm_batch_create_companiesC

Create multiple companies in a single request

Inputs: inputs (required).

crm_batch_create_contactsC

Create multiple contacts in a single request

Inputs: inputs (required).

crm_batch_create_leadsC

Create multiple leads in a single request

Inputs: inputs (required).

crm_batch_create_objectsC

Create multiple CRM objects in a single request

Inputs: inputs (required), objectType (required).

crm_batch_read_objectsD

Create multiple CRM objects in a single request

Inputs: objectIds (required), objectType (required), idProperty, properties, +1 more.

crm_batch_update_companiesC

Update multiple companies in a single request

Inputs: inputs (required).

crm_batch_update_contactsC

Update multiple contacts in a single request

Inputs: inputs (required).

crm_batch_update_leadsC

Update multiple leads in a single request

Inputs: inputs (required).

crm_batch_update_objectsC

Update multiple CRM objects in a single request

Inputs: inputs (required), objectType (required).

crm_create_associationC

Create an association between two objects

Inputs: associationTypes (required), fromObjectId (required), fromObjectType (required), toObjectId (required), +1 more.

crm_create_companyC

Create a new company with validated properties

Inputs: properties (required), associations.

crm_create_company_propertyD

Create a new company property

Inputs: fieldType (required), groupName (required), label (required), name (required), +7 more.

crm_create_contactC

Create a new contact with validated properties

Inputs: properties (required), associations.

crm_create_contact_propertyD

Create a new contact property

Inputs: fieldType (required), groupName (required), label (required), name (required), +7 more.

crm_create_leadC

Create a new lead with validated properties

Inputs: properties (required), associations.

crm_create_lead_propertyD

Create a new lead property

Inputs: fieldType (required), groupName (required), label (required), name (required), +7 more.

crm_create_objectD

Create a new CRM object

Inputs: objectType (required), properties (required), associations.

crm_get_associationsC

Get all associations of a specific type between objects

Inputs: fromObjectId (required), fromObjectType (required), toObjectType (required), after, +1 more.

crm_get_companyC

Get a single company by ID with specific properties and associations

Inputs: companyId (required), associations, properties.

crm_get_company_propertiesC

Get all properties for companies

Inputs: archived, properties.

crm_get_contactB

Get a single contact by ID with specific properties and associations

Inputs: contactId (required), associations, properties.

crm_get_contact_propertiesC

Get all properties for contacts

Inputs: archived, properties.

crm_get_leadC

Get a single lead by ID with specific properties and associations

Inputs: leadId (required), associations, properties.

crm_get_lead_propertiesC

Get all properties for leads

Inputs: archived, properties.

crm_get_objectC

Get a single CRM object by ID

Inputs: objectId (required), objectType (required), associations, properties.

crm_list_association_typesC

List all available association types for a given object type pair

Inputs: fromObjectType (required), toObjectType (required).

crm_list_objectsC

List CRM objects of a specific type with optional filtering and pagination

Inputs: objectType (required), after, archived, limit, +1 more.

crm_search_companiesC

Search companies with company-specific filters

Inputs: filterGroups (required), after, limit, properties, +1 more.

crm_search_contactsC

Search contacts with contact-specific filters

Inputs: filterGroups (required), after, limit, properties, +1 more.

crm_search_leadsC

Search leads with lead-specific filters

Inputs: filterGroups (required), after, limit, properties, +1 more.

crm_search_objectsC

Search CRM objects using filters

Inputs: filterGroups (required), objectType (required), after, limit, +2 more.

crm_update_companyC

Update an existing company with validated properties

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

crm_update_contactC

Update an existing contact with validated properties

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

crm_update_leadC

Update an existing lead with validated properties

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

crm_update_objectC

Update an existing CRM object

Inputs: objectId (required), objectType (required), properties (required).

emails_archiveC

Archive (delete) an email record

Inputs: emailId (required).

emails_batch_archiveC

Archive (delete) multiple email records in a single request

Inputs: emailIds (required).

emails_batch_createC

Create multiple email records in a single request

Inputs: inputs (required).

emails_batch_readC

Read multiple email records in a single request

Inputs: inputs (required).

emails_batch_updateC

Update multiple email records in a single request

Inputs: inputs (required).

emails_createD

Create a new email record

Inputs: properties (required), associations.

emails_getC

Get details of a specific email

Inputs: emailId (required), associations, properties.

emails_listC

List all emails with optional filtering

Inputs: after, archived, associations, limit, +1 more.

emails_updateC

Update an existing email record

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

engagement_details_archiveC

Archive (delete) an engagement

Inputs: engagementId (required).

engagement_details_createD

Create a new engagement with details

Inputs: engagement (required), associations, metadata.

engagement_details_getC

Get details of a specific engagement

Inputs: engagementId (required).

engagement_details_get_associatedC

Get all engagements associated with an object

Inputs: objectId (required), objectType (required), activityTypes, endTime, +3 more.

engagement_details_listC

List all engagements with optional filtering

Inputs: activityTypes, endTime, limit, offset, +1 more.

engagement_details_updateC

Update an existing engagement's details

Inputs: engagement (required), engagementId (required), metadata.

meetings_archiveC

Archive (delete) a meeting

Inputs: meetingId (required).

meetings_batch_archiveC

Archive (delete) multiple meetings in a single request

Inputs: meetingIds (required).

meetings_batch_createC

Create multiple meetings in a single request

Inputs: inputs (required).

meetings_batch_updateC

Update multiple meetings in a single request

Inputs: inputs (required).

meetings_createD

Create a new meeting

Inputs: properties (required), associations.

meetings_getC

Get details of a specific meeting

Inputs: meetingId (required), associations, properties.

meetings_listB

List all meetings with optional filtering

Inputs: after, createdAfter, createdBefore, limit, +1 more.

meetings_updateC

Update an existing meeting

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

notes_archiveC

Archive (delete) a note

Inputs: noteId (required).

notes_batch_archiveC

Archive (delete) multiple notes in a single request

Inputs: noteIds (required).

notes_batch_createC

Create multiple notes in a single request

Inputs: inputs (required).

notes_batch_readC

Read multiple notes in a single request

Inputs: inputs (required).

notes_batch_updateC

Update multiple notes in a single request

Inputs: inputs (required).

notes_createC

Create a new note

Inputs: properties (required), associations.

notes_getC

Get details of a specific note

Inputs: noteId (required), associations, properties.

notes_listC

List all notes with optional filtering

Inputs: after, archived, associations, limit, +1 more.

notes_updateD

Update an existing note

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

products_archiveC

Move an Object identified by ID to the recycling bin.

Inputs: productId (required).

products_batch_archiveC

Archive (delete) a batch of products by ID

Inputs: productIds (required).

products_batch_createC

Create a batch of products

Inputs: inputs (required).

products_batch_readC

Read a batch of products by internal ID, or unique property values. Retrieve records by the idProperty parameter to retrieve records by a custom unique value property.

Inputs: productIds (required), properties (required), propertiesWithHistory (required), idProperty.

products_batch_updateC

Update a batch of products by internal ID, or unique values specified by the idProperty query param.

Inputs: inputs (required).

products_createC

Create a product with the given properties and return a copy of the object, including the ID.

Inputs: properties (required).

products_listB

Read a page of products. Control what is returned via the properties query param. after is the paging cursor token of the last successfully read resource will be returned as the paging.next.after JSON property of a paged response containing more results.

Inputs: after, limit, properties.

products_readC

Read an Object identified by ID

Inputs: productId (required), associations, properties.

products_updateB

Perform a partial update of an Object identified by ID. Read-only and non-existent properties will result in an error. Properties values can be cleared by passing an empty string.

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

tasks_archiveC

Archive (delete) a task

Inputs: taskId (required).

tasks_batch_archiveC

Archive (delete) multiple tasks in a single request

Inputs: taskIds (required).

tasks_batch_createC

Create multiple tasks in a single request

Inputs: inputs (required).

tasks_batch_readC

Read multiple tasks in a single request

Inputs: inputs (required).

tasks_batch_updateC

Update multiple tasks in a single request

Inputs: inputs (required).

tasks_createD

Create a new task

Inputs: properties (required), associations.

tasks_getC

Get details of a specific task

Inputs: taskId (required), associations, properties.

tasks_listC

List all tasks with optional filtering

Inputs: after, archived, associations, limit, +1 more.

tasks_updateC

Update an existing task

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

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 112 tools

    Disambiguation4/5

    Tools are well-differentiated by resource type (calls, emails, CRM objects, etc.) and action (create, get, update, archive, search), with clear boundaries. Minor ambiguity exists between 'list' and 'search' operations across resources, but descriptions clarify that 'list' retrieves all with optional filtering while 'search' uses specific filters, making them distinguishable.

    Naming Consistency5/5

    Naming follows a highly consistent pattern throughout: resource_action (e.g., calls_create, crm_get_company) with batch operations as resource_batch_action (e.g., emails_batch_update). This verb_noun structure is uniformly applied across all 112 tools, making them predictable and easy to parse.

    Tool Count2/5

    With 112 tools, the count is excessive for a single server, leading to cognitive overload and potential inefficiency. While the tools cover multiple HubSpot domains (CRM, communications, engagements), the sheer volume suggests over-fragmentation, such as having separate batch and single operations for each resource, which could be streamlined.

    Completeness5/5

    The tool set provides comprehensive CRUD and lifecycle coverage across all major HubSpot domains (calls, emails, CRM objects, engagements, meetings, notes, products, tasks). Each resource includes create, get, update, archive, list, and search operations, with batch variants for scalability, ensuring no obvious gaps for agent workflows.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      C
      maintenance
      Enables interaction with HubSpot CRM through a standardized API interface. Supports managing contacts, companies, deals, engagements, products, and associations with batch operations and advanced search capabilities.
      100
      67 npm
      MIT
    • A
      license
      C
      quality
      D
      maintenance
      Provides standardized access to HubSpot's CRM API for managing contacts, companies, deals, engagements, and other CRM data through comprehensive CRUD operations, batch processing, and advanced search capabilities.
      100
      1
      MIT
    • A
      license
      B
      quality
      F
      maintenance
      MCP server for HubSpot CRM — 33 tools covering contacts, companies, deals, pipelines, lists, marketing emails, forms, workflows, and properties.
      30
      14 npm
      MIT