A Model Context Protocol (MCP) server implementation for HubSpot, providing a standardized interface for interacting with HubSpot's API.
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.
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."
The server runs on stdio and can be used as a command-line tool:
hubspot-mcp-serverTo 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"
}
}
}
}npm install @NaorAIdeas/hubspot-mcp-server- Node.js (version 14 or higher) - Download and install from the official website
- A HubSpot API key (Personal Access Token)
To get started with the HubSpot MCP Server, you'll need to obtain an API key. Here's a detailed guide:
-
Log in to your HubSpot account
- Visit HubSpot's website and sign in to your account
-
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
-
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
-
Configure Scopes
- Select the following scopes (minimum required):
crm.objects.contacts.readcrm.objects.contacts.writecrm.objects.companies.readcrm.objects.companies.writecrm.objects.deals.readcrm.objects.deals.writecrm.objects.custom.readcrm.objects.custom.writecrm.associations.readcrm.associations.writetimeline.readtimeline.write
- Select the following scopes (minimum required):
-
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
- "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"
- "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"
- "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"
- "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"
- "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"
- "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"
Create a .env file in your project root with the following content:
HUBSPOT_API_KEY=your_hubspot_api_key_here
npm run buildTo run the project in watch mode:
npm run watch- @hubspot/api-client: HubSpot API client
- @modelcontextprotocol/sdk: Model Context Protocol SDK
- dotenv: Environment variable management
- zod: Schema validation
This project is licensed under the MIT License.
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.
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!
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!