Skip to main content
Glama

mcp-support-tools

An MCP server (Model Context Protocol) that gives any MCP client, such as Claude Desktop, Cursor, or a LangGraph agent, the tools a customer-support agent needs: customer lookup, transaction history, knowledge-base search, and ticket escalation. Built on the official mcp Python SDK (2.x).

It packages the "business systems" side of the support bot I ran in production for two online gaming brands as a standalone, protocol-native server, on a fictional brand ("Astra Play") with fixture data. The agent side lives in support-agent-langgraph.

What it exposes

Kind

Name

Purpose

tool

get_customer(customer_id)

verification status, VIP tier, balance, active bonus

tool

get_transactions(customer_id, limit)

recent deposits and withdrawals, newest first

tool

search_knowledge(query, category?, top_k)

ranked knowledge-base sections with scores; falls back to unfiltered search when the category guess is wrong

tool

create_ticket(customer_id, category, summary, transcript?)

escalation with priority rules: VIP → urgent, withdrawals / responsible gaming → high

tool

list_tickets()

tickets created in the session

resource

kb://docs, kb://docs/{doc_id}

the knowledge base as browsable documents

prompt

triage(customer_id?)

a system prompt that tells the model when to call which tool

The server instructions field and the triage prompt encode the rules that mattered in production: look the customer up before talking about their money, state policies only from search results, escalate only on explicit request or when tools cannot resolve the issue.

Related MCP server: Morrow Desk MCP Server

Use it from Claude Desktop or Cursor

pip install git+https://github.com/stepbystepautomatization-jpg/mcp-support-tools

claude_desktop_config.json / .cursor/mcp.json:

{
  "mcpServers": {
    "support-tools": {
      "command": "mcp-support-tools"
    }
  }
}

Then ask: "Customer cust_2002 says their withdrawal was rejected. Why, and what should they do?" The model calls get_customer (unverified, active bonus), get_transactions (rejected, reason account_not_verified), search_knowledge("withdrawal rejected verification"), and answers from the data.

Streamable HTTP instead of stdio: mcp-support-tools --http (serves on :8000).

Use it from code

from mcp.client.client import Client
from mcp_support_tools.server import server

async with Client(server) as client:            # in-process, no subprocess
    tools = await client.list_tools()
    hits = await client.call_tool("search_knowledge", {"query": "minimum withdrawal"})

The same Client works with StdioServerParameters or an HTTP URL for a remote server.

Tests

pip install -e ".[dev]"
pytest          # 9 tests: tools, ranking, category fallback, ticket priorities, resources, prompt, path traversal

Tests drive a real MCP client connected in-process to the server, so the protocol layer (schemas, serialization, error mapping) is exercised, not just the Python functions.

Design notes

  • Structured errors, not exceptions. A missing customer returns {"error": "customer_not_found"} so the model can recover in the same turn instead of the tool call failing.

  • Search returns scores. The client can decide its own threshold; a score of 0 never comes back.

  • Fixtures are in-memory so the repo runs anywhere. Swapping them for the real back office is three functions.

  • Path safety on kb://docs/{doc_id} is enforced twice: by the SDK's resource security and by a parent-directory check in the handler.

License

MIT

Available Tools

5 tools
create_ticketA

Escalate to a human agent. Use only on explicit request or when the tools cannot answer. Returns the ticket.

Inputs: summary (required), category (required), customer_id (required), transcript.

get_customerB

Customer profile: verification status, VIP tier, balance, active bonus.

Inputs: customer_id (required).

get_transactionsA

Most recent deposits and withdrawals of a customer, newest first.

Inputs: customer_id (required), limit. Returns: result

list_ticketsC

Tickets created in this session.

Inputs: no named parameters. Returns: result

search_knowledgeA

Search the support knowledge base. Returns ranked sections with a score; state policies only from these.

Inputs: query (required), top_k, category. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: customer profile, transaction history, knowledge lookup, ticket listing, and ticket creation. There is no meaningful overlap between them, so an agent can reliably choose the right tool.

    Naming Consistency5/5

    All tools use a consistent snake_case verb_noun convention: get_customer, get_transactions, search_knowledge, list_tickets, create_ticket. The naming is uniform and predictable.

    Tool Count5/5

    Five tools is an appropriate size for a focused customer-support toolset. It covers the core operations without unnecessary redundancy or missing essentials.

    Completeness5/5

    The set covers the main support workflow: retrieve customer info, view transactions, search knowledge, and escalate by creating a ticket. There are no obvious dead ends for the server's stated support purpose.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers