Connect
HubSpot to
Claude Code
- Do UTMs reach HubSpot?
https://mcp.lemonado.io/mcpQuery HubSpot from Claude Code to fix lead tracking and build funnel analysis you can rerun. Lemonado connects them in about 1 minute, no API keys needed.
https://mcp.lemonado.io/mcpWhy connect HubSpot to Claude Code?
Broken UTM fields and messy lead sources usually start in code. Claude Code sees your forms and tracking, and with Lemonado it can check what actually lands in HubSpot, then save the funnel queries in your project.
All your HubSpot data
Contacts and their original source, ready to ask about.
Always today's numbers
Deals, pipelines, stages and amounts, synced from HubSpot automatically, so answers use today's numbers.
Connect all your tools
Questions like "What does a deal cost?" use HubSpot and LinkedIn Ads, Google Ads at once.
How to connect HubSpot to Claude Code
Before you start
- A HubSpot account you can sign in to
- Claude Code installed
- A Lemonado account (the free trial works)
- 1
Connect HubSpot in Lemonado
In Lemonado, open Connectors, find HubSpot and sign in. Sign in with a HubSpot user that can see contacts and deals, then pick the account if you have more than one.
- 2
Turn on external access
In the company's settings, open External tools, turn the connection on, choose which sources it can reach and copy the server URL.
texthttps://mcp.lemonado.io/mcp - 3
Add the server
With Claude Code installed, run one of these in your terminal. Most people want the first: it adds Lemonado to every project.
bash# every project (recommended) claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp # this project only claude mcp add --transport http lemonado https://mcp.lemonado.io/mcp - 4
Sign in
Start Claude Code with claude and run /mcp. Choose Lemonado and finish the sign-in in your browser.
bashclaude /mcp - 5
Ask Claude Code about HubSpot
Ask a question about the accounts your connection can reach. Claude Code can also write the numbers into a file or a script for you. Try "Check the hidden UTM fields in our signup form against the HubSpot contact properties, and tell me which ones arrive empty." Or ask: "Can you score our leads?" or "Can this run before every pipeline review?"
Good to know
- The command uses Claude Code's default local scope. Use --scope user to share the server across projects.
What can Claude Code do with HubSpot?
Claude Code queries your HubSpot data while it works in your repo: it saves data as files, checks tracking against code and runs headless with claude -p.
Check the hidden UTM fields in our signup form against the HubSpot contact properties, and tell me which ones arrive empty.
utm_content is sent as utm-content in forms/signup.tsx, so the HubSpot property has been empty on every contact since August 4.
Source: HubSpot + your code
Pull HubSpot contacts with source, company size and lifecycle stage, fit a simple lead score on who became a customer, and save it to scripts/lead_score.py.
Saved. Company size and coming from the pricing page predict most of it. The score ranks 71% of last quarter's customers in the top fifth.
Source: HubSpot + your code
Write a prompt file that pulls HubSpot deals created and won by source for the last 7 days and saves reports/pipeline.md.
Saved prompts/pipeline.md. Run it with claude -p on a schedule and it writes the weekly pipeline report.
Source: HubSpot + your code
Calculate days in each HubSpot deal stage for deals closed this year and save it as data/deal_stage_days.csv.
Saved 412 deals. Proposal is the slowest stage at 21 days on average; deals over $25k spend 38 days there.
Source: HubSpot + your code
How long do deals take to close by deal size this year?
Under $5k: 19 days. $5k to $25k: 47 days. Over $25k: 96 days, and those slipped most in Q3.
Source: HubSpot
Google Ads and LinkedIn Ads spend next to HubSpot deals created and won, by campaign, last quarter.
LinkedIn costs $3,900 per won deal, Google Ads $2,100. LinkedIn deals are 2.4x larger, so revenue per dollar is close.
Source: HubSpot
Connect HubSpot to another AI app.
Claude
Connect HubSpot to Claude
ChatGPT
Connect HubSpot to ChatGPT
Cursor
Connect HubSpot to Cursor
VS Code (GitHub Copilot)
Connect HubSpot to VS Code (GitHub Copilot)
Codex
Connect HubSpot to Codex
Perplexity
Connect HubSpot to Perplexity
Google Antigravity
Connect HubSpot to Google Antigravity
Windsurf (Devin Desktop)
Connect HubSpot to Windsurf (Devin Desktop)
Zed
Connect HubSpot to Zed
n8n
Connect HubSpot to n8n
Other integrations for Claude Code
All Claude Code integrations- Google Ads in Claude CodeAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Meta Ads in Claude CodeAsk Claude, ChatGPT or Cursor about your Facebook and Instagram ads, creatives and results.
- Google Analytics in Claude CodeAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Google Search Console in Claude CodeAsk Claude, ChatGPT or Cursor about your search queries, rankings and lost clicks.
- Google Sheets in Claude CodeUse your media plans, targets and offline sales sheets in Claude, next to live ad data.
- LinkedIn Ads in Claude CodeAsk Claude, ChatGPT or Cursor about LinkedIn campaigns, lead forms and who converts.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into Claude Code and ask it to connect you, or copy the block.
# Connect HubSpot to Claude Code (Lemonado MCP) - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: OAuth; the user signs in to Lemonado in the browser. No API keys. - In Lemonado: connect the HubSpot account. Sign in with a HubSpot user that can see contacts and deals, then pick the account if you have more than one. - In Claude Code: Terminal: claude mcp add ```bash # every project (recommended) claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp # this project only claude mcp add --transport http lemonado https://mcp.lemonado.io/mcp ``` If you are Claude Code, run the setup yourself: Add the Lemonado MCP server for all my projects by running: claude mcp add --scope user --transport http lemonado https://mcp.lemonado.io/mcp Then tell me to run /mcp and sign in to Lemonado. Once I've signed in, list the HubSpot accounts Lemonado can reach. First question to try: "Check the hidden UTM fields in our signup form against the HubSpot contact properties, and tell me which ones arrive empty." More: https://lemonado.io/integrations/hubspot · https://lemonado.io/llms.txt
Frequently Asked Questions
Yes, if both sit in Lemonado. Connect HubSpot and your database or warehouse, and Claude Code can match contacts to signups or usage in one query, for example to see which lead sources turn into active users.
Yes. HubSpot's official MCP server is hosted, so Claude Code can use it too. It covers HubSpot only. Lemonado covers HubSpot plus your ad platforms, GA4 and the rest of your stack in one connection, so Claude Code can answer questions across them.
Run claude mcp list to see whether lemonado is connected. If it needs authentication, run /mcp inside Claude Code and sign in again. In Lemonado, check that HubSpot is connected and External tools is on for the company. If deals or contacts are missing, check your HubSpot user's permissions. HubSpot only shares records that user can view.
Yes, if both are connected in Lemonado. One connection reaches every source you allow, so you can ask things like "Google Ads and LinkedIn Ads spend next to HubSpot deals created and won, by campaign, last quarter."
MCP is included in Lemonado's paid plans and in the free trial, so you can try it before you pay.
Still have a question?
Shoot us an email at hello@lemonado.io.
Try for freeStop fighting with data. Start feeding your AI.
Connect your data to AI and free your team from reporting and busywork.
Try Lemonado free