zendesk-mcp

zendesk-mcp

Enables Zendesk support workflows through tools for semantic ticket search, customer context retrieval, solution version assessment, and daily work summaries.

Category
访问服务器

README

zendesk-mcp

A custom MCP (Model Context Protocol) server for Zendesk support workflows, built with Node + TypeScript and the official @modelcontextprotocol/sdk.

What it does

Exposes four tools that Claude (or any MCP client) can call:

Tool Purpose
search_similar_tickets Semantic search (via an external vector index) + live Zendesk keyword search for similar past issues
get_customer_context Pull a customer's org + full ticket history before responding
assess_solutions_by_version Find past fixes for an issue and check if they apply to the customer's version
summarize_daily_work Roll up a day's Zendesk activity: tickets touched, by status, high-priority follow-ups

Tool reference

Each tool's parameters are defined by its inputSchema in src/tools/*.ts — that file is the source of truth if this table drifts. Params are passed as a JSON object matching the schema below.

Tool Parameter Type Required Default Notes
search_similar_tickets issue string yes Description of the issue/symptom to search for
topK integer (1-20) no 5 Max number of similar past tickets to return
get_customer_context requesterEmail string (email) one of requesterEmail/organization required Single customer/requester email address
organization string one of requesterEmail/organization required Customer organization name, e.g. "Anthology" — pulls tickets for the whole account instead of one contact
assess_solutions_by_version issue string yes Issue description to search past solutions for
customerVersion string yes Customer's current product version, e.g. "8.2.0"
topK integer (1-20) no 5 Max number of past-solution matches to consider
summarize_daily_work date string (YYYY-MM-DD) no today Day to summarize
assignee string (email) no ZENDESK_EMAIL from .env Scopes results to this assignee; defaults to you

Calling a tool through Claude

Describe what you want in plain language — Claude fills in the parameters:

Run summarize_daily_work for 2026-07-20
Search similar tickets for "PDF export hangs on large files", top 10
Get customer context for jane@example.com
Get customer context for the organization Anthology

Calling a tool via raw MCP JSON-RPC

This is the tools/call request the client actually sends (see test-client.mjs for a working example):

{
  "method": "tools/call",
  "params": {
    "name": "summarize_daily_work",
    "arguments": {
      "date": "2026-07-20",
      "assignee": "sophia.banda@nutrient.io"
    }
  }
}

Omit any optional argument to fall back to its default (e.g. omit date for "today", omit assignee to scope to ZENDESK_EMAIL).

Calling a tool from a plain terminal (no Claude Code needed)

The server is just a Node process speaking MCP over stdio — any MCP client can talk to it, including a terminal script. Use run.mjs (loads your real .env, unlike test-client.mjs which uses fake credentials for smoke testing):

node run.mjs <tool_name> '<json_args>'

# examples
node run.mjs get_customer_context '{"organization":"Anthology"}'
node run.mjs get_customer_context '{"requesterEmail":"jane@example.com"}'
node run.mjs summarize_daily_work '{"date":"2026-07-20"}'
node run.mjs search_similar_tickets '{"issue":"PDF export hangs on large files","topK":10}'

Run npm run build first if you've made source changes — this calls the compiled server in build/, not the TypeScript source directly.

How it's put together

src/
  clients/
    zendesk.ts     – thin wrapper over the Zendesk REST API (search, tickets, users, orgs)
    vectorDb.ts     – adapter interface (VectorDb) + a mock implementation + a generic HTTP
                      implementation, so the real backend can be swapped in via .env only
  tools/
    searchSimilarTickets.ts
    customerInfo.ts
    assessSolutions.ts
    dailySummary.ts
  index.ts          – wires everything together and starts the server over stdio
test-client.mjs      – a tiny MCP client used to sanity-check the server without wiring it into Claude

Why the adapter pattern for the vector DB

The exact shape of the backing RAG index isn't fixed yet. Rather than hard-coding a client, vectorDb.ts defines a one-method interface:

interface VectorDb {
  search(query: string, topK?: number): Promise<VectorMatch[]>;
}

Everything else in the codebase (the tools) only depends on that interface, not on a specific backend. VECTOR_DB_PROVIDER=mock in .env gives a fake in-memory index for building and testing end-to-end. Once the real index's API is known:

  • use the built-in HttpVectorDb if there's a query endpoint in front of it (adjust the request/response shape in vectorDb.ts to match the actual API), or
  • add a new class (e.g. PineconeVectorDb, QdrantVectorDb) implementing the same interface, and add a case for it in vectorDbFromEnv().

No changes needed anywhere else.

Setup

npm install
cp .env.example .env   # fill in your Zendesk subdomain/email/API token
npm run build

.env fields:

  • ZENDESK_SUBDOMAIN / ZENDESK_EMAIL / ZENDESK_API_TOKEN — from Zendesk Admin Center > Apps and integrations > APIs > Zendesk API. Generate a token there and enable token access.
  • VECTOR_DB_PROVIDERmock to start; switch once you have real connection info.

Running it standalone (for testing)

node test-client.mjs

This spawns the built server, lists its tools, and calls assess_solutions_by_version against the mock vector data — useful for iterating without wiring the server into an actual MCP client.

Registering it with Claude

Add it to your MCP client config (e.g. Claude Desktop's claude_desktop_config.json, or Claude Code's .mcp.json):

{
  "mcpServers": {
    "zendesk-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/zendesk-mcp/build/index.js"],
      "env": {
        "ZENDESK_SUBDOMAIN": "your-company",
        "ZENDESK_EMAIL": "you@company.com",
        "ZENDESK_API_TOKEN": "...",
        "VECTOR_DB_PROVIDER": "mock"
      }
    }
  }
}

Notes / open items

(Internal notes — may be stale, keep or prune as they're resolved.)

  1. The real vector index's query interface isn't confirmed yet (REST endpoint? Python service? direct DB connection to Pinecone/Qdrant/pgvector/etc). That determines whether HttpVectorDb works as-is, needs tweaking, or a new adapter class is needed.
  2. Once wired to the real index, revisit the metadata shape assess_solutions_by_version expects (fixedInVersion, product, tags) — align it with whatever fields the index actually stores per chunk.
  3. Consider adding a list_products or list_versions tool if there's a canonical version list to validate customerVersion against.
  4. Add tests (e.g. with node --test) for compareVersions in assessSolutions.ts — it's a naive semver comparator and worth hardening for versions like 8.4.2-rc1.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选