RZ

reminia/zendesk-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

126 stars 91 forks 质量 78 趋势 4Apache-2.0

reminia/zendesk-mcp-server 是从 https://github.com/reminia/zendesk-mcp-server. 导入的 MCP 服务器候选服务器。

概览

reminia/zendesk-mcp-server 是从 https://github.com/reminia/zendesk-mcp-server. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

Zendesk 的模型上下文协议服务器。

该服务器与Zendesk实现了全面集成。它提供:

  • 用于检索和管理Zendesk工单及评论的工具
  • 专门的工单分析和响应起草提示
  • 作为知识库的完整Zendesk帮助中心文章访问权

布置

  • 构建:简称uv venv && uv pip install -e .或uv build。
  • 配置认证:详见下文的认证部分。
  • 在 Claude 桌面中配置:

认证

该服务器通过OAuth进行认证。每个操作员用自己的操作员授权 Zendesk登录,因此API调用会携带其身份,Zendesk则准确应用 它在UI中应用的权限——它们的角色、组限制、 工单访问。他们发布的评论都是他们自己写的。

API 令牌认证仍然有效,但已被弃用。参见 从API令牌迁移。

1.注册一个公共的 OAuth 客户端

在管理中心,前往 应用与集成 > API > OAuth 客户端 创建客户:

字段 值
客户端类型 Public ——该服务器运行在每个操作员的机器上,因此无法保留任何秘密。改用PKCE代替。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Zendesk MCP Server

A Model Context Protocol server for Zendesk.

This server provides a comprehensive integration with Zendesk. It offers:

  • Tools for retrieving and managing Zendesk tickets and comments
  • Specialized prompts for ticket analysis and response drafting
  • Full access to the Zendesk Help Center articles as knowledge base

Setup

  • build: uv venv && uv pip install -e . or uv build in short.
  • configure authentication: see Authentication below.
  • configure in Claude desktop:
{
  "mcpServers": {
      "zendesk": {
          "command": "uv",
          "args": [
              "--directory",
              "/path/to/zendesk-mcp-server",
              "run",
              "zendesk"
          ]
      }
  }
}

Authentication

This server authenticates with OAuth. Each operator authorizes with their own Zendesk login, so API calls carry their identity and Zendesk applies exactly the permissions it applies in the UI — their role, their group restrictions, their ticket access. Comments they post are authored by them.

API token authentication still works but is deprecated. See Migrating from an API token.

1. Register a public OAuth client

In Admin Center, go to Apps and integrations > APIs > OAuth clients and create a client:

Field Value
Client kind Public — this server runs on each operator’s machine, so there is no secret it could keep. PKCE is used instead.
Redirect URLs http://localhost:4567/callback
Allowed scopes tickets:read tickets:write ticket_attachments:read users:read hc:read

Setting Allowed scopes is optional but recommended: it caps what any token from this client can ever request, even if the code changes.

Note the client’s Identifier — that is the ZENDESK_CLIENT_ID below.

If Zendesk rejects http://localhost:4567/callback, register https://localhost instead and use zendesk-auth --manual in step 3.

2. Configure the environment

Copy .env.example to .env and set:

ZENDESK_SUBDOMAIN=acme        # for https://acme.zendesk.com
ZENDESK_CLIENT_ID=your-client-identifier

Keep .env out of version control.

Two optional settings, both of which must agree with the OAuth client:

Variable Default When to change it
ZENDESK_OAUTH_REDIRECT_URI http://localhost:4567/callback Port 4567 is in use, or the client is registered with a different redirect URL. Must match a redirect URL on the client exactly.
ZENDESK_TOKEN_FILE $XDG_CONFIG_HOME/zendesk-mcp/tokens.json Storing tokens elsewhere, for example a Docker volume.
在 GitHub 查看完整 README

安装

docker run --rm \
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "zendesk": { "command": "uv", "args": [ "--directory", "/path/to/zendesk-mcp-server", "run", "zendesk" ] } } }