Integrations for CRM & Ops: Hooking Zendesk and HubSpot to AI Agents
Streamline enterprise workflows by connecting Zendesk support tickets and HubSpot CRM contacts directly to your AI agents via MCP.
Integrations for CRM & Ops: HubSpot & Zendesk
Enterprise business operations require seamless customer database updates. Connecting CRMs like HubSpot and ticket systems like Zendesk directly to MCP gives customer support agents a powerful assistant that can update details on the fly, summarize long ticket threads, and cross-reference data between tools.
Prerequisites
- ▸A HubSpot account with a generated Private App Access Token.
- ▸A Zendesk administrator account to generate an API Token.
- ▸(Optional) Sandbox instances for both platforms to prevent accidental edits to real customer data during testing.
HubSpot Contact Update Tool Schema
When building or configuring the HubSpot MCP server, the tools exposed to the agent must have clearly defined input schemas so the agent knows exactly what data it can modify.
Here is an example of how the update_hubspot_contact tool is defined internally:
{
"name": "update_hubspot_contact",
"description": "Update details of a contact record inside HubSpot CRM.",
"inputSchema": {
"type": "object",
"properties": {
"email": { "type": "string" },
"properties": {
"type": "object",
"properties": {
"firstname": { "type": "string" },
"lastname": { "type": "string" },
"company": { "type": "string" }
}
}
},
"required": ["email", "properties"]
}
}Custom Workflows & Prompts
- ▸Triage Ticket Escalation: "Check the Zendesk queue. If a customer sends a ticket labeled critical-severity, search HubSpot using their email to find their account tier. If they are Enterprise, escalate the Zendesk ticket to priority status."
- ▸Draft Replies: "Read ticket #1042. Summarize the customer's frustration, pull their latest contract renewal date from HubSpot, and draft a polite, apologetic reply offering a 10% discount."
Best Practices
- ▸Human-in-the-Loop: For destructive actions or sending emails/replies via Zendesk, always configure the MCP server to return drafts rather than executing the send directly. A human should click "Send".
- ▸Rate Limits: Both HubSpot and Zendesk have strict API rate limits. Ensure your agent doesn't trigger mass updates that could exhaust your quota.
Troubleshooting
- ▸
401 Unauthorized: Your Zendesk token requires the email address to be appended in the formatemail@company.com/token. Ensure the auth header is constructed correctly. - ▸
Property Not Found: HubSpot custom properties have internal names (e.g.,annual_revenue) that differ from their display labels. Make sure the agent is using the exact internal property name when pushing updates.
Using with OpenAI Codex
To use this MCP server with the OpenAI Codex CLI, you can add it to your configuration using the codex mcp add command:
codex mcp add --name crm-hubspot-zendesk --command "npx @modelcontextprotocol/server-crm-hubspot-zendesk"(Note: Depending on the server, you may need to append arguments or use --env flags for environment variables as described in the configuration section above)
Related Guides
How to Set Up the Brave Search MCP Server for Web Research
Enable your AI agent to search the web using Brave Search API through MCP. Perfect for research, fact-checking, and gathering real-time information.
APIsHow to Use Stripe's Machine Payments Protocol (MPP) as an MCP Client
Learn how to configure your AI agent as an MCP client that can automatically pay per tool usage using Stripe's Machine Payments Protocol — enabling access to premium, monetized MCP servers.
APIsHow to Accept Stripe's Machine Payments Protocol (MPP) in Your MCP Server
Monetize your MCP server by accepting per-tool-call payments using Stripe's Machine Payments Protocol. This guide covers pricing schemas, payment verification, and webhook handling.