Provides comprehensive CRM integration with tools for managing contacts, companies, and deals including full CRUD operations, search capabilities, relationship management, and access to live CRM data, pipelines, and property schemas.
HubSpot MCP Server
š A complete Model Context Protocol (MCP) server for HubSpot CRM integration, implementing all 21 MCP protocol endpoints with multi-transport support (HTTP, Streamable HTTP, STDIO) and flexible port configuration.
⨠Features
Complete MCP Protocol: All 21 endpoints (initialize, tools, resources, prompts, notifications, logging)
Multi-Transport Support: HTTP JSON-RPC, Streamable HTTP (SSE), STDIO for process-based communication
Comprehensive HubSpot Integration: 15+ tools for contacts, companies, deals with full CRUD operations
Session Management: UUID-based sessions with timeout and rate limiting
Production Ready: Health checks, metrics, structured logging, graceful shutdown
Security Hardened: OWASP compliance, non-root execution, security headers
Multi-Architecture: Docker images for AMD64 and ARM64 platforms
Flexible Port Configuration: Configurable ports via build args and runtime environment variables
Advanced Session Management: Cookie and header-based session persistence for HTTP requests
š¦ Available Images
Registry | Image | Command |
GitHub Container Registry |
|
|
Docker Hub |
|
|
š Quick Start
Prerequisites
Docker installed on your system
HubSpot Private App Access Token (Setup Guide)
1. Run Container
GitHub Container Registry (Recommended):
Docker Hub:
Custom Port Configuration:
2. Verify Installation
š§ Transport Protocols
HTTP Transport (Default)
Standard JSON-RPC 2.0 over HTTP:
Streamable HTTP Transport
Server-sent events for real-time updates:
STDIO Transport
Process-based communication:
āļø Configuration
Environment Variables
Docker Compose
Basic Configuration:
Custom Port Configuration:
š§ Session Management
The server provides advanced session management for HTTP requests to maintain state across multiple API calls:
Session Creation
Sessions are automatically created on the first request and tracked via:
X-Session-ID Header: Primary method for API clients
mcp-session Cookie: Browser-friendly session persistence
Request Body Parameter: Alternative session identification
Session Persistence Examples
Using Headers (Recommended for API clients):
Using Authorization Bearer (Alternative method):
Using Cookies (Browser-compatible):
Session Features
Automatic Creation: Sessions created transparently on first request
Multiple Persistence Methods: Headers, cookies, and body parameters
aiohttp.ClientSession Compatible: Optimized for Python HTTP clients
Authorization Bearer Support: Alternative session identification method
Configurable Timeout: Sessions expire after
SESSION_TIMEOUT
secondsReconnection Support: SSE transport allows session reconnection
Rate Limiting: Per-session rate limits for tools and resources
Security: SameSite protection, configurable secure flag for HTTPS
š HubSpot Setup
Step 1: Create Private App
Go to HubSpot Settings ā Integrations ā Private Apps
Click "Create a private app"
Configure required scopes:
Scope | Purpose |
| Read contact information |
| Create and update contacts |
| Read company information |
| Create and update companies |
| Read deal information |
| Create and update deals |
| Read owner/sales rep information |
Step 2: Generate Token
Go to Auth tab
Copy the Access Token (starts with
pat-...
)ā ļø Keep this token secure!
Step 3: Test Token
š ļø Available Tools
The server implements 15+ HubSpot CRM tools through the MCP protocol:
Contact Management
Tool | Description | Parameters |
| Retrieve contacts with pagination |
,
,
|
| Create new contact |
(required), other properties |
| Update existing contact |
,
|
| Search contacts by query |
,
,
|
| Get contact by email |
|
Company Management
Tool | Description | Parameters |
| Retrieve companies with pagination |
,
,
|
| Create new company |
(required), other properties |
| Update existing company |
,
|
| Search companies by query |
,
,
|
Deal Management
Tool | Description | Parameters |
| Retrieve deals with pagination |
,
,
|
| Create new deal |
(required), other properties |
| Update existing deal |
,
|
| Search deals by query |
,
,
|
Relationship & Activity Tools
Tool | Description | Parameters |
| Get object relationships |
,
,
|
| Get activity timeline |
,
|
š Resources
8+ Live Resources Available:
hubspot://contacts
- Live contacts databasehubspot://companies
- Live companies databasehubspot://deals
- Live deals pipelinehubspot://properties/contacts
- Contact property schemahubspot://properties/companies
- Company property schemahubspot://properties/deals
- Deal property schemahubspot://pipelines/deals
- Deal pipeline configurationhubspot://owners
- Sales rep/owner information
š” Prompts
5+ Ready-to-Use Prompts:
analyze_pipeline
- Deal pipeline analysis and optimizationcontact_research
- Deep contact and company researchlead_scoring
- Lead qualification and scoringemail_templates
- HubSpot email template generationmeeting_prep
- Pre-meeting research and preparation
š Monitoring & Health
Health Endpoints
Endpoint | Purpose | Response |
| Basic health check | Health status and uptime |
| Readiness probe | Application readiness |
| Prometheus metrics | Performance metrics |
| Detailed status | Comprehensive server status |
Example Usage
š Security Features
Non-root execution - Container runs as unprivileged user
Security hardening - Read-only filesystem, dropped capabilities
OWASP headers - Complete security header implementation
Session management - UUID-based sessions with timeouts
Rate limiting - Configurable per-session rate limits
Input validation - Comprehensive parameter validation
š ļø Development
Local Development
Command Line Options
š Performance
Resource Requirements
Environment | CPU | Memory | Concurrent Sessions |
Minimum | 0.25 cores | 256MB | 10 |
Recommended | 0.5 cores | 512MB | 50 |
High Load | 1+ cores | 1GB+ | 100+ |
Monitoring
š Building Multi-Architecture Images
š¤ Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
Quick Start
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-feature
Make your changes and add tests
Ensure all tests pass:
npm test
Submit a pull request
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Related Resources
Model Context Protocol - Official MCP specification
HubSpot API Documentation - HubSpot CRM API
MCP Protocol Specification - Technical MCP details
š Latest Updates - Version 1.0.0
š Production Release Features
ā Complete Multi-Transport Support: HTTP, Streamable HTTP (SSE), and STDIO protocols
ā Flexible Port Configuration: Build-time and runtime port customization
ā Enhanced Session Management: UUID-based sessions with comprehensive rate limiting
ā Multi-Architecture Images: Native support for AMD64 and ARM64 platforms
ā Production Hardening: OWASP security compliance and comprehensive monitoring
ā Streamlined Codebase: Removed development components for production focus
š Registry Availability
GitHub Container Registry:
ghcr.io/sanketskasar/hubspot-mcp-server:latest
Docker Hub:
sanketskasar/hubspot-mcp-server:latest
Multi-Platform: Both registries support AMD64 and ARM64 architectures
š§ Key Capabilities
21 MCP Protocol Endpoints: Complete compliance with MCP Protocol Version 2024-11-05
aiohttp.ClientSession Support: Optimized session management for langchain_mcp_adapters
15+ HubSpot Tools: Full CRUD operations for contacts, companies, and deals
8+ Live Resources: Real-time access to HubSpot CRM data and schemas
5+ Ready-to-Use Prompts: Business intelligence and automation templates
Advanced Monitoring: Health, readiness, metrics, and status endpoints
Enterprise Security: Non-root execution, security headers, rate limiting
šÆ Built with ā¤ļø for the MCP ecosystem
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables comprehensive HubSpot CRM integration through the Model Context Protocol with 15+ tools for managing contacts, companies, and deals. Supports multiple transport protocols (HTTP, SSE, STDIO) with session management and real-time access to CRM data.
- ⨠Features
- š¦ Available Images
- š Quick Start
- š§ Transport Protocols
- āļø Configuration
- š§ Session Management
- š HubSpot Setup
- š ļø Available Tools
- š Resources
- š” Prompts
- š Monitoring & Health
- š Security Features
- š ļø Development
- š Performance
- š Building Multi-Architecture Images
- š¤ Contributing
- š License
- š Related Resources
- š Latest Updates - Version 1.0.0
Related MCP Servers
- AsecurityAlicenseAqualityEnables AI models to interact with HubSpot CRM data and operations through a standardized interface, supporting contact and company management.Last updated -104MIT License
- -securityAlicense-qualityA server that enables AI models to interact with HubSpot CRM data and operations through a standardized interface, supporting contact and company management with multi-user token-based authentication.Last updated -MIT License
- AsecurityAlicenseAqualityA Model Context Protocol implementation for the HubSpot API that provides a standardized interface for accessing and managing CRM data, including companies, contacts, deals, and other objects with comprehensive CRUD operations and association management.Last updated -4822MIT License
- -securityAlicense-qualityA Model Context Protocol server that provides tools for interacting with HubSpot CRM, allowing users to create, update, delete, and fetch summary records stored as Note engagements in HubSpot.