Skip to main content
Glama
HubSpot MCP Server

HubSpot MCP Server

by Vadosishe

🚀 HubSpot MCP Server (Windows / macOS / Linux)

English Version | Русская версия


English Version

A cross-platform Model Context Protocol (MCP) server written in TypeScript / Node.js (@modelcontextprotocol/sdk, axios, zod) that connects HubSpot CRM to Claude Code, Claude Desktop, VS Code (Cline), Windsurf IDE, and Cursor using natural language.

Technical Architecture Highlights

  • MCP SDK + Zod Validation (src/index.ts): Typed tool schemas for searching contacts, inspecting deals, reading associations, and safely creating/updating CRM entities.

  • Browser OAuth 2.0 Setup Wizard (src/setup-mcp.ts): Built-in local OAuth 2.0 callback server, token refresh handling, and automatic client config registration across supported AI assistants without manual JSON editing.

  • HubSpot REST Client (src/hubspot.ts): Wrapper around HubSpot CRM v3 endpoints with token management and structured error handling.

They can search contacts, view deal details, and create or update deals through their local AI assistants.

We designed this setup to be completely frictionless and cross-platform. Non-technical users do not need to install dependencies manually, edit complex JSON files, or write console commands. The installer does all the heavy lifting automatically!

💻 Onboarding Guide for Team Members (2 Easy Steps!)

Step 1. Unzip the Project Archive

  1. Download the archive containing the server folder and extract it to any directory on your computer (e.g., C:\hubspot-mcp-server\ on Windows or your Home folder on a Mac).

Step 2. Run the Setup Wizard

  • 🖥️ On Windows:

    1. Double-click the setup.bat file inside the folder.

    2. A console window will pop up briefly, check for Node.js (installing it silently in the background if it's missing), and automatically launch the Setup Wizard in your web browser.

    3. In the browser setup form, paste the Client ID and Client Secret provided by your administrator.

    4. Click "Save & Continue". This automatically registers the server globally in Claude Desktop, Cursor, Windsurf, and VS Code (Cline).

    5. You will be redirected to the HubSpot login page. Sign in under your personal HubSpot user credentials and click the orange "Authorize" (Connect app) button.

    6. Once you see the "Setup Complete!" success screen with a green checkmark showing which apps were configured, you can close the browser tab.

  • 🍎 On macOS (Mac):

    1. Open your Terminal application.

    2. Navigate to the project folder and run:

      bash setup.sh
    3. The script will verify Node.js (installing it via Homebrew if needed) and launch the Setup Wizard in your web browser.

    4. Paste the Client ID and Client Secret provided by your administrator and click "Save & Continue".

    5. Log in under your personal HubSpot account in the browser redirect and click "Authorize".

    6. Once you see the "Setup Complete!" success page, you are done!

Step 3. Restart and Chat!

  • In Claude Desktop: Completely restart Claude. A new plug/MCP icon will appear in the bottom right of the chat bar. Click it to verify hubspot is active.

  • In Cursor: Completely restart Cursor. The HubSpot server is added globally automatically! Verify it in Settings (Ctrl + Shift + J or Cmd + Shift + J on Mac) > Features > MCP.

  • In Windsurf IDE: Completely restart Windsurf. The server is configured globally in Cascade! Look for the MCP icon in the Cascade panel sidebar.

  • In VS Code (Cline): Completely restart VS Code. Cline will automatically detect and load the HubSpot server tools.

Example prompts to ask your AI:

  • "Find deals associated with company Acme Corp"

  • "Show my last 5 created contacts in HubSpot"

  • "Create a new deal named 'Software License' with amount 25000"


Related MCP server: BackCrew HubSpot MCP Server

Русская версия

Этот сервер позволяет вашим менеджерам по продажам (сейлзам) подключаться к HubSpot прямо через Cursor, Windsurf IDE, VS Code (расширение Cline) или Claude Desktop с помощью искусственного интеллекта. Они смогут искать контакты, смотреть детали, создавать и обновлять сделки простым человеческим языком.

Мы сделали этот продукт абсолютно кроссплатформенным и полностью автоматическим. Сейлзам больше не нужно писать сложные команды, вручную настраивать JSON-файлы или искать скрытые папки. Скрипт сделает всё за них!

💻 Инструкция для менеджеров (Всего 2 шага!)

Шаг 1. Распакуйте архив

Скачайте архив с программой и распакуйте его в любую удобную папку на компьютере (например, C:\hubspot-mcp-server\ на Windows или в домашнюю папку на Mac).

Шаг 2. Запустите авто-настройку

  • 🖥️ На Windows:

    1. Найдите файл setup.bat внутри папки и запустите его двойным щелчком мыши.

    2. Скрипт сам проверит Node.js (если его нет — установит в фоновом режиме), автоматически найдет и настроит Claude Desktop, Cursor, Windsurf и VS Code (Cline), после чего откроет мастер настройки в браузере.

    3. Вставьте Client ID и Client Secret, полученные от администратора.

    4. Нажмите «Save & Continue».

    5. Войдите под своим личным аккаунтом HubSpot и нажмите кнопку «Подключить приложение» (Authorize).

    6. Как только появится экран успеха с зеленой галочкой, закройте браузер.

  • 🍎 На macOS (Mac):

    1. Откройте Терминал и перейдите в папку с проектом.

    2. Запустите команду:

      bash setup.sh
    3. Скрипт проверит наличие Node.js (если его нет — установит), автоматически настроит все найденные программы и откроет мастер настройки в браузере.

    4. Вставьте Client ID и Client Secret, полученные от администратора, и нажмите «Save & Continue».

    5. Войдите под своим личным аккаунтом HubSpot и нажмите кнопку «Подключить приложение» (Authorize).

    6. Готово!

Шаг 3. Перезапустите программы и пользуйтесь!

  • В Claude Desktop: Перезапустите Claude. В чате появится иконка розетки/вилки (MCP).

  • В Cursor: Перезапустите Cursor. Сервер подключится автоматически на глобальном уровне! Проверьте в Cursor Settings > Features > MCP.

  • В Windsurf IDE: Перезапустите Windsurf. Сервер подключится автоматически в боковой панели Cascade (иконка MCP).

  • В VS Code (Cline): Перезапустите VS Code. Cline автоматически подгрузит инструменты HubSpot.


🛠️ Developer Setup & Admin Configuration (Bilingual)

1. Register App in HubSpot / Регистрация в HubSpot

  1. In HubSpot, go to Settings > Integrations > Developer Apps (or MCP Auth Apps).

    • В HubSpot перейдите в Настройки > Интеграции > Developer Apps (или MCP Auth Apps).

  2. Click Create app (or Create MCP auth app).

    • Нажмите Создать приложение.

  3. Set the Redirect URL to:

    • Укажите Redirect URL: http://localhost:6274/oauth/callback/debug

  4. Copy the Client ID and Client Secret. Give these to your sales reps!

    • Скопируйте Client ID и Client Secret и передайте их сотрудникам.

2. Compile Server / Сборка сервера

Before packing the folder into a ZIP archive for your team, make sure to compile the TypeScript code:

  • Перед тем как запаковать папку в ZIP для команды, обязательно скомпилируйте TypeScript код:

npm install
npm run build

(You can exclude the node_modules folder from the final ZIP to keep it lightweight (~1MB) — the setup scripts will automatically download dependencies for users). (Вы можете исключить папку node_modules из итогового ZIP-архива, чтобы сделать его легким (около 1 МБ) — скрипты установки скачают всё сами).

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Exposes HubSpot CRM data and actions as tools for AI agents, enabling contact lookup, company search, contact creation, and activity logging via natural language.
      4
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to interact with a HubSpot CRM account via natural language, starting with read-only lookups and optionally enabling write operations like creating contacts, deals, and notes.
      11
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude to search, create, and update contacts, deals, and support tickets in HubSpot, and to generate cross-object account summaries.
      10
      MIT