Sponsored by Deepsite.site

Hubspot Assistant

Created By
NaorAIdeas8 months ago
This package implements an MCP server that acts as a bridge between applications and HubSpot's API. It provides a standardized way to interact with HubSpot's services through the Model Context Protocol.
Content

HubSpot MCP Server

A Model Context Protocol (MCP) server implementation for HubSpot, providing a standardized interface for interacting with HubSpot's API.

Overview

This package implements an MCP server that acts as a bridge between applications and HubSpot's API. It provides a standardized way to interact with HubSpot's services through the Model Context Protocol.

Example Usage

Ever wondered how AI can transform your HubSpot workflow? Watch how these real-world scenarios come to life with just a simple conversation:

💡 Sales & Project Management

"I just had a great meeting with Sarah from TechCorp about their cloud migration project. Create a new deal for $250K, associate it with their company record, and schedule a follow-up call with their CTO next week to discuss the implementation timeline."

🚀 Client Onboarding

"Our biggest client, Enterprise Solutions, is expanding their team. Create a new contact for their new CTO, link them to the 'Digital Transformation' project, and set up a series of onboarding meetings with our technical team over the next two weeks."

Project Handover

"The 'AI Integration' project is moving to the final stage. Update the deal status, create a new support ticket for the handover process, and schedule a training session with the client's team for next month, making sure to include all relevant contacts from their IT department."

Usage

Running as a Command Line Tool

The server runs on stdio and can be used as a command-line tool:

hubspot-mcp-server

Integration with Claude Desktop

To use this server with Claude Desktop, add the following configuration to your claude_desktop_config.json:

{
  "mcpServers": {
    "hubspot": {
      "command": "npx",
      "args": [
        "-y",
        "@naoraideas/hubspot-mcp-server"
      ],
      "env": {
        "HUBSPOT_API_KEY": "your_hubspot_api_key_here"
      }
    }
  }
}

Installation

npm install @NaorAIdeas/hubspot-mcp-server

Prerequisites

  • Node.js (version 14 or higher)
  • A HubSpot API key (Personal Access Token)

Configuration

Obtaining HubSpot API Key

To get started with the HubSpot MCP Server, you'll need to obtain an API key. Here's a detailed guide:

  1. Log in to your HubSpot account

  2. Navigate to Private Apps

    • Go to Settings > Account Setup > Integrations > Private Apps
    • If you don't see this option, ensure you have the necessary permissions
  3. Create a new Private App

    • Click "Create a private app"
    • Give your app a descriptive name (e.g., "HubSpot MCP Server")
    • Add a description of what the app will be used for
  4. Configure Scopes

    • Select the following scopes (minimum required):
      • crm.objects.contacts.read
      • crm.objects.contacts.write
      • crm.objects.companies.read
      • crm.objects.companies.write
      • crm.objects.deals.read
      • crm.objects.deals.write
      • crm.objects.custom.read
      • crm.objects.custom.write
      • crm.associations.read
      • crm.associations.write
      • timeline.read
      • timeline.write
  5. Save and Get Your API Key

    • Click "Create app"
    • Copy the generated access token immediately
    • Store it securely as it will only be shown once

Available Tools

Contacts Management

  • "I got a call from (415) 555-0123, who is this?"
  • "Update John Smith's role to VP of Sales at Acme Corp"
  • "Find me the email of Emma Wilson from TechStart Inc"

Companies Management

  • "Show me all companies in the San Francisco area"
  • "Create a new company record for 'CloudTech Solutions' in the IT sector"
  • "Update the annual revenue for Microsoft to $200B"

Deals Management

  • "What's the status of the 'Enterprise Cloud Migration' deal?"
  • "Create a new deal for 'AI Integration Project' worth $150K"
  • "Move the 'Digital Transformation' deal to the 'Contract Sent' stage"

Custom Objects

  • "Show me all active projects in the 'Product Development' pipeline"
  • "Create a new support ticket for 'Server Downtime' issue"
  • "Update the priority of project 'Mobile App Launch' to High"

Associations

  • "Which contacts are associated with the 'Enterprise Solutions' company?"
  • "Link Sarah Johnson to the 'Cloud Migration' project"
  • "Remove the association between Mark Davis and the 'Legacy System' project"

Timeline Events

  • "Show me all meetings scheduled with Google this month"
  • "Create a new follow-up call with Amazon for next Tuesday"
  • "Update the description of yesterday's product demo with Microsoft"

Development

Environment Setup

Create a .env file in your project root with the following content:

HUBSPOT_API_KEY=your_hubspot_api_key_here

Building the Project

npm run build

Development Mode

To run the project in watch mode:

npm run watch

Dependencies

  • @hubspot/api-client: HubSpot API client
  • @modelcontextprotocol/sdk: Model Context Protocol SDK
  • dotenv: Environment variable management
  • zod: Schema validation

License

This project is licensed under the MIT License.

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Author

Naor Hemed
AI Integration Expert & Software Engineer
Passionate about building intelligent systems that transform business workflows.
Let's connect and explore how AI can revolutionize your HubSpot experience!

GitHub | LinkedIn | Email

Contributing

This project was built with ❤️ and a passion for making HubSpot more accessible through AI.
Feel free to reach out if you'd like to contribute, have questions, or just want to chat about AI powered workflows!

Server Config

{
  "mcpServers": {
    "hubspot": {
      "command": "npx",
      "args": [
        "-y",
        "@naoraideas/hubspot-mcp-server"
      ],
      "env": {
        "HUBSPOT_API_KEY": "your_hubspot_api_key_here"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Amap Maps高德地图官方 MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Serper MCP ServerA Serper MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop
Tavily Mcp
Playwright McpPlaywright MCP server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.