Skip to main content

HubSpot MCP Server

The HubSpot MCP server lets your AI agents interact with your HubSpot CRM. Agents can retrieve, list, and search contacts, companies, and deals, look up record owners, and explore deal pipelines and stages — all read-only and scoped to the authenticated user's permissions.

Capabilities

ToolWhat It Does
Get contactRetrieve a single contact by record ID
List contactsList contacts with pagination and property selection
Search contactsSearch contacts using filters, free-text queries, and sorting
Get companyRetrieve a single company by record ID
List companiesList companies with pagination and property selection
Search companiesSearch companies using filters, free-text queries, and sorting
Get dealRetrieve a single deal by record ID
List dealsList deals with pagination and property selection
Search dealsSearch deals using filters, free-text queries, and sorting
List ownersList HubSpot owners (users who can be assigned to records)
List deal pipelinesList all deal pipelines with their stages
Get deal pipelineRetrieve a specific deal pipeline and its stages

📝 Note: All HubSpot tools are read-only. The agent cannot create, update, or delete CRM records.

OAuth Setup

The HubSpot MCP server uses OAuth to authenticate on behalf of each user. To enable this integration, you need to create a HubSpot app and provide the credentials to Devs.ai.

Step 1: Create a HubSpot App

  1. Go to the HubSpot Developer Portal and sign in.
  2. Navigate to Apps and click Create app.
  3. Enter a name (for example, "Devs AI") and optionally add a description and logo.

Step 2: Configure OAuth

  1. In your app settings, go to the Auth tab.
  2. Copy the Client ID and Client Secret.
  3. Under Redirect URLs, add the redirect URL provided by your Devs.ai platform administrator.
  4. Under Scopes, add the following:
ScopeWhat It Enables
crm.objects.contacts.readRead contact records
crm.objects.companies.readRead company records
crm.objects.deals.readRead deal records
crm.objects.owners.readRead owner (user) information
  1. Click Save.

Step 3: Configure in Devs.ai

  1. Navigate to Organization > Connectors in Devs.ai.
  2. Find the HubSpot template and click Enable.
  3. Select OAuth as the authentication type.
  4. Enter your Client ID and Client Secret from Step 2.
  5. Select the tools you want to make available.
  6. Click Save.

When a user first interacts with an agent connected to HubSpot, they will be prompted to authorize access to their HubSpot account.

OAuth Configuration Reference

FieldValue
Authorization URLhttps://app.hubspot.com/oauth/authorize
Token URLhttps://api.hubapi.com/oauth/v1/token
Scopescrm.objects.contacts.read, crm.objects.companies.read, crm.objects.deals.read, crm.objects.owners.read

Additional Resources

⌘J