discord-support-mcp
discord-support-mcp
An MCP server that exposes Discord support tickets as tools for AI agents. Built for servers that manage tickets with Ticket Tool (which has no public API): it reads the ticket channels directly through the Discord bot API.
Tools
Tool | What it does |
| Lists channels in the configured ticket category, oldest first |
| Returns recent message history of a ticket |
| Posts a message into a ticket as the bot |
| Renames a ticket channel |
| Locks + renames a ticket ( |
| Username substring lookup (respects PII_REDACT) |
Compliance / self-hosting
If agents touching user-identifying information must be self-hosted, run this
server on your own infrastructure next to your self-hosted model and set
PII_REDACT=true. All message content is then stripped of emails, phone
numbers, mentions and snowflake IDs before it reaches any upstream (cloud)
agent. Only the sanitized layer should be exposed beyond the host.
Setup
Create a bot at https://discord.com/developers/applications
Enable Message Content Intent and Server Members Intent.
Invite with scopes
botand permissions: View Channels, Read Message History, Send Messages, Manage Channels, Manage Roles (for close).
Find the category ID Ticket Tool puts tickets in (right-click the category in Discord with developer mode on → Copy Channel ID).
Configure:
cp .env.example .env # fill in values
npm install
npm run buildWire into an MCP client (e.g. Claude Desktop config):
{
"mcpServers": {
"discord-support": {
"command": "node",
"args": ["/absolute/path/to/discord-support-mcp/dist/index.js"],
"env": {
"DISCORD_TOKEN": "...",
"GUILD_ID": "...",
"TICKET_CATEGORY_ID": "...",
"PII_REDACT": "true"
}
}
}
}Notes
close_ticketis a safe archive (lock + rename). Actual transcript/deletion stays with Ticket Tool's own/closeso your transcripts channel keeps working; the agent can also just call Ticket Tool's close command flow manually for now.Discord rate limits apply; history reads are capped at 100 messages per call.