discord-mcp-server-ts
Provides tools for interacting with Discord servers and channels: sending, reading, editing, deleting, searching, and pinning messages; managing reactions; creating and listing threads; listing channels; finding users; and creating, listing, sending via, and deleting webhooks.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
discord-mcp-server-ts
A Discord MCP (Model Context Protocol) server built with TypeScript. Provides 23 tools for interacting with Discord — messages, threads, channels, webhooks, and more.
Key differentiator: Thread support — create, list, and manage threads, which is not available in most existing Discord MCP servers.
Quick Start
npm install
npm run build
# Test connection
DISCORD_TOKEN="your_token" DISCORD_GUILD_ID="your_id" node dist/index.jsRelated MCP server: discord-mcp
Setup
1. Create Discord Bot
Go to Discord Developer Portal
"New Application" → name it → Create
Left menu "Bot" → "Reset Token" → copy the token
Enable "MESSAGE CONTENT INTENT" on the same page
2. Invite Bot to Server
Left menu "OAuth2" → "OAuth2 URL Generator"
Scopes: check
botBot Permissions:
Send Messages
Read Message History
Manage Messages
Add Reactions
Manage Webhooks
Create Public Threads
Send Messages in Threads
Manage Threads
Open the generated URL → add to your server
3. Get Server ID
Discord Settings → Advanced → enable "Developer Mode"
Right-click your server icon → "Copy Server ID"
MCP Configuration
Kiro
Add to ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["/path/to/discord-mcp-server-ts/dist/index.js"],
"env": {
"DISCORD_TOKEN": "your_bot_token",
"DISCORD_GUILD_ID": "your_server_id"
}
}
}
}Claude Code
claude mcp add discord \
-e DISCORD_TOKEN=your_bot_token \
-e DISCORD_GUILD_ID=your_server_id \
-- node /path/to/discord-mcp-server-ts/dist/index.jsEnvironment Variables
Variable | Required | Description |
| Yes | Discord Bot token |
| No | Default server ID. When set, |
Tools (23)
Message
Tool | Description | Key Parameters |
| Send a message to a channel or thread |
|
| Read message history |
|
| Edit a message |
|
| Delete a message |
|
| Search messages containing text |
|
| Add emoji reaction |
|
| Pin a message |
|
| Get pinned messages |
|
| Check for bot mentions across channel and threads |
|
Thread
Tool | Description | Key Parameters |
| Create thread from existing message |
|
| Create new thread (no parent message) |
|
| List active threads in server |
|
| List archived public threads |
|
| List archived private threads |
|
Channel / Server / User
Tool | Description | Key Parameters |
| List all channels in server |
|
| Find channel by name (partial match) |
|
| Get channel details |
|
| Get server information |
|
| Search user by name |
|
Webhook
Tool | Description | Key Parameters |
| Create webhook for a channel |
|
| List webhooks for a channel |
|
| Send message with custom username/avatar |
|
| Delete a webhook |
|
Usage Examples
Once configured, you can ask your AI agent things like:
"Post 'Hello world' to the #general channel"
"Read the last 10 messages in #dev"
"Create a thread called 'Bug Report' on that message"
"List all active threads in the server"
"Send a message as 'deploy-bot' using the webhook"
"Find the user named Alice and mention them in #general"
Note
This project was built with Kiro + Claude Opus 4 (claude-sonnet-4-20250514).
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Control your Discord community: send/read messages, manage channels and forums, and handle webhook…
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Discord MCP server for ChatGPT, Claude and any AI agent: list servers and channels, read channel messages, search messages, send message, reply to message, send DM, read mentions and assign role in your own Discord account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Discord yourself; Cotlet does not store your password and you need no Discord API key. About the official Discord API: Yes, Discord has an official API for bots and OAuth2 apps, but it acts as a bot that a server manager adds, not as you, and Discord has no official MCP server for it (checked 5 Nov 2026). The MCP server on Discord's docs site only searches documentation. Setup and FAQ: https://cotlet.dev/integrations/discord-api-mcp-server
Run Discord forms, surveys, polls and quizzes from your AI app: build, launch and analyze projects.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Discord through the REST API and real-time events, supporting message management, user info, channel operations, and more with security controls.11 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to interact with Discord guilds, channels, messages, threads, members, roles, webhooks, and DMs through a focused set of tools.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to interact with Discord by managing servers, channels, roles, members, messages, forum posts, reactions, and webhooks through a Discord bot.1,560 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to operate on the Discord platform, including logging in as a bot, listing and inspecting servers and members, managing channels, categories, forums, roles, and webhooks, and reading, searching, sending, editing, pinning, reacting to, or deleting messages.1,560 npmMIT