Zendesk MCP Server
Provides tools for managing Zendesk Support tickets, including searching, creating, updating, adding comments and notes, retrieving metrics, audits, and bulk exports. Also supports Zendesk QA (Klaus) for reviews and CSAT, and Zendesk Workforce Management for activities and shifts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zendesk MCP Servershow me all open high priority tickets"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Zulip MCP Server
🚀 Quick Start
Option 1: NPM Installation (Recommended)
npm install -g zd-mcp-serverOption 2: Use with npx (No Installation)
npx zd-mcp-serverOption 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.jsonWindows:
%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-serverCursor 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 |
| Retrieve a ticket by ID | "Get ticket #12345" |
| Get detailed ticket with comments | "Show me full details for ticket #67890" |
| Search tickets with query syntax | "Find all urgent tickets from last week" |
| Create a new ticket | "Create a high priority ticket for login issues" |
| Update ticket properties | "Set ticket #555 to solved status" |
| Add internal agent notes | "Add a private note about investigation progress" |
| Add public customer comments | "Reply to customer with solution steps" |
| Get incident tickets linked to problems | "Show incidents related to this problem ticket" |
Field & Brand Discovery
Tool | Description | Example Usage |
| List all ticket fields with IDs, types, and dropdown options | "What custom fields are available?" |
| Search tickets by field name (auto-resolves to ID) | "Find tickets where Product Area is billing" |
| List all Zendesk brands in the account | "What brands do we have?" |
| Search tickets by brand name | "Find open tickets for the uAttend brand" |
Analysis Tools
Tool | Description | Example Usage |
| Analyze up to 500 tickets with full comment history | "Analyze the last 30 days of Citadel tickets for root causes" |
| 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 |
| Get timing metrics for one ticket (reply time, resolution time, reopens) | "How long did ticket #12345 take to resolve?" |
| Bulk metrics across all tickets, newest first (max 100/page) | "Pull metrics for the last 100 tickets" |
| Full field-level change history for a ticket | "Show me every change made to ticket #67890" |
| 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 |
| Get signed download URLs for bot conversation exports for a given date | "Get export URLs for bot conversations on 2024-03-15" |
| 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 |
| List all QA workspaces | "What QA workspaces do we have?" |
| List all QA users (account-wide) | "Show all QA users" |
| Get QA reviews (account-wide) | "Get all reviews from January 2024" |
| Get CSAT data (account-wide) | "Get CSAT scores for last month" |
| List all quizzes | "What quizzes are available?" |
| Get quiz leaderboard | "Show quiz leaderboard" |
| Get quiz statistics | "Get statistics for quiz #123" |
| Get quiz responses | "Get responses for quiz #123" |
| Search conversations by email | "Find conversations for john@example.com" |
| Get workspace users | "Get users in workspace #456" |
| Get workspace reviews | "Get reviews for workspace #456 from last month" |
| Get workspace CSAT | "Get CSAT for workspace #456" |
| Get workspace disputes | "Get disputes in workspace #456" |
| Get workspace scorecards | "Show scorecards for workspace #456" |
Workforce Management Tools (requires ZENDESK_WFM_API_TOKEN)
Tool | Description | Example Usage |
| Get WFM activities | "Show WFM activities for this week" |
| Get WFM report data | "Pull WFM report for last month" |
| Fetch agent shifts | "Get shifts for the support team" |
| Get time-off records | "Show time-off requests for this quarter" |
| 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.mdBuilding from Source
git clone https://github.com/famousdrew/zd-mcp-server.git
cd zd-mcp-server
npm install
npm run buildRunning Locally
# Start the server
npm start
# Development mode with auto-rebuild
npm run devTesting
npx @modelcontextprotocol/inspector node dist/index.jsPublishing a New Version
Bump the version in package.json, then push a version tag:
git tag v0.6.0
git push origin v0.6.0GitHub 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-serverTry using npx instead:
npx zd-mcp-serverCheck 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_SUBDOMAINRestart 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 setExport 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 |
| string | required | Brand to analyze (partial match) |
| number | 30 | Days to look back |
| number | 100 | Max tickets (up to 500) |
| string | all | Filter: open, pending, solved, closed |
| string | all | Filter: low, normal, high, urgent |
zendesk_sample_tickets
Parameter | Type | Default | Description |
| string | required | Brand to sample (partial match) |
| number | 20 | Days to look back |
| number | 25 | Tickets per day (up to 50) |
| string | all | Filter: open, pending, solved, closed |
| string | all | Filter: low, normal, high, urgent |
| boolean | true | Include full comment history |
zendesk_incremental_tickets
Parameter | Type | Default | Description |
| number | 30 days ago | Unix timestamp to start from |
| string | — | Pagination cursor from a previous response's |
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
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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/famousdrew/zd-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server