HubSpot MCP Setup Guide

Complete guide for setting up the HubSpot MCP server in Cursor for natural language interaction with HubSpot CRM data.

Status

CONFIGURED AND WORKING (as of January 31, 2026)

Prerequisites

  1. HubSpot MCP Auth App - Created in HubSpot Developer portal
  2. Redirect URL configured - http://localhost:3334/oauth/callback

Configuration

The HubSpot MCP is configured in ~/.cursor/mcp.json:

{
  "mcpServers": {
    "hubspot": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.hubspot.com/",
        "3334",
        "--static-oauth-client-info",
        "{\"client_id\":\"YOUR_CLIENT_ID\",\"client_secret\":\"YOUR_CLIENT_SECRET\"}",
        "--debug"
      ]
    }
  }
}

Key Configuration Details

SettingValuePurpose
mcp-remotenpm packageBridges Cursor to remote OAuth MCP servers
Port 3334Fixed OAuth callback portMust match HubSpot redirect URL
--static-oauth-client-infoOAuth credentialsUses pre-registered HubSpot MCP auth app
--debugOptionalWrites logs to ~/.mcp-auth/

How It Works

  1. Cursor launches mcp-remote as a local stdio server
  2. mcp-remote handles OAuth flow with HubSpot (PKCE required)
  3. Browser opens for user authorization on first connection
  4. Tokens cached in ~/.mcp-auth/ for subsequent sessions
  5. Proxy established between Cursor and HubSpot MCP server

Available Tools

ToolDescription
search_crm_objectsSearch contacts, companies, deals, tickets, products, etc.
get_propertiesGet available properties for any CRM object type
search_ownersFind HubSpot owners/users
search_propertiesSearch for specific property definitions

Usage Examples

Once connected, use natural language in Cursor:

"Find all companies named Inteleos in HubSpot"
"Search for Juan Sanchez in HubSpot contacts"
"Show me deals related to Inteleos"
"What properties are available for deals?"
"Who are the HubSpot owners in our account?"

Troubleshooting

OAuth Redirect URL Mismatch

Error: Authorization failed as the redirect URL doesn't match

Fix: Ensure your HubSpot MCP auth app has http://localhost:3334/oauth/callback as a redirect URL.

Clear Cached Auth State

If you encounter authentication issues:

rm -rf ~/.mcp-auth

Then restart Cursor to re-authenticate.

Check Debug Logs

Debug logs are written to:

~/.mcp-auth/mcp-remote-*/[hash]_debug.log

Verify Connection

In Cursor Settings → MCP, the HubSpot server should show a green indicator when connected.

HubSpot MCP Auth App Setup

  1. Go to HubSpotDevelopmentMCP Auth Apps
  2. Click Create MCP auth app
  3. Configure:
    • App name: Your app name (e.g., “Brainforge Cursor MCP”)
    • Redirect URL: http://localhost:3334/oauth/callback
  4. Save the Client ID and Client Secret
  5. Add credentials to ~/.cursor/mcp.json

Credentials

Credentials are stored in 1Password:

  • Item: “HubSpot MCP OAuth Credentials”
  • Fields: client_id, client_secret

See CREDENTIALS.md for detailed credential management.

References