Skip to main content
Glama
fagun04

HubSpot MCP Server

by fagun04

HubSpot MCP Server

An MCP server that exposes HubSpot CRM operations as tools over stdio, so any MCP client can query and modify your HubSpot data.

Tools

Tool

Purpose

getContact

Retrieve a Contact by id

searchContacts

Search Contacts by name / email

listDeals

List Deals, optionally filtered by stage

createContact

Create a new Contact

updateDeal

Update an existing Deal

getCompany

Retrieve a Company by id

Related MCP server: hubspot-mcp

Setup

  1. Install and build:

    npm install
    npm run build
  2. In HubSpot, create a Private App (Settings -> Integrations -> Private Apps) and grant the CRM scopes you need (contacts read/write, deals read/write, companies read). Copy its access token.

  3. Configure credentials:

    cp .env.example .env
    # then edit .env and paste your token into HUBSPOT_ACCESS_TOKEN
  4. Run:

    npm start        # runs dist/index.js
    # or during development:
    npm run dev

    You should see HubSpot MCP server running on stdio.

Using with VS Code Copilot (incl. Codespaces)

Create .vscode/mcp.json in your workspace root:

{
  "servers": {
    "hubspot": {
      "type": "stdio",
      "command": "node",
      "args": ["${workspaceFolder}/dist/index.js"],
      "env": {
        "HUBSPOT_ACCESS_TOKEN": "${input:hubspot_token}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "hubspot_token",
      "description": "HubSpot Private App access token",
      "password": true
    }
  ]
}

Open the file, click Start above the server entry, switch Copilot Chat to Agent mode, and the HubSpot tools appear.

Using with Claude Desktop

{
  "mcpServers": {
    "hubspot": {
      "command": "node",
      "args": ["/absolute/path/to/hubspot-mcp/dist/index.js"],
      "env": {
        "HUBSPOT_ACCESS_TOKEN": "your_private_app_access_token"
      }
    }
  }
}

Notes

  • Auth is a single static bearer token (the Private App access token) — no OAuth exchange needed.

  • listDeals uses HubSpot's search endpoint when a stage filter is supplied, and a plain paginated list otherwise.

  • Deal stages and pipelines are referenced by their internal ids, which differ per portal — check Settings -> Objects -> Deals -> Pipelines.

Related MCP Connectors

Related MCP Servers

  • 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
  • A
    license
    A
    quality
    D
    maintenance
    A read-only MCP server that exposes HubSpot CRM data (contacts, deals, companies, quotes) to AI agents, enabling natural language queries.
    9
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for the HubSpot CRM API with tools for managing contacts, companies, deals, tickets, and CRM workflows. Generated with MCPForge. Sensitive operations can be protected with permissions, audit logs, and approval workflows.
    5 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that provides AI assistants with full access to HubSpot CRM. Manage contacts, companies, deals, pipelines, and associations directly from Claude, Cursor, or any MCP-compatible client.
    5 npm
    MIT