Logo van Connect Hubspot Mcp

Connect Hubspot Mcp

Community
TomGranot
connect-hubspot-mcp

Connect Claude to HubSpot's official remote MCP server for conversational CRM lookups, spot-checks, and small confirmed edits. Covers the MCP connector setup with OAuth and PKCE, what the server's tools can and cannot do, and when to use MCP versus the Agent CLI versus this repo's scripts.

Add to TypingMind

Overzicht

UitgeverTomGranot
Repositoryhubspot-admin-skills
Skillnaamconnect-hubspot-mcp
Sterren
79
Forks
18
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door TomGranot op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Connect Hubspot Mcp in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/TomGranot/hubspot-admin-skills/tree/main/skills/connect-hubspot-mcp
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TomGranot/hubspot-admin-skills.git /tmp/hubspot-admin-skills
mkdir -p .claude/skills
cp -r /tmp/hubspot-admin-skills/skills/connect-hubspot-mcp .claude/skills/connect-hubspot-mcp
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Connect Hubspot Mcp in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Connect Hubspot Mcp automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Connect Hubspot Mcp niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Connect Claude to HubSpot via MCP

Set up HubSpot's official remote MCP server so Claude can read and write CRM records conversationally: look up a contact, inspect a company's deals, spot-check the results of a cleanup, without writing a script for every question.

Three Ways to Reach a Portal

This toolkit can talk to HubSpot three ways. They overlap less than they appear to.

Remote MCP server (this skill)Agent CLI (/connect-hubspot-agent-cli)REST scripts (every scripted skill)
StatusGenerally availableBetav3/v4 paths, see /audit-api-usage
AuthOAuth as you, via an MCP connectorOAuth as you, or a service keyService key in .env
Best forLookups, spot-checks, judgment calls, small editsBulk and admin work driven from the terminalRepeatable runs with a CSV audit trail and an abort threshold
Bulk reads200 records per pagePaginated, JSONL outPaginated
Bulk writesA few records at a time, each confirmedJSONL in, dry run firstBatches of 100
Delete or archiveNot availableYes, guardedYes, guarded
WorkflowsNot availableList, get, create, update, deleteCreate, export, restore
PropertiesCreate onlyCreate, update, archiveCreate
Runs headless (CI, scheduled)NoWith a service keyYes

Rule of thumb: MCP to look, scripts to change at scale. Reach for the Agent CLI when a job is bulk or administrative and no scripted skill covers it.

Task shapeUse
"Show me 5 contacts the cleanup touched"MCP
"Why is this company in Tier 2?"MCP
"Which open deals has nobody touched this quarter? Show me a few."MCP
"Delete 4,000 no-email contacts with an audit trail"Scripts (/delete-no-email-contacts)
"Create 10 segmentation lists"Scripts (/build-smart-lists)
"Export every workflow to JSON"Scripts (/workflows-as-code)
"Archive these 60 unused properties"Agent CLI

What the Server Exposes

HubSpot's remote MCP server lives at https://mcp.hubspot.com and speaks streamable HTTP. It currently offers 32 tools. The ones that matter for CRM administration:

ToolWhat it doesLimit
get_user_detailsYour user, account, and per-object read/write accessRun this first to verify the connection
discover_hubspot_schemaObject types and whether each is readable or writable
search_crm_objectsSearch and filter records5 filter groups of 6 filters; 200 results per page
get_crm_objectsFetch records by ID100 IDs per call
query_crm_dataSQL-style aggregate queriesNo joins, subqueries, aliases, or association traversal
search_properties, get_propertiesProperty definitions and enum values5 keywords per search
search_ownersOwners by name, email, or ID100 results
manage_crm_objectsCreate or update records and activitiesShows a change summary and waits for confirmation
manage_custom_propertiesCreate custom propertiesCreate only
manage_custom_pipelinesCreate and manage pipelinesCan edit the default pipeline
manage_segmentCreate segments; add or remove records in static segmentsRequires confirmation
get_marketing_email_analyticsSend statistics, health diagnostics, per-contact engagement
tool_guidanceUsage instructions for the other toolsCall before query_crm_data

The rest cover campaigns, conversations, buyer intent, landing and website pages, blog posts, and AEO.

Readable objects include contacts, companies, deals, tickets, leads, custom objects, segments, activities, and owners. Revenue objects (invoices, orders, line items, products, quotes, subscriptions) are read-only and in beta.

What it cannot do, and what to use instead:

CannotUse instead
Delete or archive anythingThe scripted skill for that cleanup, or the Agent CLI
Read or change workflows/workflows-as-code, /cleanup-workflows, or the Agent CLI
Update or archive a property/cleanup-properties or the Agent CLI
Page through a large result set efficientlyA script. Use query_crm_data when a count or aggregate is all you need
Read activities or conversations when Sensitive Data is enabledThe REST API, which is unaffected

Prerequisites

  • A HubSpot user who can create an MCP connector, or an admin who will create one for you
  • Claude Code, or the Claude app on a Pro, Max, Team, or Enterprise plan
  • Nothing else. This is separate from the service key the scripts use: MCP connects as you, with your HubSpot permissions

Execution Pattern

Stage 1: Plan

  1. Decide who is connecting. Access is user-scoped, so connect with a user whose permissions match what you want Claude to be able to do. A read-only user gives a read-only connection.
  2. Check with a Super Admin whether the portal restricts who can connect apps. MCP connections may need approval.

Stage 2: Execute

Option A: the HubSpot connector in the Claude app (no terminal). In Claude's connector settings, add the HubSpot connector and complete the OAuth flow in the browser. HubSpot's guide: knowledge.hubspot.com, "Set up and use the HubSpot connector for Claude". It runs on the same remote server, and HubSpot caps its bulk create and update at 10 records at a time.

Option B: Claude Code. The server does not support dynamic client registration, so a bare claude mcp add cannot authenticate. Register a connector first:

  1. In HubSpot, go to Development > MCP Connectors and click Create MCP connector.

  2. Give it a name and a redirect URL. Claude Code listens on localhost during OAuth, so pick a fixed port and register http://localhost:8765/callback. The redirect URL must match exactly; if authentication fails with a redirect mismatch, copy the URL from the error into the connector.

  3. Open the connector and copy its client ID and client secret.

  4. Add the server, using the same port:

    bash
    claude mcp add --transport http --client-id YOUR_CLIENT_ID --client-secret --callback-port 8765 hubspot https://mcp.hubspot.com

    Claude Code prompts for the secret. Do not paste it into the command line or commit it.

  5. In Claude Code, run /mcp, choose hubspot, and authenticate. Pick the account, review the permissions, and authorize.

You do not choose scopes. They are derived from the tools the server offers and the permissions you grant. When HubSpot adds tools that need new scopes, reconnect to grant them.

HubSpot has not published Claude Code setup steps for the remote server; the steps above follow from the server's OAuth metadata and Claude Code's claude mcp add options. If they stop working, the connector in the Claude app (Option A) is the supported path.

Stage 3: After

Ask Claude for a harmless read and confirm it round-trips:

"Using the HubSpot MCP tools, call get_user_details, then fetch one contact and tell me its lifecycle stage."

get_user_details also reports which objects the connection can write to. If that list is longer than you intended, reconnect as a user with narrower permissions.

If the call fails, check that the OAuth flow completed, that the redirect URL and port match the connector, and that the portal has not blocked the connection.

Rollback

  • Remove the server from Claude Code: claude mcp remove hubspot.
  • Revoke the connection in HubSpot under Settings > Integrations > Connected Apps, and delete the MCP connector under Development > MCP Connectors. Deleting the connector invalidates its tokens.

Technical Gotchas

  1. MCP access is user-scoped. Claude can do exactly what your HubSpot user can do. There is no separate permission layer to fall back on.
  2. No deletes is a feature, not a gap to work around. The server cannot archive records, so a conversational session cannot wipe a segment by accident. Destructive work goes through skills that export a CSV first and stop at a threshold.
  3. Two credentials, two purposes. The service key in HUBSPOT_ACCESS_TOKEN powers the scripts; the MCP connection powers conversational access. Rotating one does not affect the other, and a service key cannot authenticate to the MCP server.
  4. Counts and lists are different tools. For "how many", use query_crm_data. For "show me", use search_crm_objects. Paging 200 at a time to count a large segment is slow and burns context.
  5. Sensitive Data blocks activities. With Sensitive Data enabled on the account, calls, emails, meetings, notes, tasks, and conversations are unavailable through MCP.
  6. Not for headless runs. Interactive OAuth is unavailable in scheduled or CI runs. Scripts with a service key run anywhere; treat MCP as the interactive layer.
  7. @hubspot/mcp-server on npm is a different thing. That local package targets app developers and has not been released since mid-2025. Do not build CRM administration on it.
  8. HubSpot ships its own Claude Code plugins. HubSpot/hubspot-mcp-plugins bundles this same server for sales-rep and partner workflows. They complement this toolkit; they do not cover hygiene or administration.

Veelgestelde vragen

Wat doet de AI-skill Connect Hubspot Mcp?

Connect Claude to HubSpot's official remote MCP server for conversational CRM lookups, spot-checks, and small confirmed edits. Covers the MCP connector setup with OAuth and PKCE, what the server's tools can and cannot do, and when to use MCP versus the Agent CLI versus this repo's scripts.

Waarom Connect Hubspot Mcp gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Connect Hubspot Mcp bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Connect Hubspot Mcp in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/TomGranot/hubspot-admin-skills/tree/main/skills/connect-hubspot-mcp. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Connect Hubspot Mcp gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Connect Hubspot Mcp gebruiken?

Zoveel als je wilt. Je kunt Connect Hubspot Mcp gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Connect Hubspot Mcp gratis?

Ja. Deze skill is door TomGranot op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇