Zendesk MCP Server
A Model Context Protocol server that enables AI assistants like Claude to interact with Zendesk Support through natural language for searching, creating, updating, and managing tickets.
README
Zendesk MCP Server
A Model Context Protocol (MCP) server that provides AI assistants like Claude with seamless integration to Zendesk Support. Enables natural language interactions with Zendesk tickets, allowing you to search, create, update, and manage support tickets through conversational AI.
⨠Features
- š« Complete Ticket Management: Create, read, update, and search Zendesk tickets
- š¬ Comments & Notes: Add public comments and private internal notes
- š Advanced Search: Search tickets using Zendesk's powerful query syntax
- š Incident Management: Retrieve and manage linked incident tickets
- š·ļø Tag Management: Add and manage ticket tags and metadata
- š¢ Brand Support: List brands and search/analyze tickets by brand
- š Ticket Analysis: Analyze tickets for root cause analysis with full comment history
- š Trend Analysis: Sample tickets per day over time for pattern detection
- šļø Field Discovery: List all ticket fields with IDs, types, and dropdown options
- š QA Integration: Access Zendesk QA (formerly Klaus) reviews, CSAT, quizzes, and scorecards
- ā±ļø Ticket Metrics: Pull response times, resolution times, and reopen counts per ticket
- šµļø Ticket Audits: Full field-level change history for any ticket
- š¦ Incremental Exports: Cursor-based bulk ticket exports for large dataset pulls
- š¤ AI Agent Export: Download bot conversation exports from Zendesk AI Agents
- š· Workforce Management: Access WFM activities, reports, shifts, and time-off data
- š Secure Authentication: Uses Zendesk API tokens for secure access
- š Easy Installation: Available via npm, npx, or manual setup
š Quick Start
Option 1: NPM Installation (Recommended)
npm install -g zd-mcp-server
Option 2: Use with npx (No Installation)
npx zd-mcp-server
Option 3: Development Setup
git clone https://github.com/famousdrew/zd-mcp-server.git
cd zd-mcp-server
npm install
npm run build
āļø Configuration
Environment Variables
Set these environment variables in your system or MCP client configuration:
export ZENDESK_EMAIL="your-email@company.com"
export ZENDESK_TOKEN="your-zendesk-api-token"
export ZENDESK_SUBDOMAIN="your-company" # from https://your-company.zendesk.com
# Optional: For Zendesk QA (formerly Klaus) features
export ZENDESK_QA_API_TOKEN="your-qa-api-token"
# Optional: For Workforce Management features
export ZENDESK_WFM_API_TOKEN="your-wfm-api-token"
# Optional: For AI Agent conversation export features
export ZENDESK_AI_EXPORT_TOKEN="your-ai-agents-api-token"
export ZENDESK_AI_EXPORT_ORG_ID="your-organization-id"
export ZENDESK_AI_EXPORT_BOT_ID="your-bot-id"
export ZENDESK_AI_EXPORT_REGION="us" # "us" (default) or "eu"
Claude Desktop Setup
Add to your Claude Desktop configuration file:
Location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json
Configuration:
{
"mcpServers": {
"zendesk": {
"command": "npx",
"args": ["-y", "zd-mcp-server"],
"env": {
"ZENDESK_EMAIL": "your-email@company.com",
"ZENDESK_TOKEN": "your-zendesk-api-token",
"ZENDESK_SUBDOMAIN": "your-company"
}
}
}
}
Alternative (if installed globally):
{
"mcpServers": {
"zendesk": {
"command": "zd-mcp-server",
"env": {
"ZENDESK_EMAIL": "your-email@company.com",
"ZENDESK_TOKEN": "your-zendesk-api-token",
"ZENDESK_SUBDOMAIN": "your-company"
}
}
}
}
Claude Code (CLI) Setup
claude mcp add zendesk \
--transport stdio \
--env ZENDESK_EMAIL=your-email@company.com \
--env ZENDESK_TOKEN=your-zendesk-api-token \
--env ZENDESK_SUBDOMAIN=your-company \
-- npx -y zd-mcp-server
Cursor IDE Setup
Add to ~/.cursor/mcp.json or .cursor/mcp.json in your project:
{
"mcpServers": {
"zendesk": {
"command": "npx",
"args": ["-y", "zd-mcp-server"],
"env": {
"ZENDESK_EMAIL": "your-email@company.com",
"ZENDESK_TOKEN": "your-zendesk-api-token",
"ZENDESK_SUBDOMAIN": "your-company"
}
}
}
}
Other MCP Clients
For other MCP-compatible clients (Cline, Windsurf, etc.), refer to their documentation for MCP server configuration. The server supports standard MCP protocols.
š ļø Available Tools
Core Ticket Tools
| Tool | Description | Example Usage |
|---|---|---|
zendesk_get_ticket |
Retrieve a ticket by ID | "Get ticket #12345" |
zendesk_get_ticket_details |
Get detailed ticket with comments | "Show me full details for ticket #67890" |
zendesk_search |
Search tickets with query syntax | "Find all urgent tickets from last week" |
zendesk_create_ticket |
Create a new ticket | "Create a high priority ticket for login issues" |
zendesk_update_ticket |
Update ticket properties | "Set ticket #555 to solved status" |
zendesk_add_private_note |
Add internal agent notes | "Add a private note about investigation progress" |
zendesk_add_public_note |
Add public customer comments | "Reply to customer with solution steps" |
zendesk_get_linked_incidents |
Get incident tickets linked to problems | "Show incidents related to this problem ticket" |
Field & Brand Discovery
| Tool | Description | Example Usage |
|---|---|---|
zendesk_list_ticket_fields |
List all ticket fields with IDs, types, and dropdown options | "What custom fields are available?" |
zendesk_search_by_field |
Search tickets by field name (auto-resolves to ID) | "Find tickets where Product Area is billing" |
zendesk_list_brands |
List all Zendesk brands in the account | "What brands do we have?" |
zendesk_search_by_brand |
Search tickets by brand name | "Find open tickets for the uAttend brand" |
Analysis Tools
| Tool | Description | Example Usage |
|---|---|---|
zendesk_analyze_tickets |
Analyze up to 500 tickets with full comment history | "Analyze the last 30 days of Citadel tickets for root causes" |
zendesk_sample_tickets |
Sample N tickets per day for trend analysis | "Sample 25 tickets per day for 20 days from uAttend" |
Ticket Metrics & History
| Tool | Description | Example Usage |
|---|---|---|
zendesk_get_ticket_metrics |
Get timing metrics for one ticket (reply time, resolution time, reopens) | "How long did ticket #12345 take to resolve?" |
zendesk_list_ticket_metrics |
Bulk metrics across all tickets, newest first (max 100/page) | "Pull metrics for the last 100 tickets" |
zendesk_get_ticket_audits |
Full field-level change history for a ticket | "Show me every change made to ticket #67890" |
zendesk_incremental_tickets |
Cursor-based bulk export of tickets updated since a given time | "Export all tickets updated in the last 7 days" |
AI Agent Export Tools (requires ZENDESK_AI_EXPORT_TOKEN, ZENDESK_AI_EXPORT_ORG_ID, ZENDESK_AI_EXPORT_BOT_ID)
| Tool | Description | Example Usage |
|---|---|---|
zendesk_ai_export_get_signed_urls |
Get signed download URLs for bot conversation exports for a given date | "Get export URLs for bot conversations on 2024-03-15" |
zendesk_ai_export_fetch_conversations |
Download and parse conversation records from a signed URL | "Fetch the conversations from this export URL" |
Data is available back to 2024-01-01. Files are generated once daily at midnight UTC ā the most recent available date is yesterday. Signed URLs expire after 24 hours.
Zendesk QA Tools (requires ZENDESK_QA_API_TOKEN)
| Tool | Description | Example Usage |
|---|---|---|
zendesk_qa_list_workspaces |
List all QA workspaces | "What QA workspaces do we have?" |
zendesk_qa_list_users |
List all QA users (account-wide) | "Show all QA users" |
zendesk_qa_get_reviews |
Get QA reviews (account-wide) | "Get all reviews from January 2024" |
zendesk_qa_get_csat |
Get CSAT data (account-wide) | "Get CSAT scores for last month" |
zendesk_qa_list_quizzes |
List all quizzes | "What quizzes are available?" |
zendesk_qa_get_quiz_leaderboard |
Get quiz leaderboard | "Show quiz leaderboard" |
zendesk_qa_get_quiz_overview |
Get quiz statistics | "Get statistics for quiz #123" |
zendesk_qa_get_quiz_responses |
Get quiz responses | "Get responses for quiz #123" |
zendesk_qa_search_conversations |
Search conversations by email | "Find conversations for john@example.com" |
zendesk_qa_workspace_users |
Get workspace users | "Get users in workspace #456" |
zendesk_qa_workspace_reviews |
Get workspace reviews | "Get reviews for workspace #456 from last month" |
zendesk_qa_workspace_csat |
Get workspace CSAT | "Get CSAT for workspace #456" |
zendesk_qa_workspace_disputes |
Get workspace disputes | "Get disputes in workspace #456" |
zendesk_qa_workspace_scorecards |
Get workspace scorecards | "Show scorecards for workspace #456" |
Workforce Management Tools (requires ZENDESK_WFM_API_TOKEN)
| Tool | Description | Example Usage |
|---|---|---|
zendesk_wfm_get_activities |
Get WFM activities | "Show WFM activities for this week" |
zendesk_wfm_get_report_data |
Get WFM report data | "Pull WFM report for last month" |
zendesk_wfm_fetch_shifts |
Fetch agent shifts | "Get shifts for the support team" |
zendesk_wfm_get_time_off |
Get time-off records | "Show time-off requests for this quarter" |
zendesk_wfm_import_time_off |
Import time-off data | "Import time-off records" |
š¬ Usage Examples
Once configured, you can use natural language with your AI assistant:
Ticket Management
"Show me all high priority tickets assigned to me"
"Create a new ticket: Customer can't access dashboard, priority urgent"
"Update ticket #12345 status to pending and add a note about waiting for customer response"
Search & Discovery
"Find all solved tickets from this week tagged with 'billing'"
"Search for open tickets containing 'password reset'"
"Show me tickets created by john@company.com in the last 30 days"
Customer Communication
"Add a public comment to ticket #789: 'We've identified the issue and working on a fix'"
"Add a private note: 'Customer confirmed the workaround is effective'"
Advanced Queries
"Find all problem tickets that have linked incidents"
"Show me escalated tickets that haven't been updated in 2 days"
"Get details for ticket #456 including all comments and history"
Brand & Field Analysis
"List all our Zendesk brands"
"Find open tickets for the Citadel brand"
"What custom fields do we have for tickets?"
"Search for tickets where Product Area is billing"
Root Cause Analysis
"Analyze the last 30 days of uAttend tickets and identify common issues"
"Get 100 Citadel tickets from the past week with full conversation history"
"Sample 25 tickets per day from CloudPunch for the last 20 days - what trends do you see?"
Ticket Metrics & History
"How long did ticket #12345 take to get a first reply?"
"Show me every status change on ticket #67890"
"Export all tickets updated since last Monday"
AI Agent Conversations
"Get the bot conversation export URLs for March 15th"
"Download and summarize yesterday's bot conversation data"
Zendesk QA Analysis
"List all QA workspaces"
"Get QA reviews from January 2024"
"Show CSAT scores for workspace #123 from last month"
"What disputes were filed in workspace #456 this quarter?"
"Get the quiz leaderboard"
š Authentication Setup
Standard Zendesk API Token
- Log in to your Zendesk account
- Go to Admin Center ā Apps and integrations ā APIs ā Zendesk API
- Click Add API token, add a description, click Create, and copy the token
- Important: Save this token securely ā you won't see it again
AI Agent Export Token
- Go to Zendesk AI Agents settings
- Navigate to Settings ā API
- Generate a new API token and note your Organization ID and Bot ID
Find Your Subdomain
Your Zendesk URL format: https://YOUR-SUBDOMAIN.zendesk.com
Use YOUR-SUBDOMAIN as the ZENDESK_SUBDOMAIN value.
Required Permissions
Ensure your Zendesk user account has:
- Agent role (minimum)
- Ticket access permissions
- API access enabled
š§ Development
Project Structure
zd-mcp-server/
āāā src/
ā āāā index.ts # Server entry point
ā āāā tools/
ā āāā index.ts # Core Zendesk tool implementations
ā āāā ticket-fields.ts # Field, brand, and analysis tools
ā āāā zendesk-qa.ts # Zendesk QA Export API tools
ā āāā zendesk-wfm.ts # Workforce Management tools
ā āāā zendesk-analytics.ts # Ticket metrics, audits, incremental export
ā āāā zendesk-ai-export.ts # AI Agent conversation export
āāā .github/
ā āāā workflows/
ā āāā publish.yml # Automated npm publishing on version tags
āāā dist/ # Compiled JavaScript
āāā package.json
āāā tsconfig.json
āāā README.md
Building from Source
git clone https://github.com/famousdrew/zd-mcp-server.git
cd zd-mcp-server
npm install
npm run build
Running Locally
# Start the server
npm start
# Development mode with auto-rebuild
npm run dev
Testing
npx @modelcontextprotocol/inspector node dist/index.js
Publishing a New Version
Bump the version in package.json, then push a version tag:
git tag v0.6.0
git push origin v0.6.0
GitHub Actions will build and publish to npm automatically.
š Troubleshooting
Common Issues
ā "Authentication failed" errors
- Verify your API token is correct and hasn't expired
- Ensure your email address matches your Zendesk account
- Check that your subdomain is spelled correctly (no
.zendesk.comsuffix)
ā "Permission denied" errors
- Verify your Zendesk user has Agent permissions or higher
- Ensure API access is enabled for your account
ā "Server not found" errors
- Ensure you've installed the package:
npm install -g zd-mcp-server - Try using npx instead:
npx zd-mcp-server - Check that your MCP client configuration file syntax is correct
ā "Environment variables not set" errors
- Verify all three required variables are set:
ZENDESK_EMAIL,ZENDESK_TOKEN,ZENDESK_SUBDOMAIN - Restart your MCP client after setting environment variables
ā AI Export errors
- Confirm
ZENDESK_AI_EXPORT_TOKEN,ZENDESK_AI_EXPORT_ORG_ID, andZENDESK_AI_EXPORT_BOT_IDare all set - Export files are only available for dates up to yesterday ā today's data hasn't been generated yet
- Signed URLs expire after 24 hours; request fresh ones if you get a 403
Log Files
- Claude Desktop:
~/Library/Logs/Claude/(macOS) or%APPDATA%/Claude/logs/(Windows) - Cursor: Check the output panel for MCP server logs
š Advanced Usage
Analysis Tool Parameters
zendesk_analyze_tickets
| Parameter | Type | Default | Description |
|---|---|---|---|
brand_name |
string | required | Brand to analyze (partial match) |
days_back |
number | 30 | Days to look back |
max_tickets |
number | 100 | Max tickets (up to 500) |
status |
string | all | Filter: open, pending, solved, closed |
priority |
string | all | Filter: low, normal, high, urgent |
zendesk_sample_tickets
| Parameter | Type | Default | Description |
|---|---|---|---|
brand_name |
string | required | Brand to sample (partial match) |
days_back |
number | 20 | Days to look back |
tickets_per_day |
number | 25 | Tickets per day (up to 50) |
status |
string | all | Filter: open, pending, solved, closed |
priority |
string | all | Filter: low, normal, high, urgent |
include_comments |
boolean | true | Include full comment history |
zendesk_incremental_tickets
| Parameter | Type | Default | Description |
|---|---|---|---|
start_time |
number | 30 days ago | Unix timestamp to start from |
cursor |
string | ā | Pagination cursor from a previous response's after_cursor field |
Search Query Syntax
# Status-based searches
status:open status:pending status:solved
# Priority searches
priority:urgent priority:high priority:normal priority:low
# Date-based searches
created>2024-01-01 updated<2024-01-31
# Tag searches
tags:billing tags:technical-issue
# Requester searches
requester:customer@company.com
# Complex combinations
status:open priority:high created>2024-01-01 tags:billing
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes
- Push to the branch and open a Pull Request
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Links
- GitHub: https://github.com/famousdrew/zd-mcp-server
- npm: https://www.npmjs.com/package/zd-mcp-server
- Zendesk API Docs: https://developer.zendesk.com/api-reference/
- Model Context Protocol: https://modelcontextprotocol.io/
š Support
- Issues: GitHub Issues
- Zendesk API: Zendesk Developer Documentation
- MCP Protocol: MCP Documentation
Made with ā¤ļø for the MCP and Zendesk communities
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
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.