SKILL·59566D

connect-hubspot-mcp

TomGranot
更新于 3 days ago
51
14
51
在 GitHub 上查看
文档aiapimcp

关于

This skill connects Claude Code to HubSpot's official MCP server, enabling natural-language queries to read and write CRM records like contacts, companies, and deals. It guides developers through OAuth setup, scope selection, and verification. Use this for conversational CRM interactions instead of writing individual API scripts for each task.

快速安装

Claude Code

推荐
主要方式
npx skills add TomGranot/hubspot-admin-skills -a claude-code
插件命令备选方式
/plugin add https://github.com/TomGranot/hubspot-admin-skills
Git 克隆备选方式
git clone https://github.com/TomGranot/hubspot-admin-skills.git ~/.claude/skills/connect-hubspot-mcp

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Connect Claude Code 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.

What the MCP Server Is (and Isn't)

HubSpot's remote MCP server (generally available since April 2026) is an OAuth-secured gateway at mcp.hubspot.com that exposes CRM operations as tools to MCP clients like Claude Code:

  • Read/write CRM objects: contacts, companies, deals, tickets, line items, products, engagements
  • Read content: campaigns, landing pages, website pages, blog posts, and content analytics
  • Create content: landing pages (added June 2026)

It is the right tool for interactive, judgment-heavy work: spot-checks, triage, one-off lookups, small targeted edits. It is the wrong tool for bulk operations: batch-archiving thousands of contacts, paginated sweeps, or anything that needs a CSV audit trail and an abort threshold. That is what this repo's scripts are for. The two share the same portal — use both.

Task shapeUse
"Show me 5 contacts the cleanup touched"MCP
"Why is this company in Tier 2?"MCP
"Review this week's bounce-flagged contacts"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)

Prerequisites

  • A HubSpot account and a user with permission to create user-level apps (or approval via your portal's MCP Auth Apps governance, if enabled)
  • Claude Code (or another MCP client)
  • This is separate from the private app token the scripts use — MCP connects via OAuth as you, with your HubSpot permissions

Execution Pattern

Stage 1: Plan

  1. Decide the scopes to grant. Start read-only (CRM object read scopes); add write scopes only if you want Claude making edits through MCP.
  2. Check with your admin whether the portal restricts app installs (App Install Governance) — MCP connections may need approval.

Stage 2: Execute — Connect

Option A: HubSpot Connector for Claude (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".

Option B: MCP client configuration. Add the remote server to Claude Code:

claude mcp add --transport http hubspot https://mcp.hubspot.com

Then authenticate when prompted — the OAuth flow creates a user-level app with the scopes you approve.

Option C: HubSpot CLI. With HubSpot CLI v8.2.0+, hs mcp setup walks through connecting an MCP client, and also offers HubSpot's local developer MCP server (aimed at app development rather than CRM administration).

Stage 3: After — Verify

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

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

If the call fails: check that the OAuth flow completed, the scopes include contact read, and your portal hasn't blocked the connection via app governance.

Rollback

  • Disconnect the MCP server from your client settings (claude mcp remove hubspot in Claude Code).
  • Revoke the connection in HubSpot: Settings > Integrations > Connected Apps — removing the user-level app invalidates its tokens.

Technical Gotchas

  1. MCP access is user-scoped. Claude can do exactly what your HubSpot user can do — no more, no less. Bulk-risky operations are naturally bounded by the scopes you grant; grant write scopes deliberately.
  2. Two credentials, two purposes. HUBSPOT_ACCESS_TOKEN (private app) powers the scripts; the MCP OAuth connection powers conversational access. Rotating one does not affect the other.
  3. Rate limits still apply. MCP calls consume the same API capacity as any integration. Don't use MCP for high-volume sweeps — that's script territory.
  4. Headless environments. MCP servers that require interactive OAuth may be unavailable in scheduled/CI runs. Scripts with a private app token work everywhere; treat MCP as the interactive layer.

GitHub 仓库

TomGranot/hubspot-admin-skills
路径: skills/connect-hubspot-mcp
0
hubspothubspot-apihubspot-crmhubspot-integration
FAQ

Frequently asked questions

What is the connect-hubspot-mcp skill?

connect-hubspot-mcp is a Claude Skill by TomGranot. Skills package instructions and resources that Claude loads on demand, so Claude can perform connect-hubspot-mcp-related tasks without extra prompting.

How do I install connect-hubspot-mcp?

Use the install commands on this page: add connect-hubspot-mcp to Claude Code as a plugin, or clone its repository into your skills directory, then restart Claude so it picks up the skill.

What category does connect-hubspot-mcp belong to?

connect-hubspot-mcp is in the Documentation category, tagged ai, api and mcp.

Is connect-hubspot-mcp free to use?

Yes. connect-hubspot-mcp is listed on AIMCP and free to install. It runs inside Claude, so no separate service account is required to use the skill itself.

相关推荐技能

railway-docs
文档

Railway Docs Skill可实时获取最新的Railway官方文档,确保回答的准确性。当开发者询问Railway功能特性、工作原理或分享docs.railway.com链接时,应优先使用此技能。它通过专门的LLM优化文档源提供最新信息,避免依赖过时记忆来回答技术问题。

查看技能
n8n-code-python
文档

该Skill为在n8n平台的Python代码节点中编写代码提供专家指导,特别适用于需要使用_input/_json/_node语法、Python标准库或了解n8n中Python限制的场景。它强调JavaScript应作为首选方案,仅当需要特定Python功能或对Python语法更熟悉时才使用Python。Skill提供了快速入门模板和关键注意事项,帮助开发者在n8n中高效编写Python代码。

查看技能
archon
文档

Archon Skill为开发者提供了基于RAG的语义搜索和项目任务管理功能,可通过REST API访问知识库。它支持文档搜索、网站爬取、文件上传和版本控制,适用于技术文档查询和项目管理场景。首次使用时需要配置Archon主机地址,建议在处理外部文档时优先使用该Skill。

查看技能
n8n-code-javascript
文档

这个Skill为n8n工作流中的JavaScript代码节点提供专业指导,涵盖数据处理、HTTP请求和日期操作等核心场景。它详细解释了如何正确使用n8n特有的`$input`/`$json`语法、`$helpers`工具以及DateTime对象,并包含关键的错误排查和模式选择建议。开发者通过该Skill能快速掌握Code节点的正确返回格式、数据访问方法和常见陷阱解决方案。

查看技能