HubSpot RevOps MCP Server
A read-only MCP server that connects to HubSpot to audit CRM data, diagnose RevOps maturity, identify at-risk deals, and provide step-by-step guidance for fixing issues.
README
HubSpot RevOps MCP Server
A read-only Model Context Protocol server that connects to your HubSpot account via a Private App and gives an AI assistant (Claude) diagnostic and advisory capabilities over your CRM.
What it does
- Audits contacts, companies, deals, pipelines, and workflows for data quality issues
- Diagnoses RevOps maturity across 4 levels
- Identifies at-risk deals, lifecycle funnel bottlenecks, and critical workflow gaps
- Benchmarks your key sales metrics against industry standards
- Guides you step-by-step on how to fix issues manually in HubSpot
Read-only by design. The MCP server never writes to HubSpot. All changes are made by you in the HubSpot UI.
Setup
1. Create a HubSpot Private App
- In HubSpot: Settings → Integrations → Private Apps → Create a private app
- Give it a name (e.g., "RevOps MCP")
- Under Scopes, enable:
crm.objects.contacts.readcrm.objects.companies.readcrm.objects.deals.readcrm.schemas.contacts.readcrm.schemas.companies.readcrm.schemas.deals.readcrm.objects.owners.readautomation(requires Sales Hub Professional)
- Create the app and copy the Access Token (starts with
pat-na1-…)
2. Clone and install
git clone <your-repo-url>
cd server
npm install
3. Configure environment
cp .env.example .env.local
# Edit .env.local and paste your HubSpot Access Token
4. Run locally
npm run dev
# MCP endpoint: http://localhost:3000/api/mcp
Deploy to Vercel
Option A — Vercel CLI
npm install -g vercel
vercel
# Follow prompts; add HUBSPOT_ACCESS_TOKEN as an environment variable when asked
Option B — Vercel Dashboard
- Push this repo to GitHub
- Import the repo at vercel.com
- Set root directory to
server/ - Add environment variable:
HUBSPOT_ACCESS_TOKEN = pat-na1-… - Deploy
The vercel.json already sets maxDuration: 60 for the MCP route.
Connect to Claude
Once deployed, add the MCP server to Claude Desktop or Claude.ai:
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"hubspot": {
"url": "https://your-deployment.vercel.app/api/mcp"
}
}
}
Claude.ai: Settings → Integrations → Add MCP Server → paste your Vercel URL + /api/mcp
Available Tools (15)
| Tool | What it does |
|---|---|
get_account_overview |
Object counts, pipelines, users |
audit_properties |
Custom + default properties; flags missing critical fields |
audit_pipelines |
Pipeline stages, probabilities, issues |
get_pipeline_health |
Open deals with data quality flags |
get_at_risk_deals |
Deals past close date or with no recent activity |
get_lifecycle_distribution |
Contact funnel counts + conversion rates |
audit_workflows |
All active workflows + stale detection |
check_critical_workflows |
Gap analysis against 12 must-have workflows |
get_deal_metrics |
Win rate, avg deal size, avg cycle, velocity |
get_owner_performance |
Open + closed pipeline per sales rep |
diagnose_revops_maturity |
Level 1–4 maturity score + action plan |
get_how_to_guide |
Step-by-step how-to for any HubSpot task |
search_contacts |
Find contacts by name, email, or company |
get_owners |
List all HubSpot users |
get_common_pitfalls |
Most frequent HubSpot/RevOps mistakes + fixes |
Project structure
server/
├── app/
│ ├── api/
│ │ └── mcp/
│ │ └── route.ts # MCP JSON-RPC 2.0 endpoint
│ └── layout.tsx
├── lib/
│ ├── hubspot.ts # HubSpot API wrapper (read-only)
│ ├── knowledge.ts # Embedded RevOps knowledge base
│ └── tools.ts # Tool definitions + handlers
├── .env.example
├── next.config.ts
├── package.json
├── tsconfig.json
└── vercel.json
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.