SyncGTM now works inside Claude and ChatGPT. Learn moreDonate to Nepal’s flood relief
SyncGTM logoSyncGTM logo
  • Platform

    • Waterfall Enrichment
    • Real-time signals
    • Integrations
    • Enrichment MCP

    Person Data

    • Work Email
    • Mobile Number
    • Personal Email
    • Experience
    • Verify Emails
    View all →

    Company

    • Techstack
    • Website Traffic
    • Revenue
    • Google Ads
    • LinkedIn Posts
    View all →

    Person signals

    • Job Change
    • Promotions
    • Leadership Change
    • LinkedIn Posts
    • WhatsApp Validation
    View all →

    Account signals

    • Headcount Growth
    • Job Openings
    • Techstack Change
    • Funding
    • Product Launched
    View all →
    • Sales
    • RevOps
    • Agency
    • Startups
    • GTM Engineers
    • CRM Enrichment
    • Account Research
    • Inbound Automation
    • Outbound Automation
    • Monitor Signals
  • Fractional GTMe
  • Pricing
  • Learn

    • Blog
    • Docs
    • Templates
    • Reports
    • Video Tutorials
    • Product Tour

    Resource

    • Affiliate
    • Free Tools
    • Credit Estimator
    • Compare Coverage
    • Agency Directory
    • Product Updates
    • Roadmap
    • Join community

    AI

    • GTM agents
    • GTM skills
  • Login
  • vsClay logoClay
  • Platform

    • Waterfall Enrichment
    • Real-time signals
    • Integrations
    • Enrichment MCP

    Person Data

    • Work Email
    • Mobile Number
    • Personal Email
    • Experience
    • Verify Emails
    • View all →

    Company

    • Techstack
    • Website Traffic
    • Revenue
    • Google Ads
    • LinkedIn Posts
    • View all →

    Person signals

    • Job Change
    • Promotions
    • Leadership Change
    • LinkedIn Posts
    • WhatsApp Validation
    • View all →

    Account signals

    • Headcount Growth
    • Job Openings
    • Techstack Change
    • Funding
    • Product Launched
    • View all →
    • Sales
    • RevOps
    • Agency
    • Startups
    • GTM Engineers
    • CRM Enrichment
    • Account Research
    • Inbound Automation
    • Outbound Automation
    • Monitor Signals
  • Fractional GTMe
  • Pricing
    • Blog
    • Docs
    • Templates
    • Reports
    • Video Tutorials
    • Product Tour

    Resource

    • Affiliate
    • Free Tools
    • Credit Estimator
    • Compare Coverage
    • Agency Directory
    • Product Updates
    • Roadmap
    • Join community

    AI

    • GTM agents
    • GTM skills
  • Login
  • vsClay logoClay
SyncGTM logo
support@syncgtm.com
Built withfrom&

Platform

  • Waterfall Enrichment
  • Real-time signals
  • Integrations
  • Enrichment MCP
  • Enrichment CLIsoon

Use Cases

  • CRM Enrichment
  • Account Research
  • Inbound Automation
  • Outbound Automation
  • Monitor Signals

Person Data

  • Work Email
  • Mobile Number
  • Personal Email
  • Experience
  • Verify Emails
  • View all →

Company Data

  • Techstack
  • Website Traffic
  • Job Listing
  • Google Ads
  • LinkedIn Posts
  • View all →

Person Signals

  • Job Change
  • Promotions
  • Leadership Change
  • LinkedIn Posts
  • WhatsApp Validation
  • View all →

Account Signals

  • Headcount Growth
  • Job Openings
  • Techstack Change
  • Funding
  • Product Launched
  • View all →

Solutions

  • Sales
  • Agency
  • RevOps
  • Startups
  • GTM Engineers
  • Fractional GTMe

Company

  • Contact
  • Affiliate
  • Sign Up
  • Login
  • Terms
  • Affiliate Terms
  • Privacy

Resources

  • Pricing
  • Credit Estimator
  • Templates
  • Blog
  • Video Tutorials
  • Slack Community
  • Docs
  • Agency Directory
  • Free Tools
  • Product Updates
  • Roadmap

Copyright ©2026 SyncGTM

Featured on SaaSBison
Claude Code HubSpot Integration guide — connecting AI agent to HubSpot CRM

In this Blog

  • TL;DR
  • What This Guide Covers
  • Why Connect Claude Code to HubSpot?
  • Three Ways to Integrate Claude Code With HubSpot
  • Method 1: HubSpot Connector for Claude
  • Method 2: HubSpot MCP Server (Developer Route)
  • Method 3: HubSpot API Direct Access
  • MCP Setup: Step-by-Step Configuration
  • Workflow Triggers: What You Can Automate
  • Bi-Directional Data Sync Between Claude Code and HubSpot
  • Real-World Use Cases
  • Limitations and Gotchas
  • FAQs
  • Conclusion

Claude Code HubSpot Integration: Connect Your Marketing Stack in 2026

Kushal Magar

By Kushal Magar · April 26, 2026 · 14 min read

Key Takeaway

Claude Code connects to HubSpot through three paths — the official connector, community MCP servers, or direct API calls. MCP servers give the most flexibility for GTM automation: bi-directional CRM sync, automated lead routing, and workflow triggers that run from your terminal.

HubSpot is the CRM for over 228,000 companies. Claude Code is the fastest-growing AI agent for GTM teams. Connecting them means your AI agent can read live CRM data, create contacts, update deals, and trigger marketing workflows — without you copying a single field between tabs.

This guide walks through every integration path: the official HubSpot connector for Claude, community MCP servers, and direct API access. You will know which method fits your stack, how to configure it, and what you can automate once the connection is live.

How do you integrate Claude Code with HubSpot?

You integrate Claude Code with HubSpot through three methods: (1) the official HubSpot connector in Claude settings, which handles OAuth automatically and supports CRM read/write operations; (2) an MCP server — either HubSpot's developer server or a community package like mcp-hubspot — that gives Claude Code programmatic API access from your terminal; or (3) direct HubSpot API calls using a private app access token, where Claude Code makes REST requests to HubSpot endpoints. MCP servers offer the most flexibility for building automated GTM workflows.


TL;DR

  • Three integration paths: Official HubSpot connector (easiest), MCP server (most flexible), or direct API calls (most control).
  • MCP is the power move. It lets Claude Code read contacts, create deals, log activities, and trigger workflows from your terminal — no browser required.
  • Setup takes 10–30 minutes depending on the method. The connector is a 5-click process. MCP servers need a private app token and a Docker or npx command.
  • Bi-directional sync works. Claude Code reads HubSpot data to inform decisions and writes back — creating contacts, updating properties, and logging engagement.
  • Pair with SyncGTM for enrichment. Claude Code orchestrates. SyncGTM provides waterfall enrichment, signals, and verified contact data that feeds directly into your HubSpot workflows.
  • Limitations exist. No delete operations via connector. Max 10 records per bulk operation. Custom objects not supported through the connector (use API for those).

What This Guide Covers

This post is for marketing ops, sales ops, and GTM engineers who want Claude Code talking to HubSpot. You will learn the three integration methods, step-by-step MCP configuration, what data flows in each direction, and practical automation workflows.

If you have never used Claude Code, start with our Claude Code for Sales guide first. It covers installation, basic commands, and five sales workflows. This post assumes you have Claude Code running and a HubSpot account with admin access.


Why Connect Claude Code to HubSpot?

Claude Code executes, not just advises. Connected to HubSpot, it reads your pipeline, enriches contacts, and updates your CRM — from a single prompt.

Here is what that unlocks:

  • Automated lead enrichment. Claude Code pulls a new contact from HubSpot, enriches it through enrichment APIs, and writes the firmographic data back to HubSpot properties — no manual research.
  • Smart lead routing. Read incoming leads, score them against your ICP criteria using live data, and assign them to the right rep or sequence.
  • CRM hygiene on autopilot. Detect duplicate contacts, fill in missing fields, normalize job titles, and flag stale deals — tasks that ops teams spend hours on weekly.
  • Personalized outreach at scale. Pull deal context and contact history from HubSpot, then draft hyper-personalized emails that reference real engagement data.
  • Marketing workflow triggers. Update a contact property that enrolls them in a HubSpot workflow — list segmentation, nurture sequences, or internal notifications.

Teams using task-specific AI agents for lead nurturing report a 23% lift in conversion rates over 12 months, per Stormy AI research. The key is connecting the agent to live data — not feeding it exported CSVs.


Three Ways to Integrate Claude Code With HubSpot

Not every team needs the same depth. Here are the three paths, ranked from simplest to most powerful.

MethodSetup TimeBest ForLimitations
HubSpot Connector5 minutesQuick CRM lookups, one-off updatesNo custom objects, no delete, max 10 bulk records
MCP Server15–30 minutesAutomated workflows, multi-step pipelinesRequires Docker or npx, private app token
Direct API30–60 minutesCustom objects, complex queries, full controlManual auth handling, rate limit management

Method 1: HubSpot Connector for Claude (Easiest)

The official HubSpot connector is a first-party integration. It handles OAuth automatically and surfaces HubSpot data inside Claude's interface.

Setup steps:

  1. Open Claude → Settings → Connectors
  2. Browse the Web tab, find HubSpot, click “Add to your team”
  3. Return to Connectors, click Connect
  4. Authenticate with your HubSpot account and approve permissions
  5. Start prompting — Claude now has live CRM context

What you can do:

  • Read and create contacts, companies, deals, tickets, and line items
  • Log calls, meetings, notes, tasks, and emails
  • Read-only access to quotes, invoices, campaigns, landing pages, and blog posts
  • Search across all accessible objects

What you cannot do: Delete records, access custom objects, or run operations on more than 10 records at once. If you need any of those, move to Method 2 or 3.

Requires a paid Anthropic plan

The connector needs Claude Pro ($20/mo), Max ($100–$200/mo), Team, or Enterprise. Free Claude accounts cannot use connectors. On the HubSpot side, the connector works with all tiers including the free CRM.

Method 2: HubSpot MCP Server (Developer Route)

MCP (Model Context Protocol) is Anthropic's open standard for connecting AI agents to external data sources. An MCP server runs locally on your machine and gives Claude Code structured access to HubSpot's API.

There are two solid MCP server options for HubSpot:

Option A: HubSpot Developer MCP Server

HubSpot ships its own MCP server through the HubSpot CLI. It requires CLI version 8.2.0+ and supports Claude Code natively.

  1. Install or update the HubSpot CLI: npm install -g @hubspot/cli@latest
  2. Run hs mcp setup and select Claude Code as your client
  3. Choose standalone or global mode
  4. Restart Claude Code to load the configuration
  5. In Claude Code, run /mcp and select HubSpotDev to verify

Option B: Community mcp-hubspot Server

The open-source mcp-hubspot package adds vector search with FAISS and caching on top of HubSpot's API. It runs in Docker.

  1. Create a private app in HubSpot with scopes: crm.objects.contacts (read/write), crm.objects.companies (read/write), sales-email-read
  2. Copy the access token
  3. Install via Smithery: npx -y @smithery/cli@latest install mcp-hubspot --client claude
  4. Or run directly with Docker: docker run -e HUBSPOT_ACCESS_TOKEN=your_token buryhuang/mcp-hubspot:latest

Available MCP tools:

ToolWhat It Does
hubspot_create_contactCreate contacts with duplicate prevention
hubspot_create_companyCreate companies with duplicate prevention
hubspot_get_company_activityPull recent activity for a company
hubspot_get_active_contactsFetch recently active contacts
hubspot_get_recent_conversationsRetrieve conversation threads with messages
hubspot_search_dataSemantic search across CRM data via FAISS

Method 3: HubSpot API Direct Access (Full Control)

If you need custom objects, complex CRM queries, or workflow engine access, Claude Code can call HubSpot's REST API directly. This requires a private app access token and manual HTTP requests — but gives you access to every endpoint HubSpot exposes.

Setup:

  1. In HubSpot, go to Settings → Integrations → Private Apps → Create a private app
  2. Assign the scopes you need (contacts, companies, deals, custom objects, etc.)
  3. Copy the access token
  4. Store it in a .env file that Claude Code can access
  5. Prompt Claude Code to make authenticated requests: curl -H "Authorization: Bearer $HUBSPOT_TOKEN" https://api.hubapi.com/crm/v3/objects/contacts

Claude Code handles the HTTP calls, parses the JSON responses, and acts on the results. You get full access to custom objects, pipeline stages, and association APIs — everything the connector and basic MCP servers cannot reach.


MCP Setup: Step-by-Step Configuration

MCP is the best path for automated, repeatable workflows. Below is the full Composio-hosted setup, which handles OAuth and token refresh for you.

Step 1: Get Your Composio API Key

Sign up at Composio and grab your API key from the dashboard. Create a .env file:

COMPOSIO_API_KEY=your_key_here
USER_ID=your_user_id

Step 2: Generate the MCP URL

Install the Composio library and generate your session URL:

pip install composio-core python-dotenv

# generate_mcp_url.py
import os
from composio import Composio
from dotenv import load_dotenv

load_dotenv()
client = Composio(api_key=os.getenv("COMPOSIO_API_KEY"))
session = client.create(
    user_id=os.getenv("USER_ID"),
    toolkits=["hubspot"],
)
print(session.mcp.url)

Step 3: Register the MCP Server With Claude Code

Run the following command in your terminal:

claude mcp add --transport http hubspot-composio \
  "YOUR_MCP_URL" \
  --headers "X-API-Key:YOUR_COMPOSIO_API_KEY"

Step 4: Authenticate HubSpot

The first time you use a HubSpot tool in Claude Code, Composio opens a browser OAuth flow. Approve the connection and you are set. Token refresh is handled automatically — no manual re-authentication.

Step 5: Verify the Connection

Restart Claude Code, then prompt it:

> List 5 recent contacts from HubSpot

If it returns real CRM data, the connection is live. If not, check that your MCP URL is correct and that you completed the OAuth flow.


Workflow Triggers: What You Can Automate

Once Claude Code connects to HubSpot, you can build workflows that trigger automatically — or fire them manually from a prompt. Here are the highest-impact patterns GTM teams are running right now.

1. Inbound Lead Enrichment

A new contact hits HubSpot through a form submission. Claude Code picks it up, runs the email through waterfall enrichment, and writes firmographic data (company size, industry, tech stack) back to the contact record. No manual research required.

2. Lead Scoring and Routing

Claude Code reads new contacts, scores them against your ICP definition using enriched data, and updates a custom HubSpot property with the score. Contacts above threshold get assigned to the right rep and enrolled in a high-touch sequence.

3. Deal Stage Automation

When a deal moves to “Proposal Sent,” Claude Code pulls the company's latest news and org chart data, generates a personalized follow-up email, and logs it as a note on the deal. The rep gets context without lifting a finger.

4. CRM Data Hygiene

Schedule a weekly prompt: “Find contacts in HubSpot with missing phone numbers, enrich them, and update the records.” Claude Code fetches active contacts with empty fields, runs enrichment, and patches the records. Your CRM stays clean without ops team hours.

5. Marketing Campaign Feedback Loop

Claude Code pulls campaign performance data from HubSpot (open rates, click rates, conversion by segment), analyzes what is working, and drafts recommendations or updates to email copy — all in one session.


Bi-Directional Data Sync Between Claude Code and HubSpot

The integration is not one-way. Claude Code reads from HubSpot to inform its decisions and writes back to keep your CRM current.

DirectionData TypeExample
HubSpot → Claude CodeContact recordsPull new leads to enrich and score
HubSpot → Claude CodeDeal pipelineAnalyze stalled deals for coaching prep
HubSpot → Claude CodeCampaign metricsEvaluate email performance by segment
Claude Code → HubSpotEnriched propertiesWrite firmographic data to contact fields
Claude Code → HubSpotActivity logsLog calls, notes, tasks, and emails
Claude Code → HubSpotNew recordsCreate contacts and companies from enriched lists

SyncGTM fits into this loop as the enrichment layer. Claude Code reads a contact from HubSpot, sends it to SyncGTM's MCP for waterfall enrichment across 50+ providers, and writes the verified data back to HubSpot. One prompt. Three systems. Zero manual steps.


Real-World Use Cases

Use Case 1: Automated Inbound Lead Qualification

A B2B SaaS company receives 200+ inbound leads per week through HubSpot forms. Before: a BDR manually researched each lead on LinkedIn and ZoomInfo, taking 4–6 minutes per contact. After: Claude Code monitors new contacts via MCP, enriches each through SyncGTM (pulling verified email, company size, tech stack, and funding data), scores against ICP, and routes qualified leads to reps with full context in the HubSpot notes field. Time per lead: 0 minutes manual.

Use Case 2: Weekly Pipeline Review Prep

A sales manager runs a weekly prompt: “Pull all deals in Negotiation stage from HubSpot. For each, summarize recent activity, flag deals with no engagement in 7+ days, and draft a follow-up email for stalled ones.” Claude Code exports the report as a CSV and pushes follow-up drafts to the deal notes. The Monday pipeline meeting is prepped before the manager opens their laptop.

Use Case 3: Marketing Campaign Optimization

A marketing ops team wants to know which nurture sequences convert best. Claude Code pulls campaign data from HubSpot, cross-references with deal stage progression, and generates a breakdown showing which email sequences led to the most SQLs. The analysis runs in 90 seconds — replacing what used to be a 3-hour spreadsheet exercise.


Limitations and Gotchas

Know these constraints before committing to a workflow.

  • No delete operations via connector. The official HubSpot connector cannot delete records. Use the API directly if you need to clean up duplicates or remove test data.
  • 10-record bulk limit. The connector caps bulk create/update at 10 records per operation. For larger imports, use the HubSpot Batch API through Method 3.
  • Custom objects not supported by connector. If your HubSpot instance uses custom objects (common in enterprise setups), you need direct API access. MCP servers and the connector only handle standard objects.
  • Rate limits. HubSpot enforces 100 requests/10 seconds for private apps and 200/10 seconds for OAuth apps. Claude Code can hit these quickly if running batch operations. Build in delays or batch your requests.
  • Sensitive Data settings block engagement access. If your HubSpot account has Sensitive Data turned on, the connector cannot access engagement data (emails, calls, meetings). Check your settings before troubleshooting missing data.
  • Custom validation rules are bypassed.When creating records through the connector, HubSpot's custom validation rules do not apply. Verify data quality in your prompts or add validation logic to your Claude Code workflow.

Conclusion

This integration turns HubSpot from a passive database into an active operations layer. Connector for speed. MCP for power. Direct API for full control.

For most GTM engineering teams, the MCP route hits the sweet spot: fast setup, bi-directional data flow, and enough flexibility to build automated enrichment, scoring, and routing workflows.

Pair it with SyncGTM for the enrichment layer — waterfall contact data from 50+ providers, job change signals, tech stack detection — and you have a complete pipeline from raw lead to fully enriched, scored, and routed HubSpot record. No manual work. No tab-switching. One prompt.

Ready to connect your stack?

Start with SyncGTM free — connect Claude Code to HubSpot and 50+ enrichment sources in under 10 minutes. No credit card required.


Frequently Asked Questions

Skip the manual CRM work

SyncGTM connects Claude Code to 50+ enrichment providers, buying signals, and your CRM — including HubSpot — through a single MCP connection.

Share Article


Ask AI

Connect Claude Code to HubSpot and 50+ Data Sources

SyncGTM's MCP gives Claude Code access to waterfall enrichment, job change signals, tech stack data, and HubSpot CRM sync — so your AI agent can enrich, route, and update leads without leaving your terminal.