cheq-tickets
Enables semantic search and analysis of customer support tickets. Provides tools to search tickets, analyze the dataset, and retrieve individual tickets using natural language.
README
CHEQ Ticket Intelligence MCP
Local setup instructions for the customer-support ticket MCP server.
Requirements
- macOS or Linux.
- uv. The project uses
Python 3.12 from
.python-versionand supports Python 3.11-3.13. - An OpenAI Platform API key with embedding access.
- Codex CLI and/or Claude Code CLI.
- Network access and at least 2 GB of free space for dependencies, the dataset cache, and about 891 MB of generated SQLite/LanceDB artifacts.
uv sync --locked installs the locked runtime packages: datasets, lancedb,
mcp, openai, pyarrow, and pydantic. It also installs the development
packages pytest and mcp[cli].
Dataset and license
This project uses the synthetic
Customer Support Tickets
dataset by Tobi Bueck. Ingestion is pinned to the train split at revision
ddf1c81a5475992c4fa6752bf1e8b4e31f07bbeb, which contains 61,765 tickets.
The dataset is licensed under CC BY-NC 4.0. Its use is limited to non-commercial purposes and requires attribution. This dataset license is separate from the repository's MIT code license. The repository does not redistribute the source dataset or generated SQLite, LanceDB, or embedding artifacts; the documented ingestion command builds them locally from the pinned source.
1. Install
Install uv if needed:
# macOS
brew install uv
# Or macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
From a fresh clone:
git clone https://github.com/GalDaich/cheq-cs-tickets-mcp.git
cd cheq-cs-tickets-mcp
uv sync --locked
2. Configure the API key
This server uses OpenAI text-embedding-3-large for ticket and query embeddings
only. Codex or Claude Code selects the MCP tool and writes the final answer.
The only environment variable is OPENAI_API_KEY. It is required for ingestion
and semantic search. Exact analytics and ticket lookup remain local after the
data has been built.
Create the ignored local environment file and add the key:
cp .env.example .env.local
chmod 600 .env.local
${EDITOR:-vi} .env.local
.env.local should contain:
OPENAI_API_KEY=your_openai_api_key
Never commit .env.local or place the API key directly in an MCP registration
command.
3. Build the local data
The first build downloads the pinned 61,765-row dataset and creates the local SQLite and LanceDB artifacts. Embedding the dataset uses the OpenAI API and may incur cost.
set -a
. ./.env.local
set +a
uv run --locked cheq-tickets-ingest
If the local artifacts are stale or incompatible, rebuild explicitly:
uv run --locked cheq-tickets-ingest --rebuild
4. Run the server directly
set -a
. ./.env.local
set +a
uv run --locked cheq-tickets-mcp
A silent, blocked process is expected: stdio is the MCP protocol transport. Stop
the direct process with Ctrl-C; normally Codex or Claude Code starts it.
5. Connect Codex CLI
Run from the repository root. The saved command uses absolute paths and loads
.env.local without copying its values into Codex configuration.
PROJECT_ROOT="$(pwd)"
codex mcp add cheq-tickets -- \
/bin/sh -c "set -a; . \"$PROJECT_ROOT/.env.local\"; set +a; exec \"$PROJECT_ROOT/.venv/bin/cheq-tickets-mcp\""
codex mcp get cheq-tickets --json
codex mcp list
Start a new codex session and run /mcp to confirm that cheq-tickets exposes
search_tickets, analyze_dataset, and get_ticket. See the official
Codex MCP documentation.
6. Connect Claude Code CLI
Run from the repository root. Local scope keeps the registration private to the current user and project.
PROJECT_ROOT="$(pwd)"
claude mcp add --transport stdio --scope local cheq-tickets -- \
/bin/sh -c "set -a; . \"$PROJECT_ROOT/.env.local\"; set +a; exec \"$PROJECT_ROOT/.venv/bin/cheq-tickets-mcp\""
claude mcp get cheq-tickets
claude mcp list
Start a new claude session and run /mcp to confirm the three tools. See the
official Claude Code MCP documentation.
7. Verify
In either connected host, ask:
How many tickets are in the pinned dataset, grouped by language?
The counts should total 61,765. Then verify semantic search:
Find three tickets about VPN connection failures and cite each TKT ID.
For local deterministic checks:
uv run --locked pytest
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。