Skip to content
VS Code

HubSpot for VS Code

io.github.mindstone/mcp-server-hubspot

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

client:VS Code transport:stdio runtime:npm

Install HubSpot in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "hubspot-config-dir",
      "description": "HUBSPOT_CONFIG_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hubspot-account-email",
      "description": "HUBSPOT_ACCOUNT_EMAIL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-workspace-path",
      "description": "MCP_WORKSPACE_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hubspot-client-id",
      "description": "HUBSPOT_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hubspot-client-secret",
      "description": "HUBSPOT_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hubspot-source-label",
      "description": "HUBSPOT_SOURCE_LABEL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hubspot-disable-refresh",
      "description": "HUBSPOT_DISABLE_REFRESH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hubspot-allow-cloud-refresh",
      "description": "HUBSPOT_ALLOW_CLOUD_REFRESH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hubspot-request-timeout-ms",
      "description": "HUBSPOT_REQUEST_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "hubspot-refresh-lock-stale-ms",
      "description": "HUBSPOT_REFRESH_LOCK_STALE_MS",
      "password": true
    }
  ],
  "servers": {
    "mcp-server-hubspot": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-hubspot"
      ],
      "env": {
        "HUBSPOT_CONFIG_DIR": "${input:hubspot-config-dir}",
        "HUBSPOT_ACCOUNT_EMAIL": "${input:hubspot-account-email}",
        "MCP_WORKSPACE_PATH": "${input:mcp-workspace-path}",
        "HUBSPOT_CLIENT_ID": "${input:hubspot-client-id}",
        "HUBSPOT_CLIENT_SECRET": "${input:hubspot-client-secret}",
        "HUBSPOT_SOURCE_LABEL": "${input:hubspot-source-label}",
        "HUBSPOT_DISABLE_REFRESH": "${input:hubspot-disable-refresh}",
        "HUBSPOT_ALLOW_CLOUD_REFRESH": "${input:hubspot-allow-cloud-refresh}",
        "HUBSPOT_REQUEST_TIMEOUT_MS": "${input:hubspot-request-timeout-ms}",
        "HUBSPOT_REFRESH_LOCK_STALE_MS": "${input:hubspot-refresh-lock-stale-ms}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

HubSpot in other clients