HubSpot
v0.5.1HubSpot CRM: contacts, deals, tickets, line items, properties, marketing, files, workflows, threads
Values you need
| Variable | What it is | |
|---|---|---|
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 | optional | 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 | optional | Source attribution label applied to new records Default: HubSpot MCP |
HUBSPOT_DISABLE_REFRESH | optional | Set to 1 to disable token refresh on this surface (use on cloud so desktop remains the sole refresh authority) |
HUBSPOT_ALLOW_CLOUD_REFRESH | optional | Set to 1 to allow refresh on the cloud surface even when HUBSPOT_DISABLE_REFRESH=1 (escape hatch) |
HUBSPOT_REQUEST_TIMEOUT_MS | optional | Outbound HTTP request timeout in milliseconds (max 300000 = 5 min) Default: 60000 |
HUBSPOT_REFRESH_LOCK_STALE_MS | optional | 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.0Add 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
- 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.
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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