DripEmail/hubspot-intelligence-mcp
If you are the rightful owner of hubspot-intelligence-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The HubSpot Intelligence MCP Server connects Claude to HubSpot's CRM, enabling natural language queries to transform into comprehensive customer insights by aggregating data from HubSpot CRM.
HubSpot Intelligence MCP Server
A custom MCP (Model Context Protocol) server that connects Claude to HubSpot's CRM for executive customer intelligence. Transform natural language questions into comprehensive customer insights by aggregating data from HubSpot CRM.
🎯 What This Enables
Transform natural language questions into comprehensive customer intelligence:
Executive Queries → Real Data
- "Tell me about our relationship with TheFeed" → Complete customer overview with $6,195 in deals, 33 contacts, support history
- "What's our deal pipeline status?" → Live revenue data and sales stages
- "Show me support ticket trends" → Customer service metrics and issue patterns
- "Who are our top accounts by revenue?" → Ranked customer analysis with engagement data
The Magic: One Question = Multiple Systems
- HubSpot (this server) → CRM data, deals, contacts, support tickets, emails
- JIRA MCP → Development tickets, feature requests
- Zendesk MCP → Support interactions, satisfaction scores
- AI Synthesis → Executive-ready insights combining all sources
🚀 Quick Start
Quick Setup (Automated)
-
Set up OAuth app (one-time):
./setup-oauth.shThis deploys your HubSpot OAuth app and extracts credentials automatically.
-
Complete the setup:
./setup-complete.shThis will:
- Install dependencies
- Get OAuth tokens via browser
- Build the MCP server
- Configure Claude Desktop
-
Restart Claude Desktop and test with: "Find information about our top customers"
For Developers
Same automated setup as above:
-
Clone the repository:
git clone https://github.com/yourusername/hubspot-intelligence-mcp.git cd hubspot-intelligence-mcp -
Set up OAuth app (one-time):
./setup-oauth.sh -
Complete the setup:
./setup-complete.sh -
Restart Claude Desktop and test
🔧 Customer Intelligence Tools
Core Tools (All Live & Tested)
search_customers- Find companies and contacts by name or keywordget_customer_overview- Complete customer relationship analysisget_customer_deals- Sales pipeline and revenue analysisget_customer_tickets- Support ticket history and trendsget_customer_contacts- Contact directory and org chartget_top_accounts- Revenue-ranked customer intelligence
Data Coverage
- Companies: Name, domain, industry, location, employee count, revenue
- Contacts: Names, emails, phones, job titles, lifecycle stages
- Deals: Values, stages, close dates, pipelines, descriptions
- Tickets: Subjects, priorities, categories, resolution status
- Emails: Communications history, directions, timestamps
🏗️ Technical Architecture
Claude Desktop ←→ MCP Protocol ←→ HubSpot Intelligence Server ←→ OAuth 2.0 ←→ HubSpot APIs
↓
┌─ Companies API
├─ Contacts API
├─ Deals API
├─ Tickets API
└─ Associations API
Key Components
- MCP Protocol Handler - Implements MCP server specification with 6 customer intelligence tools
- HubSpot API Client - Manages OAuth 2.0 tokens with auto-refresh and rate limiting
- Intelligence Service - Business logic for customer data aggregation and analysis
- Data Aggregation - Combines data from multiple HubSpot objects for executive insights
📦 Distribution Options
For Everyone
- Fully automated setup (
./setup-complete.sh) - Zero manual configuration required
- Cross-platform support (macOS, Linux, Windows)
For Developers
- GitHub repository with comprehensive documentation
- npm package distribution ready
- Docker containerization for enterprise deployment
For Enterprise
- Docker Compose orchestration
- Internal package registry support
- Security and compliance considerations
🔐 Security & OAuth Setup
Included OAuth App
This repository includes a complete HubSpot OAuth app in the hubspot-oauth-app/ directory that's pre-configured with all required scopes. No need to create your own app!
Quick Deploy the OAuth App:
cd hubspot-oauth-app
./deploy.sh
For detailed deployment instructions, see .
Required Scopes (Pre-configured)
oauth- OAuth authenticationcrm.objects.companies.read- Company datacrm.objects.contacts.read- Contact informationcrm.objects.deals.read- Sales pipeline datatickets- Support ticket accesssales-email-read- Email communications (critical for complete customer intelligence)conversations.read- Chat/conversation historycrm.objects.users.read- User informationcrm.objects.owners.read- Owner/assignee data
OAuth App Features
- ✅ Marketplace ready - Configured for HubSpot App Marketplace distribution
- ✅ All scopes included - No "permission denied" errors on customer data
- ✅ Professional setup - Real support contacts and documentation URLs
- ✅ One-click deploy - Simple script-based deployment
Token Management
- Environment-based configuration - No hardcoded credentials in source code
- Interactive OAuth flow - Secure browser-based token acquisition
- Automatic token refresh using refresh tokens
- Secure token storage via environment variables
- OAuth 2.0 best practices implementation
- Format validation - Helpful error messages for credential setup
📊 Live Test Results
Verified Working Queries
✅ "search_customers thefeed"
→ Found TheFeed.com (Boulder, CO) + 4 similar companies
→ 33 contacts including Matt Johnson (CTO), Riley (Dev Director)
✅ "get_customer_overview TheFeed.com"
→ $6,195 in active deals, 33 contacts, 1 deal pipeline
→ Industry: RETAIL, 50 employees, $1M annual revenue
→ Last activity: Sept 10, 2025
✅ All 6 MCP tools responding with real HubSpot data
📋 Files Overview
src/- TypeScript source code for the MCP serverhubspot-oauth-app/- Complete HubSpot OAuth app with deployment scriptsapp-hsmeta.json- OAuth app configuration with all required scopeshsproject.json- HubSpot project configurationdeploy.sh- One-click OAuth app deployment scriptDEPLOY.md- OAuth app deployment documentation
setup-for-ceo.sh- One-click setup script for executivesget-tokens.js- Secure OAuth token acquisition script (environment-based)claude-desktop-config.example.json- Claude Desktop configuration template.env.example- Environment variables templateDEPLOYMENT.md- Comprehensive deployment guide
🆘 Troubleshooting
Common Issues
- "Node.js not found" → Install Node.js 18+ from nodejs.org
- "Invalid access token" → Check tokens in .env are correct and haven't expired
- "MCP server not connecting" → Restart Claude Desktop and verify file paths
Support
For technical issues, see DEPLOYMENT.md or contact your development team.
🎯 Perfect for AI Jam 2025
Your HubSpot Intelligence MCP server is fully operational and ready for executive customer intelligence demos:
- ✅ Authenticates with HubSpot via OAuth 2.0
- ✅ Queries all major CRM objects (companies, contacts, deals, tickets, emails)
- ✅ Aggregates data into executive-ready insights
- ✅ Integrates with Claude Desktop for natural language queries
- ✅ Works alongside other MCP servers for complete customer intelligence
Perfect for demonstrating "One question → Multiple business systems → Executive insights"
Built for AI Jam 2025 - Executive Customer Intelligence Platform