Customer Support Analyst MCP

Customer Support Analyst MCP

Enables natural-language Q&A over customer support ticket data. Provides tools for schema inspection, SQL-based ticket counts and grouping, and full-text search for customer wording without requiring API keys.

Category
访问服务器

README

Customer Support Analyst MCP

Local Model Context Protocol server for natural-language Q&A over a customer-support ticket dataset. Built for analysts and ops — not a customer-facing chatbot.

Model

This MCP server does not call an LLM itself. Natural-language planning is performed by the MCP host.

Tested with:

  • Cursor Agent (host-configured model)

No OPENAI_API_KEY or ANTHROPIC_API_KEY is required by this server. The model is whatever the host already uses.

How it works

Tool Use for
ping Health check / troubleshooting (MCP config smoke test)
get_schema Columns, semantic field descriptions, allowed filter values, SQL vs search routing
query_tickets Counts, group-bys, structured filters (read-only SQL)
search_tickets Lexical keyword/topic examples (BM25); minimal hits + relevance_score (ranking only)
get_ticket One ticket by id (detail after search; text marked untrusted)
search_metrics Lexical FTS match counts / group-bys for free-text queries

Structured counts come from query_tickets (including ticket_tags for label analytics). Match volumes come from search_metrics (lexical FTS only — not semantic topic prevalence). search_tickets hits are ranked examples, not volume — use get_ticket for body/answer. Ticket subject/body/answer are untrusted model input.

FTS uses an inverted index, stemming, and BM25 ranking — better than SQL LIKE for examples, still not paraphrase/embedding search. The dataset is EN+DE; SQL works for both languages. FTS uses DuckDB’s default English analyzer, so German text search is best-effort.

Dataset: Tobi-Bueck/customer-support-tickets (Hugging Face Support_Dataset linked from the assignment; downloaded once at ingest).

Architecture and rejected alternatives: DECISIONS.md.

Requirements

  • Node.js 20+
  • npm
  • An MCP host (Cursor, Claude Code, or Codex)

Quick start

git clone https://github.com/ZivSapir/customer-support-analyst-mcp.git
cd customer-support-analyst-mcp
npm install
npm run ingest   # downloads CSV (first run), builds local DuckDB + FTS index
npm run build
npm run verify   # optional: schema, count, search, SQL guard
npm start        # stdio MCP server — normally the host spawns this

data/ is gitignored. Each machine runs ingest locally against a pinned Hugging Face revision (see src/dataset.ts); the CSV checksum is verified and data/ingest-manifest.json records provenance.

MCP configuration

Use the absolute path to this repo. After changing tools, restart the MCP server (or reload the window) so the host picks up the new tool list.

Cursor

User or project config (.cursor/mcp.json / ~/.cursor/mcp.json):

{
  "mcpServers": {
    "customer-support-analyst": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/customer-support-analyst-mcp/dist/index.js"]
    }
  }
}

You should see ping, get_schema, query_tickets, search_tickets, get_ticket, and search_metrics. If ping fails, fix MCP configuration before debugging SQL.

Claude Code

Same JSON in Claude Code MCP settings (or ~/.claude/claude_desktop_config.json, depending on install).

Codex

Same mcpServers block in the Codex MCP config for your install.

Example file: mcp.config.example.json.

Example questions

Question Expected tool
How many tickets are in the dataset? query_tickets
High-priority tickets by queue query_tickets
Breakdown by language and priority query_tickets
What are customers saying about refunds? search_tickets
Password-reset tickets in German (by language column) query_tickets, or search_tickets with language: "de" (FTS is English-optimized)
How many tickets mention refunds? search_metrics
High-priority tickets about password resets (examples) search_tickets with filters
How many tickets have the Refund tag? query_tickets on ticket_tags

Optional MCP prompt: ticket-analyst (reminder only — routing lives in tool contracts + get_schema).

Full list of example questions (routing hints for reviewers — not an automated LLM eval harness): eval/questions.json. npm run verify checks that file’s shape and pinned DuckDB/FTS expectations.

Scripts

Script Purpose
npm run ingest Pinned CSV → data/tickets.duckdb + FTS + ingest manifest
npm run peek Print columns + sample rows from local DuckDB
npm run build Compile src/dist/
npm start Run the stdio server
npm run verify Pinned smoke checks (row counts, filters, FTS, SQL guard/FS, eval JSON shape)

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选