HubSpot MCP Server
This guide walks through connecting the HubSpot MCP server to Harnesst. HubSpot uses static OAuth credentials, so you need to register an OAuth app in HubSpot first.
1. Create a HubSpot OAuth app
- Go to the HubSpot Developer Portal
- Apps → Create app
- Fill in the app details:
- App name: Harnesst MCP
- Description: MCP integration for Harnesst
- Open the Auth tab
- Set the Redirect URL to:
For example:
<FRONTEND_URL>/api/backend/mcp-servers/oauth/callbackFor local development:https://harnesst.example.com/api/backend/mcp-servers/oauth/callbackhttp://localhost:9000/api/backend/mcp-servers/oauth/callback - Under Scopes, add the scopes required by the HubSpot MCP server (CRM scopes — typically
crm.objects.contacts.read,crm.objects.deals.read,crm.objects.companies.read, and the matching write scopes if the agent needs to mutate data) - Click Create app
- Copy the Client ID and Client Secret from the Auth tab
2. Install the HubSpot MCP server
In Harnesst, navigate to MCP Servers:
- Click Add MCP server and find HubSpot in the catalog
- Click Add
- Enter:
- Client ID — from the HubSpot Auth tab
- Client Secret — from the HubSpot Auth tab
3. Connect your account
- Click Connect on the HubSpot server card
- You’re redirected to HubSpot’s authorization page
- Select the HubSpot account to connect
- Grant the requested permissions
- You’re redirected back to Harnesst
The server card now shows as connected.
4. Add to an agent
- Open the agent and click Edit
- Click Add tool and pick HubSpot
- Configure tool settings — for HubSpot, write tools are a good candidate for needs approval
Troubleshooting
”Invalid redirect URI”
Make sure the redirect URL in your HubSpot app matches <FRONTEND_URL>/api/backend/mcp-servers/oauth/callback exactly — no trailing slash, protocol, or subdomain mismatches.
”Token exchange failed”
Verify that:
- Your HubSpot app has the scopes the MCP server requests
- The client secret you entered in Harnesst matches the one shown in HubSpot
- The HubSpot app has been fully created (not still in draft)
Last updated on