HubSpot

v0.5.1
io.github.mindstone/mcp-server-hubspot Checked 2 days ago Published 14 hours ago

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

Values you need

VariableWhat it is
HUBSPOT_CONFIG_DIRrequired Directory containing accounts.json and credentials/*.token.json
HUBSPOT_ACCOUNT_EMAILrequired Account selector — one MCP process per HubSpot account
MCP_WORKSPACE_PATHoptional Workspace root for local file tools (required only when invoking upload/attach tools)
HUBSPOT_CLIENT_IDrequired HubSpot OAuth client ID
HUBSPOT_CLIENT_SECRETrequired secret HubSpot OAuth client secret
HUBSPOT_SOURCE_LABELoptional Source attribution label applied to new records Default: HubSpot MCP
HUBSPOT_DISABLE_REFRESHoptional Set to 1 to disable token refresh on this surface (use on cloud so desktop remains the sole refresh authority)
HUBSPOT_ALLOW_CLOUD_REFRESHoptional Set to 1 to allow refresh on the cloud surface even when HUBSPOT_DISABLE_REFRESH=1 (escape hatch)
HUBSPOT_REQUEST_TIMEOUT_MSoptional Outbound HTTP request timeout in milliseconds (max 300000 = 5 min) Default: 60000
HUBSPOT_REFRESH_LOCK_STALE_MSoptional Stale-lock detection threshold for the credential refresh mutex (advanced)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-server-hubspot -e 'HUBSPOT_ACCOUNT_EMAIL=<HUBSPOT_ACCOUNT_EMAIL>' -e 'HUBSPOT_CLIENT_ID=<HUBSPOT_CLIENT_ID>' -e 'HUBSPOT_CLIENT_SECRET=<HUBSPOT_CLIENT_SECRET>' -e 'HUBSPOT_CONFIG_DIR=<HUBSPOT_CONFIG_DIR>' -- npx -y @mindstone/mcp-server-hubspot@0.5.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-hubspot": {
      "args": [
        "-y",
        "@mindstone/mcp-server-hubspot@0.5.0"
      ],
      "command": "npx",
      "env": {
        "HUBSPOT_ACCOUNT_EMAIL": "<HUBSPOT_ACCOUNT_EMAIL>",
        "HUBSPOT_CLIENT_ID": "<HUBSPOT_CLIENT_ID>",
        "HUBSPOT_CLIENT_SECRET": "<HUBSPOT_CLIENT_SECRET>",
        "HUBSPOT_CONFIG_DIR": "<HUBSPOT_CONFIG_DIR>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server-hubspot": {
      "args": [
        "-y",
        "@mindstone/mcp-server-hubspot@0.5.0"
      ],
      "command": "npx",
      "env": {
        "HUBSPOT_ACCOUNT_EMAIL": "<HUBSPOT_ACCOUNT_EMAIL>",
        "HUBSPOT_CLIENT_ID": "<HUBSPOT_CLIENT_ID>",
        "HUBSPOT_CLIENT_SECRET": "<HUBSPOT_CLIENT_SECRET>",
        "HUBSPOT_CONFIG_DIR": "<HUBSPOT_CONFIG_DIR>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "HUBSPOT_ACCOUNT_EMAIL",
      "id": "hubspot-account-email",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "HUBSPOT_CLIENT_ID",
      "id": "hubspot-client-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "HUBSPOT_CLIENT_SECRET",
      "id": "hubspot-client-secret",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "HUBSPOT_CONFIG_DIR",
      "id": "hubspot-config-dir",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-server-hubspot": {
      "args": [
        "-y",
        "@mindstone/mcp-server-hubspot@0.5.0"
      ],
      "command": "npx",
      "env": {
        "HUBSPOT_ACCOUNT_EMAIL": "${input:hubspot-account-email}",
        "HUBSPOT_CLIENT_ID": "${input:hubspot-client-id}",
        "HUBSPOT_CLIENT_SECRET": "${input:hubspot-client-secret}",
        "HUBSPOT_CONFIG_DIR": "${input:hubspot-config-dir}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-server-hubspot]
command = "npx"
args = ["-y", "@mindstone/mcp-server-hubspot@0.5.0"]
env = { "HUBSPOT_ACCOUNT_EMAIL" = "<HUBSPOT_ACCOUNT_EMAIL>", "HUBSPOT_CLIENT_ID" = "<HUBSPOT_CLIENT_ID>", "HUBSPOT_CLIENT_SECRET" = "<HUBSPOT_CLIENT_SECRET>", "HUBSPOT_CONFIG_DIR" = "<HUBSPOT_CONFIG_DIR>" }

For AI agents

  1. Ask the user for: HUBSPOT_CONFIG_DIR, HUBSPOT_ACCOUNT_EMAIL, HUBSPOT_CLIENT_ID, HUBSPOT_CLIENT_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_hubspot_accounts, authenticate_hubspot_account, complete_hubspot_auth, remove_hubspot_account, search_hubspot_contacts, get_hubspot_contact, create_hubspot_contact, update_hubspot_contact, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json