npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

zendesk-mcp-ts

v1.0.13

Published

Zendesk MCP server for searching tickets - TypeScript implementation with stdio transport

Downloads

51

Readme

Zendesk MCP Server (TypeScript)

A Model Context Protocol (MCP) server for searching Zendesk tickets. Install with npm install -g zendesk-mcp-ts and use with npx zendesk-mcp-ts in your AI coding assistants.

Features

  • 🔍 Search tickets using Zendesk's powerful search API
  • 📄 Pagination support with configurable page size
  • 🔄 Sorting capabilities (by date, priority, status, etc.)
  • 🏢 Organization details fetching with batch processing
  • ⚡ Fast and efficient TypeScript implementation
  • 🛡️ Type-safe with strict readonly types and Zod validation
  • 🔧 Easy configuration via environment variables
  • 🚀 Optimized async operations with retry logic
  • 📊 Comprehensive error handling with detailed messages
  • 🔍 Enhanced logging and debugging capabilities
  • 📡 stdio transport for seamless MCP integration
  • 🤖 Compatible with Claude Desktop, Cursor, Cline, and other MCP clients

Installation

Global Installation (Recommended)

npm install -g zendesk-mcp-ts

Using NPX (No Installation)

npx zendesk-mcp-ts

Development Setup

git clone <repository-url>
cd zendesk-mcp-ts
npm install
npm run build
npm start

Configuration

Create a .env file in your project root with the following variables:

ZENDESK_SUBDOMAIN=your-subdomain
[email protected]
ZENDESK_API_TOKEN=your-api-token

Getting Your API Token

  1. Go to your Zendesk Admin Center
  2. Navigate to Apps and integrations > APIs > Zendesk API
  3. Generate a new API token
  4. Copy the token to your .env file

Quick Start

1. Install

npm install -g zendesk-mcp-ts

2. Configure Environment

export ZENDESK_SUBDOMAIN="your-subdomain"
export ZENDESK_EMAIL="[email protected]"
export ZENDESK_API_TOKEN="your-api-token"

3. Use with AI Assistants

See the AI Coding Assistants section below for configuration.

Usage with AI Coding Assistants

Claude Desktop

{
  "mcpServers": {
    "zendesk": {
      "command": "npx",
      "args": ["zendesk-mcp-ts"],
      "env": {
        "ZENDESK_SUBDOMAIN": "your-subdomain",
        "ZENDESK_EMAIL": "[email protected]",
        "ZENDESK_API_TOKEN": "your-api-token"
      }
    }
  }
}

Cursor IDE

{
  "mcpServers": {
    "zendesk": {
      "command": "npx",
      "args": ["zendesk-mcp-ts"],
      "env": {
        "ZENDESK_SUBDOMAIN": "your-subdomain",
        "ZENDESK_EMAIL": "[email protected]",
        "ZENDESK_API_TOKEN": "your-api-token"
      }
    }
  }
}

Cline (VS Code Extension)

{
  "cline.mcpServers": {
    "zendesk": {
      "command": "npx",
      "args": ["zendesk-mcp-ts"],
      "env": {
        "ZENDESK_SUBDOMAIN": "your-subdomain",
        "ZENDESK_EMAIL": "[email protected]",
        "ZENDESK_API_TOKEN": "your-api-token"
      }
    }
  }
}

GitHub Copilot (VS Code)

Install the Copilot MCP extension and add:

{
  "mcpServers": {
    "zendesk": {
      "command": "npx",
      "args": ["zendesk-mcp-ts"],
      "env": {
        "ZENDESK_SUBDOMAIN": "your-subdomain",
        "ZENDESK_EMAIL": "[email protected]",
        "ZENDESK_API_TOKEN": "your-api-token"
      }
    }
  }
}

Other MCP Clients

{
  "command": "npx",
  "args": ["zendesk-mcp-ts"],
  "env": {
    "ZENDESK_SUBDOMAIN": "your-subdomain",
    "ZENDESK_EMAIL": "[email protected]",
    "ZENDESK_API_TOKEN": "your-api-token"
  }
}

Available Tools

search_tickets

Search for tickets in Zendesk using the search API.

Parameters:

  • query (required): Search query with Zendesk operators
  • sort_by (optional): Field to sort by (e.g., "created_at", "updated_at", "priority")
  • sort_order (optional): Sort order - "asc" or "desc" (default: "asc")
  • per_page (optional): Number of results per page, max 100 (default: 25)
  • page (optional): Page number to retrieve (default: 1)

Example Queries:

  • type:ticket status:open - Open tickets
  • created>2025-01-01 - Tickets created after January 1, 2025
  • assignee:[email protected] - Tickets assigned to specific user
  • tags:urgent - Tickets with "urgent" tag
  • status:open priority:high - High priority open tickets

Troubleshooting

Test the server:

echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "search_tickets", "arguments": {"query": "status:open"}}}' | npx zendesk-mcp-ts

Debug mode:

DEBUG=* npx zendesk-mcp-ts

Development

Scripts

  • npm run build - Build the TypeScript code
  • npm start - Run the built application
  • npm run dev - Run in development mode with tsx
  • npm run watch - Run in watch mode with nodemon

Project Structure

src/
├── index.ts              # Main entry point
├── server.ts             # MCP server implementation
├── client.ts             # Zendesk API client
├── models.ts             # TypeScript interfaces
├── tools/
│   ├── searchTickets.ts  # Search tickets tool
│   └── index.ts          # Tool exports
└── utils/
    └── validation.ts     # Zod schemas

License

MIT License - see LICENSE file for details.