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.
Transform natural language questions into comprehensive customer intelligence:
- "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
- 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
-
Set up OAuth app (one-time):
./setup-oauth.sh
This deploys your HubSpot OAuth app and extracts credentials automatically.
-
Complete the setup:
./setup-complete.sh
This 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"
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
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
- 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
Claude Desktop ββ MCP Protocol ββ HubSpot Intelligence Server ββ OAuth 2.0 ββ HubSpot APIs
β
ββ Companies API
ββ Contacts API
ββ Deals API
ββ Tickets API
ββ Associations API
- 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
- Fully automated setup (
./setup-complete.sh) - Zero manual configuration required
- Cross-platform support (macOS, Linux, Windows)
- GitHub repository with comprehensive documentation
- npm package distribution ready
- Docker containerization for enterprise deployment
- Docker Compose orchestration
- Internal package registry support
- Security and compliance considerations
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.shFor detailed deployment instructions, see hubspot-oauth-app/DEPLOY.md.
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
- β 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
- 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
β
"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
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
- "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
For technical issues, see DEPLOYMENT.md or contact your development team.
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