PluginBench
MCP Server

HubSpot MCP Server

io.github.mindstone/mcp-server-hubspot

What is the HubSpot MCP server?

HubSpot CRM: contacts, deals, tickets, line items, properties, marketing, files, workflows, threads

How to install HubSpot

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • HUBSPOT_CONFIG_DIR
    required

    Directory containing accounts.json and credentials/*.token.json

  • HUBSPOT_ACCOUNT_EMAIL
    required

    Account selector — one MCP process per HubSpot account

  • MCP_WORKSPACE_PATH

    Workspace root for local file tools (required only when invoking upload/attach tools)

  • HUBSPOT_CLIENT_ID
    required

    HubSpot OAuth client ID

  • HUBSPOT_CLIENT_SECRET
    required
    secret

    HubSpot OAuth client secret

  • HUBSPOT_SOURCE_LABEL

    Source attribution label applied to new records

  • HUBSPOT_DISABLE_REFRESH

    Set to 1 to disable token refresh on this surface (use on cloud so desktop remains the sole refresh authority)

  • HUBSPOT_ALLOW_CLOUD_REFRESH

    Set to 1 to allow refresh on the cloud surface even when HUBSPOT_DISABLE_REFRESH=1 (escape hatch)

  • HUBSPOT_REQUEST_TIMEOUT_MS

    Outbound HTTP request timeout in milliseconds (max 300000 = 5 min)

  • HUBSPOT_SCOPE_TIER

    OAuth scope tier — 'readonly' or 'full'. Overrides the per-account stored tier

  • HUBSPOT_REFRESH_LOCK_STALE_MS

    Stale-lock detection threshold for the credential refresh mutex (advanced)

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-hubspot": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-hubspot"
      ],
      "env": {
        "HUBSPOT_CONFIG_DIR": "<YOUR_HUBSPOT_CONFIG_DIR>",
        "HUBSPOT_ACCOUNT_EMAIL": "<YOUR_HUBSPOT_ACCOUNT_EMAIL>",
        "MCP_WORKSPACE_PATH": "<YOUR_MCP_WORKSPACE_PATH>",
        "HUBSPOT_CLIENT_ID": "<YOUR_HUBSPOT_CLIENT_ID>",
        "HUBSPOT_CLIENT_SECRET": "<YOUR_HUBSPOT_CLIENT_SECRET>",
        "HUBSPOT_SOURCE_LABEL": "<YOUR_HUBSPOT_SOURCE_LABEL>",
        "HUBSPOT_DISABLE_REFRESH": "<YOUR_HUBSPOT_DISABLE_REFRESH>",
        "HUBSPOT_ALLOW_CLOUD_REFRESH": "<YOUR_HUBSPOT_ALLOW_CLOUD_REFRESH>",
        "HUBSPOT_REQUEST_TIMEOUT_MS": "<YOUR_HUBSPOT_REQUEST_TIMEOUT_MS>",
        "HUBSPOT_SCOPE_TIER": "<YOUR_HUBSPOT_SCOPE_TIER>",
        "HUBSPOT_REFRESH_LOCK_STALE_MS": "<YOUR_HUBSPOT_REFRESH_LOCK_STALE_MS>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server-hubspot": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-hubspot"
      ],
      "env": {
        "HUBSPOT_CONFIG_DIR": "<YOUR_HUBSPOT_CONFIG_DIR>",
        "HUBSPOT_ACCOUNT_EMAIL": "<YOUR_HUBSPOT_ACCOUNT_EMAIL>",
        "MCP_WORKSPACE_PATH": "<YOUR_MCP_WORKSPACE_PATH>",
        "HUBSPOT_CLIENT_ID": "<YOUR_HUBSPOT_CLIENT_ID>",
        "HUBSPOT_CLIENT_SECRET": "<YOUR_HUBSPOT_CLIENT_SECRET>",
        "HUBSPOT_SOURCE_LABEL": "<YOUR_HUBSPOT_SOURCE_LABEL>",
        "HUBSPOT_DISABLE_REFRESH": "<YOUR_HUBSPOT_DISABLE_REFRESH>",
        "HUBSPOT_ALLOW_CLOUD_REFRESH": "<YOUR_HUBSPOT_ALLOW_CLOUD_REFRESH>",
        "HUBSPOT_REQUEST_TIMEOUT_MS": "<YOUR_HUBSPOT_REQUEST_TIMEOUT_MS>",
        "HUBSPOT_SCOPE_TIER": "<YOUR_HUBSPOT_SCOPE_TIER>",
        "HUBSPOT_REFRESH_LOCK_STALE_MS": "<YOUR_HUBSPOT_REFRESH_LOCK_STALE_MS>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mcp-server-hubspot": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-hubspot"
      ],
      "env": {
        "HUBSPOT_CONFIG_DIR": "<YOUR_HUBSPOT_CONFIG_DIR>",
        "HUBSPOT_ACCOUNT_EMAIL": "<YOUR_HUBSPOT_ACCOUNT_EMAIL>",
        "MCP_WORKSPACE_PATH": "<YOUR_MCP_WORKSPACE_PATH>",
        "HUBSPOT_CLIENT_ID": "<YOUR_HUBSPOT_CLIENT_ID>",
        "HUBSPOT_CLIENT_SECRET": "<YOUR_HUBSPOT_CLIENT_SECRET>",
        "HUBSPOT_SOURCE_LABEL": "<YOUR_HUBSPOT_SOURCE_LABEL>",
        "HUBSPOT_DISABLE_REFRESH": "<YOUR_HUBSPOT_DISABLE_REFRESH>",
        "HUBSPOT_ALLOW_CLOUD_REFRESH": "<YOUR_HUBSPOT_ALLOW_CLOUD_REFRESH>",
        "HUBSPOT_REQUEST_TIMEOUT_MS": "<YOUR_HUBSPOT_REQUEST_TIMEOUT_MS>",
        "HUBSPOT_SCOPE_TIER": "<YOUR_HUBSPOT_SCOPE_TIER>",
        "HUBSPOT_REFRESH_LOCK_STALE_MS": "<YOUR_HUBSPOT_REFRESH_LOCK_STALE_MS>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "mcp-server-hubspot": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-hubspot"
      ],
      "env": {
        "HUBSPOT_CONFIG_DIR": "<YOUR_HUBSPOT_CONFIG_DIR>",
        "HUBSPOT_ACCOUNT_EMAIL": "<YOUR_HUBSPOT_ACCOUNT_EMAIL>",
        "MCP_WORKSPACE_PATH": "<YOUR_MCP_WORKSPACE_PATH>",
        "HUBSPOT_CLIENT_ID": "<YOUR_HUBSPOT_CLIENT_ID>",
        "HUBSPOT_CLIENT_SECRET": "<YOUR_HUBSPOT_CLIENT_SECRET>",
        "HUBSPOT_SOURCE_LABEL": "<YOUR_HUBSPOT_SOURCE_LABEL>",
        "HUBSPOT_DISABLE_REFRESH": "<YOUR_HUBSPOT_DISABLE_REFRESH>",
        "HUBSPOT_ALLOW_CLOUD_REFRESH": "<YOUR_HUBSPOT_ALLOW_CLOUD_REFRESH>",
        "HUBSPOT_REQUEST_TIMEOUT_MS": "<YOUR_HUBSPOT_REQUEST_TIMEOUT_MS>",
        "HUBSPOT_SCOPE_TIER": "<YOUR_HUBSPOT_SCOPE_TIER>",
        "HUBSPOT_REFRESH_LOCK_STALE_MS": "<YOUR_HUBSPOT_REFRESH_LOCK_STALE_MS>"
      }
    }
  }
}
Claude Code
claude mcp add mcp-server-hubspot --env HUBSPOT_CONFIG_DIR=<YOUR_HUBSPOT_CONFIG_DIR> --env HUBSPOT_ACCOUNT_EMAIL=<YOUR_HUBSPOT_ACCOUNT_EMAIL> --env MCP_WORKSPACE_PATH=<YOUR_MCP_WORKSPACE_PATH> --env HUBSPOT_CLIENT_ID=<YOUR_HUBSPOT_CLIENT_ID> --env HUBSPOT_CLIENT_SECRET=<YOUR_HUBSPOT_CLIENT_SECRET> --env HUBSPOT_SOURCE_LABEL=<YOUR_HUBSPOT_SOURCE_LABEL> --env HUBSPOT_DISABLE_REFRESH=<YOUR_HUBSPOT_DISABLE_REFRESH> --env HUBSPOT_ALLOW_CLOUD_REFRESH=<YOUR_HUBSPOT_ALLOW_CLOUD_REFRESH> --env HUBSPOT_REQUEST_TIMEOUT_MS=<YOUR_HUBSPOT_REQUEST_TIMEOUT_MS> --env HUBSPOT_SCOPE_TIER=<YOUR_HUBSPOT_SCOPE_TIER> --env HUBSPOT_REFRESH_LOCK_STALE_MS=<YOUR_HUBSPOT_REFRESH_LOCK_STALE_MS> -- npx -y @mindstone/mcp-server-hubspot

Related MCP servers

MCP server for Apple Shortcuts via the macOS shortcuts CLI

View repository →

Browser automation MCP server: navigate, fill forms, click, screenshot, and manage tabs

View repository →

Mindstone-internal release-pipeline test connector; not for use. Single ping tool; no auth.

View repository →

ElevenLabs MCP server: TTS, music, sound effects, voices, and audio transcription

View repository →

Email IMAP/SMTP MCP server: iCloud, Gmail, Yahoo, Outlook, and custom IMAP providers

View repository →

Fathom AI meeting transcription MCP server for Model Context Protocol hosts

View repository →