HubSpot MCP Server

HubSpot MCP Server

Integrates with HubSpot CRM APIs via the Model Context Protocol, enabling management of contacts, companies, deals, tickets, notes, engagements, workflows, and more through natural language.

Category
访问服务器

README

HubSpot MCP Server

A Model Context Protocol (MCP) server that provides seamless integration with HubSpot's CRM APIs. This server enables Claude Desktop and other MCP clients to manage HubSpot resources and execute CRM operations directly through natural language.

87+ comprehensive tools covering the complete HubSpot CRM workflow including Contacts, Companies, Deals, Tickets, Notes, Engagements (Calls, Emails, Meetings, Tasks), Workflows, Associations, Owners, Pipelines, and Properties management.

Usage

Use with any MCP-compatible client like Claude/Cursor/VS Code. Add the following configuration to your MCP settings:

{
  "mcpServers": {
    "hubspot": {
      "command": "npx",
      "args": ["-y", "hubspot-mcp-tools"],
      "env": {
        "HUBSPOT_ACCESS_TOKEN": "your_access_token_here"
      }
    }
  }
}

Replace your_access_token_here with your HubSpot private app access token.

Available Tools

Contacts API (9 tools)

  • hubspot_create_contact - Create a new contact in HubSpot
  • hubspot_get_contact - Get a contact by ID from HubSpot
  • hubspot_list_contacts - List contacts with pagination
  • hubspot_search_contacts - Search contacts by email, name, or other properties with advanced filtering
  • hubspot_update_contact - Update contact properties
  • hubspot_delete_contact - Archive (soft delete) a contact
  • hubspot_batch_create_contacts - Create multiple contacts at once (max 100)
  • hubspot_batch_update_contacts - Update multiple contacts at once (max 100)

Companies API (9 tools)

  • hubspot_create_company - Create a new company in HubSpot
  • hubspot_get_company - Get a company by ID from HubSpot
  • hubspot_list_companies - List companies with pagination
  • hubspot_search_companies - Search companies by name, domain, or other properties with advanced filtering
  • hubspot_update_company - Update company properties
  • hubspot_delete_company - Archive (soft delete) a company
  • hubspot_batch_create_companies - Create multiple companies at once (max 100)
  • hubspot_batch_update_companies - Update multiple companies at once (max 100)

Deals API (9 tools)

  • hubspot_create_deal - Create a new deal in HubSpot (use hubspot_get_pipelines for available pipelines/stages)
  • hubspot_get_deal - Get a deal by ID from HubSpot
  • hubspot_list_deals - List deals with pagination
  • hubspot_search_deals - Search deals by name, stage, amount, or other properties with advanced filtering
  • hubspot_update_deal - Update deal properties
  • hubspot_delete_deal - Archive (soft delete) a deal
  • hubspot_batch_create_deals - Create multiple deals at once (max 100)
  • hubspot_batch_update_deals - Update multiple deals at once (max 100)

Tickets API (9 tools)

  • hubspot_create_ticket - Create a new ticket in HubSpot (use hubspot_get_pipelines for available pipelines/stages)
  • hubspot_get_ticket - Get a ticket by ID from HubSpot
  • hubspot_list_tickets - List tickets with pagination
  • hubspot_search_tickets - Search tickets by subject, status, or other properties with advanced filtering
  • hubspot_update_ticket - Update ticket properties
  • hubspot_delete_ticket - Archive (soft delete) a ticket
  • hubspot_batch_create_tickets - Create multiple tickets at once (max 100)
  • hubspot_batch_update_tickets - Update multiple tickets at once (max 100)

Notes API (7 tools)

  • hubspot_create_note - Create a note and optionally associate with a HubSpot object
  • hubspot_get_note - Get a specific note by its ID
  • hubspot_get_object_notes - Get notes associated with a HubSpot object
  • hubspot_list_notes - List all notes with pagination
  • hubspot_update_note - Update note content or properties
  • hubspot_delete_note - Archive (soft delete) a note
  • hubspot_search_notes - Search notes by content or properties

Calls API (6 tools)

  • hubspot_create_call - Log a call engagement with direction, status, duration, and optional CRM association
  • hubspot_get_call - Get a specific call by its ID
  • hubspot_list_calls - List all calls with pagination
  • hubspot_update_call - Update call properties
  • hubspot_delete_call - Archive (soft delete) a call
  • hubspot_search_calls - Search calls by properties or full-text query

Emails API (6 tools)

  • hubspot_create_email - Log an email engagement (sent, received, forwarded) with optional CRM association
  • hubspot_get_email_engagement - Get a specific email engagement by its ID
  • hubspot_list_email_engagements - List all email engagements with pagination
  • hubspot_update_email_engagement - Update email engagement properties
  • hubspot_delete_email_engagement - Archive (soft delete) an email engagement
  • hubspot_search_email_engagements - Search email engagements

Meetings API (6 tools)

  • hubspot_create_meeting - Log a meeting with title, agenda, start/end times, outcome, and optional CRM association
  • hubspot_get_meeting - Get a specific meeting by its ID
  • hubspot_list_meetings - List all meetings with pagination
  • hubspot_update_meeting - Update meeting properties
  • hubspot_delete_meeting - Archive (soft delete) a meeting
  • hubspot_search_meetings - Search meetings by properties or full-text query

Tasks API (6 tools)

  • hubspot_create_task - Create a task with subject, priority, type, due date, and optional CRM association
  • hubspot_get_task - Get a specific task by its ID
  • hubspot_list_tasks - List all tasks with pagination
  • hubspot_update_task - Update task properties or mark as completed
  • hubspot_delete_task - Archive (soft delete) a task
  • hubspot_search_tasks - Search tasks by status, priority, or other properties

Workflows API (5 tools)

  • hubspot_list_workflows - List all automation workflows in HubSpot
  • hubspot_get_workflow - Get details of a specific workflow by ID
  • hubspot_enroll_contact_in_workflow - Enroll a contact (by email) into a workflow
  • hubspot_unenroll_contact_from_workflow - Unenroll a contact from a workflow
  • hubspot_get_workflow_enrollments - Get contacts currently enrolled in a workflow

Associations API (5 tools)

  • hubspot_get_association_types - Get all available association types between two object types
  • hubspot_create_association - Create an association between two HubSpot objects
  • hubspot_get_associations - Get all associations for a HubSpot object
  • hubspot_delete_association - Remove an association between two objects
  • hubspot_batch_create_associations - Create multiple associations at once

Owners API (2 tools)

  • hubspot_list_owners - List all HubSpot owners (users) in the account
  • hubspot_get_owner - Get detailed information about a specific owner

Pipelines API (4 tools)

  • hubspot_get_pipelines - Get all pipelines for deals or tickets
  • hubspot_get_pipeline - Get detailed pipeline information including stages
  • hubspot_get_pipeline_stages - Get all stages for a specific pipeline
  • hubspot_get_pipeline_stage - Get detailed information about a specific stage

Properties API (3 tools)

  • hubspot_get_properties - Get all available properties for a HubSpot object type
  • hubspot_get_property - Get detailed property information including options and validation
  • hubspot_get_property_groups - Get all property groups for a HubSpot object type

Development

Local Setup

  1. Prerequisite:

    • Node.js v18+
    • pnpm v9+
  2. Clone the repository:

git clone https://github.com/adeel0x01/hubspot-mcp-tools.git
cd hubspot-mcp-tools
  1. Install dependencies:
pnpm install
  1. Build the project:
pnpm run build

Testing

pnpm run inspector  # Opens MCP Inspector

Error Handling

The server provides detailed error messages for common issues:

  • Missing API Key: Clear instructions on how to set the HUBSPOT_ACCESS_TOKEN
  • HubSpot API Errors: Includes status code, message, and request details for debugging
  • Validation Errors: Helpful messages for invalid parameters or missing required fields

All errors are logged to stderr (safe for stdio transport) and returned to the client in a structured format.

Important Notes

Security Considerations

  • Never commit your .env file or expose your HubSpot access token
  • The access token is passed via environment variables for security
  • Use HubSpot private apps with minimal required scopes

HubSpot Access Token

To use this server, you need a HubSpot private app access token with the following scopes:

Required Scopes:

  • crm.objects.contacts.read and crm.objects.contacts.write
  • crm.objects.companies.read and crm.objects.companies.write
  • crm.objects.deals.read and crm.objects.deals.write
  • tickets (read and write)
  • crm.objects.owners.read
  • crm.schemas.contacts.read
  • crm.schemas.companies.read
  • crm.schemas.deals.read
  • crm.objects.notes.read and crm.objects.notes.write
  • crm.objects.calls.read and crm.objects.calls.write
  • crm.objects.emails.read and crm.objects.emails.write
  • crm.objects.meetings.read and crm.objects.meetings.write
  • crm.objects.tasks.read and crm.objects.tasks.write
  • automation (read and write, for workflow management)

Create a private app:

  1. Go to HubSpot Settings > Integrations > Private Apps
  2. Click "Create a private app"
  3. Add the required scopes listed above
  4. Generate the access token
  5. Copy the token and use it as HUBSPOT_ACCESS_TOKEN

Private Apps Documentation: https://developers.hubspot.com/docs/api/private-apps

Rate Limits

This server respects HubSpot's API rate limits:

  • Professional/Enterprise: 100 requests per 10 seconds
  • Batch operations can process up to 100 records at once

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选