npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hubspot-mcp-tools

v2.0.0

Published

A Model Context Protocol (MCP) server providing comprehensive HubSpot CRM integration with 87+ tools covering Contacts, Companies, Deals, Tickets, Notes, Engagements (Calls, Emails, Meetings, Tasks), Workflows, Associations, Owners, Pipelines, and Propert

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