How to Use the HubSpot Analytics MCP in Claude Code
Pipe live HubSpot Analytics straight into your terminal. Perfect for cron jobs, CI/CD checks, and shell scripts with Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect HubSpot Analytics MCP to Claude Code
Create your Vinkius account to connect HubSpot Analytics to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate Health Checks in Your CI Pipeline
Use Claude Code to gate your deployments based on real marketing data. Add a step to your CI/CD script that calls `hs_web_analytics` to check the website's bounce rate over the last 24 hours. If it spikes, you can fail the build automatically. This turns HubSpot from a marketing dashboard into a real-time monitoring tool for your ops team. It’s a simple command-line check that prevents bad deploys from hurting your lead flow.
Schedule Reports with a Simple Cron Job
Get key HubSpot metrics without ever opening your browser. Set up a cron job that uses Claude Code to run `hs_email_analytics` on your latest campaign, formats the output, and emails it to your team every morning. This is about putting data delivery on autopilot. You write one line in your crontab, and you get the numbers you need, when you need them. No more manual report pulling.
Pull Raw HubSpot Data for Other Tools
This MCP server makes it easy to use HubSpot data with your favorite command-line tools like `jq`, `grep`, or `awk`. Run a command to get a raw data dump of a contact's history using `hs_list_events` and pipe it directly into another process. For example, `claude exec -- "get events for contact 123" | jq '.[] | .eventName'`. This lets you quickly filter, analyze, or transform your HubSpot data for any custom scripting task, right in your terminal.
Set up HubSpot Analytics MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seehubspot-analytics-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest HubSpot Analytics transactions." It will automatically discover and invoke the available HubSpot Analytics tools.
claude mcp add --transport http hubspot-analytics-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about HubSpot Analytics MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the HubSpot Analytics MCP today
We host it, we monitor it, we maintain it. You just paste one token.