Sprites MCP · HubSpot MCP server · Gemini

How to connect HubSpot to Gemini

To connect HubSpot to Gemini, add https://mcp.sprites.ai/mcp as a remote MCP server in Gemini, sign in to Sprites, and Gemini can read your HubSpot account and propose changes to it. Setup takes about two minutes and needs no API key. Every write comes back as an approval before it touches the account.

MCP server URLhttps://mcp.sprites.ai/mcp

5 steps · about 2 minutes

GeminiSprites connected

Which campaigns produced qualified leads and open deals last month, and what did each cost?

Spritesanalyzerunning
SpritesHubSpot
  • LinkedIn · ABM Q418 SQLs · $240k openScale$310/SQL
  • Google · Brand Exact41 SQLs · $190k openScale$95/SQL
  • Google · Generic3 SQLs · $12k openCut$1.4k/SQL
Read-only · nothing changedSee the report

Add Sprites to Gemini

Available on Gemini CLI, free and paid, on macOS, Linux and Windows. You need a Sprites account with HubSpot already connected — the connector acts on that connection, so Gemini never handles a HubSpot credential.

  1. Open the Gemini settings file

    Gemini CLI keeps MCP servers in its settings JSON. Use ~/.gemini/settings.json to have Sprites available everywhere, or .gemini/settings.json inside a project to scope it there.

    Gemini CLI
    ~/.geminisettings.json
  2. Add Sprites under mcpServers

    Use httpUrl, not url or command — that is the key Gemini CLI reads for a streamable HTTP endpoint. A url entry is treated as SSE and a command entry as a local process, and neither is what this is.

    ~/.gemini/settings.json
    {
      "mcpServers": {
        "sprites": {
          "httpUrl": "https://mcp.sprites.ai/mcp"
        }
      }
    }
  3. Sign in

    Gemini CLI supports OAuth 2.0 for remote servers and discovers the authorization server from the endpoint itself. Restart the CLI, and the first call opens a browser for the Sprites consent screen; the token is stored in ~/.gemini/mcp-oauth-tokens.json.

    Spriteswants access on behalf of Gemini
    • Read your connected ad accounts and site data
    • Draft campaigns, creatives and pages for your approval
    • Apply only the changes you approve
    AllowCancel
  4. Check it landed

    Type /mcp in the CLI to list every server and the tools it exposes, or run gemini mcp list from a shell to see connection status without opening a session.

    Terminal
    gemini mcp list

What permissions this needs

Connecting HubSpot to Gemini yourself means a HubSpot CRM API integration, and these are the permissions and gates it runs into. Through Sprites you sign in with OAuth instead, with no developer token or app review of your own.

crm.objects.*.read scopes

Read-only access to contacts, companies and deals; HubSpot grants no write from a .read scope.

crm.export

Lets a filtered list be exported, which is how an ad audience file is built.

Private app or MCP auth app

The do-it-yourself routes: a private app token, or registering an app for HubSpot’s own MCP server.

What Sprites asks for when you connect

HubSpot sign-in for read scopes on contacts, companies, deals and their related records, plus export for audience files. No create, update or delete scope.

What you skip

You create no private app and paste no HubSpot token into your AI client. Gemini signs in to Sprites with OAuth and never holds a HubSpot credential.

Official HubSpot MCP vs Sprites MCP

HubSpot runs its own MCP server at mcp.hubspot.com. Here is what each one covers, so you can pick the one that fits in Gemini — or connect both.

HubSpot runs its own remote MCP server, now generally available. It reads CRM records such as contacts, companies, deals and tickets, plus marketing content and activities, and it can create and update contacts, companies, deals, tickets, line items, products and activities. Agents sign in with OAuth 2.1 through an MCP auth app and inherit the user’s HubSpot permissions. It reaches HubSpot only, and knows nothing about your ad accounts. A separate developer MCP server, run through the HubSpot CLI, is for building apps and CMS content.

HubSpot’s official HubSpot MCP server compared with the Sprites MCP server
HubSpot officialmcp.hubspot.comSprites MCPapproval-gated
Endpointmcp.hubspot.com, with an MCP auth app you create in HubSpotmcp.sprites.ai/mcp
ReachesHubSpot onlyHubSpot beside Google Ads, Meta, LinkedIn, TikTok, Reddit, GA4 and SEO
WritesCreate and update CRM records and activitiesNothing in HubSpot; ad-account changes are approval cards
Marketing contentReads campaigns, landing pages, blog posts and marketing eventsNot read; Sprites reads the CRM and the ad platforms
AttributionCRM data onlyQualified leads and deals matched to the ad spend that produced them
SetupCreate an MCP auth app, then connect a client that supports OAuth with PKCEConnect HubSpot once in Sprites; the agent never holds a HubSpot token

If you want an agent to work inside HubSpot itself — update deals, log activities, read marketing content — HubSpot’s own server is built for that. Use Sprites when the HubSpot question is really a marketing question: which campaigns produced qualified leads and revenue, and what to change in the ad accounts as a result, with HubSpot only ever read and every ad change held for your approval.

Why run HubSpot ads through Sprites

Gemini is the interface; the connector decides what it can see and what it is allowed to do. Six things change when that connector is Sprites.

The CRM next to the ad accounts

A HubSpot-only connector answers with HubSpot. Sprites reads HubSpot beside Google Ads, Meta and LinkedIn, so cost per qualified lead is one question, and the budget move it implies is the next one.

What Sprites reads from HubSpot

Scopes chosen so it cannot write

Sprites asks HubSpot for read access to contacts, companies, deals, owners, lists, property definitions and forms, plus an export scope for audience files. There is no write scope to misuse, however a request is phrased.

Every scope, listed

Ad changes approved, audiences reviewed

Budget moves arrive as a card with the before and after. An audience built from a CRM segment is a file you review first; nothing is uploaded to LinkedIn or Meta until you approve it.

Run the first prompt

Ask Gemini this. It routes to a Sprites door, which reads your HubSpot account and answers — no account to name, no confirmation to give first.

  • With Sprites, which Google and LinkedIn campaigns produced qualified leads in HubSpot last month?
  • Ask Sprites for open HubSpot deals by stage and owner, with the amount in each.
  • Use Sprites to compare HubSpot lead-to-customer rate by lead source next to our ad spend.
  • Have Sprites build a LinkedIn audience from HubSpot contacts at the opportunity stage.
  • Every Monday, have Sprites summarize new HubSpot leads by source and campaign.

Run `gemini mcp list`, or type /mcp inside the CLI — Sprites should show as connected with its tools listed.

Running HubSpot from Gemini

The jobs people hand over first, start to finish: what you type, what Sprites does with it, and what comes back to approve.

  1. Cost per qualified lead

    You, in GeminiWith Sprites, what did each SQL cost us last month, by campaign?

    Sprites does
    Counts contacts that reached the SQL stage by lead source in HubSpot, then reads spend for the same period from the ad accounts.
    You get back
    One table of cost per SQL by campaign, and the budget changes it suggests as approval cards.
  2. Customers to lookalike seed

    You, in GeminiAsk Sprites to build a Meta audience from our HubSpot customers.

    Sprites does
    Finds the lifecycle stage property, filters contacts to customers and exports them with the match columns the platform needs.
    You get back
    A hosted CSV and a count for you to review; nothing is uploaded until you approve.
  3. Monday lead quality

    You, in GeminiEvery Monday, have Sprites summarize new HubSpot leads by source and campaign.

    Sprites does
    Tallies new contacts and their lifecycle stages by lead source on a schedule.
    You get back
    A short lead-quality read in your thread each week, with weak sources named.

What Gemini can do with HubSpot

The same doors, whichever client you are in. The account and the analytics are already Google: Gemini reads Google Ads and GA4 alongside Search Console without leaving the family it belongs to.

Ad spend and pipeline in one answer

HubSpot sits beside Google Ads, Meta and LinkedIn in the same conversation, so "which campaigns produced qualified leads" is read from the ad accounts and the CRM together rather than from two exports and a spreadsheet.

Totals computed, not guessed

Counts, funnels and sums are tallied across every matching record, past HubSpot’s 10,000-result search limit, grouped by lead source, lifecycle stage, deal stage or owner. The agent reads your own properties first, so a custom field or renamed stage does not break the report.

Lead quality, not just lead count

Contacts carry their source, lifecycle stage, form conversions and meetings, so a campaign is judged on the leads that became MQLs, SQLs and deals instead of on form fills.

Audiences from a CRM segment

Filter contacts or companies by lifecycle stage, industry or any property and Sprites builds a match-ready CSV for a LinkedIn or Meta custom audience. The file is yours to review before anything is uploaded.

Read-only by permission

The connection is granted no write scope. However a request is phrased, Sprites cannot create, update or delete anything in HubSpot.

Ad changes still need your approval

When the pipeline says to move budget or pause a campaign, that change arrives as an approval card on the ad platform, never as a silent edit.

How approvals work here

Gemini renders tool results as text, so a HubSpot change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.

What it reads

  • Contacts, companies and deals, with your own properties and custom fields
  • Lead source, lifecycle stage, form conversions and meetings on each contact
  • Deal pipelines, stages and amounts, and owners resolved to names
  • Lists and their members, and your forms
  • Counts, funnels and sums by source, stage, owner or any property

What it can change

  • Nothing in HubSpot: no records created, updated or deleted
  • No write scope is requested, so a write is impossible rather than merely discouraged
  • An audience CSV can be built from a CRM segment, held for your review before any ad-platform upload
  • Ad-account changes that follow from the pipeline are approval cards on that platform

When it does not work in Gemini

Three things go wrong in this client specifically, and each has a one-line fix.

Gemini connects but reports no tools.

The entry is probably using url rather than httpUrl, so the CLI is speaking SSE to a streamable HTTP endpoint. Change the key and restart.

Edits to settings.json do nothing.

The CLI reads its settings at startup. Restart it, then re-check with /mcp.

A project file and your home file disagree.

.gemini/settings.json in the working directory takes precedence. Keep Sprites in one of the two rather than both.

And on the HubSpot side

Sprites says a property or stage does not exist.

HubSpot portals rename stages and add custom properties. Sprites reads your property definitions and pipelines before filtering; if a property was just added in HubSpot, ask again and it will be picked up.

Leads do not show which campaign they came from.

Attribution reads the source properties on your HubSpot contacts and deals. If leads arrive without a source or campaign, the report can only group by what is there; capture it on the form or tracking and the next report can use it.

HubSpot will not let me connect.

Installing an app needs a HubSpot user who is allowed to install apps in that portal. Ask a Super Admin to connect it, or to grant that permission.

HubSpot data looks out of date or missing after a change.

Reconnect HubSpot from the Sprites integrations page, then ask again. Disconnecting deletes the stored token, and reconnecting asks HubSpot for the current permissions.

HubSpot and Gemini: questions

Which URL do I paste into Gemini?

https://mcp.sprites.ai/mcp. There is one endpoint and every client uses it — every OAuth grant is bound to exactly that address, so a variant of it will not be honoured.

Can Gemini change my HubSpot account without asking?

Gemini renders tool results as text, so a HubSpot change comes back written out rather than as a card. The approval waits for you in Sprites — open it there and the same run continues. Nothing is applied until you approve it.

Do I need a HubSpot API key or developer token?

No. HubSpot is connected once inside Sprites through HubSpot (HubSpot OAuth, read-only), and the connector acts on that connection. You create no private app and paste no HubSpot token into your AI client. Gemini never sees a credential for it.

Why Gemini for HubSpot specifically?

The account and the analytics are already Google: Gemini reads Google Ads and GA4 alongside Search Console without leaving the family it belongs to.

Is there an official HubSpot MCP server?

Yes. HubSpot’s remote MCP server at mcp.hubspot.com is generally available. It reads CRM records, marketing content and activities, and it can create and update contacts, companies, deals, tickets, line items, products and activities. Agents sign in with OAuth 2.1 and inherit your HubSpot permissions. Sprites is a separate MCP server that reads HubSpot beside your ad accounts and writes nothing to it.

Can Sprites change anything in HubSpot?

No. Every permission Sprites asks HubSpot for is read-only, so it cannot create, update or delete a contact, company or deal. Audiences built from HubSpot go to your ad platforms only after you approve them.

Keep going

The same Gemini connector reaches every other channel — nothing else to add.

All HubSpot guides

HubSpot, from Gemini

Paste one URL, sign in once, and the next HubSpot question you ask Gemini gets answered from the live account.